[flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread Darin Kohles
instead of adding the calculation to the value object, which is scoped
locally, try adding it to the data object:

super.data.net_lbs = total;

--- In flexcoders@yahoogroups.com, "bsdensmore" <[EMAIL PROTECTED]> wrote:
>
> yes, they do. 
> 
> I'm just doing a very small example to get my head around this. I
> actually took the ClassFactory stuff out and went to using the
> itemrenderer as is. It works but now I'm running into the issue of my
> datagrid losing it's state when you scroll.
> 
> This is what my main Application looks like, 
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="populate();">
> 
> 
>   
>   
>editable="true">
>   
>
>dataField="Net_Wt"
> editable="false"/>
>dataField="claimed"
> editable="true" />
>dataField="net_lbs"
> editable="false" itemRenderer="calculatedItemRenderer"/>
>
>   
>   
>   
>   
> 
> 
> My ItemRenderer looks like:
> 
> http://www.adobe.com/2006/mxml"; width="72"
> height="20" horizontalAlign="center">
>   
>   
>   
>   
>   
>   
>   
> 
> 
> 
> Ben
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > First: Does your dataProvider (the item objects specifically) have a
> > property for each of the three columns?
> > 
> > Tracy
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of bsdensmore
> > Sent: Thursday, November 30, 2006 1:58 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Can't get value after labelfunction
> > 
> >  
> > 
> > I keep going in circles with this. If I don't use the ClassFactory I
> > can get the calculations to work but I can't figure out how to send
> > the value back to the dataProvider. If I try to use the ClassFactory
> > and set my properties through the ClassFactory properties nothing is
> > being passed into the itemRenderer. 
> > 
> > This is driving me nuts.
> > 
> > My DataGrid has 3 Fields Case_Weight, Cases_Claimed and Net_Lbs. 
> > Net_Lbs uses the item renderer which is a "Text" Custom Component.
> > 
> > When the dataProvider is populated only Case Weight has a value. The
> > other 2 fields are blank. Cases_Claimed is editable and based on what
> > is entered in there it multiplies Case_Weight and Cases_Claimed and
> > sets Net_Lbs to the total amount. Should I be using something other
> > than a "Text" component?
> > 
> > Thanks,
> > Ben
> > 
> > --- In flexcoders@yahoogroups.com

> > , "Tracy Spratt"  wrote:
> > >
> > > An item renderer will certianly work and there are a lot of examples
> > > available. The process will be exactly the same as for the checkbox
> > > renderer yo have worked with, so it will be much easier this time
> > > (assuming you got the checkbox renderer working correctly! If not, I
> > > have an example on cflex.net.
> > > 
> > > 
> > > 
> > > But actually what I was suggesting was a bit different. I think
it was
> > > Anatole who mentioned using this technique as well, but what you
would
> > > do is use the raw result data to build an arrayCollection of new
> > custom
> > > objects. The custom class would have the caluclated properties built
> > in,
> > > and you would use this ArrayCollection as the dataProvider.
> > > 
> > > 
> > > 
> > > Since clearly your raw dataProvider does not have the calculated
> > > property/field in it, you would have to somehow add this property to
> > the
> > > dataProvider anyway, to be able to set it from your renderer.
> > > 
> > > 
> > > 
> > > If you build the custom objects up front, you would not need the
> > > renderer, and the class could be optimized to simplify building the
> > > structure you are going to send back to the server. 
> > > 
> > > 
> > > 
> > > This technique leaves labelFunction and even custom renderers
> > available
> > > to modify the presentation, without mucking with the base data.
> > > 
> > > 
> > > 
> > > This may sound inefficient, but I have been doing it on my apps
a lot,
> > > and have found that for this kind of non-visual stuff, even Flash
> > Player
> > > 7 was blazingly fast. The improvements in 8, 9 make it even faster.
> > > 
> > > 
> > > 
> > > Tracy
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com

> > [mailto:flexcoders@yahoogroups.com

> > ] On
> > > Behalf Of bsdensmore
> > > Sent: Thursday, November 30, 2006 8:32 AM
> > > To: flexcoders@yahoogroups.com
 
> > > Subject: [flexcoders] Re: Can't get value after labelfunction
> > > 
> > > 
> > > 
> > > Thanks Ben and Tracy,
> > > I was thinking that I might need to use an item renderer but was
> > > hoping to not have to. I just struggled

[flexcoders] Re: Styling in Flex is officially ridiculous

2006-11-30 Thread Darin Kohles
goto mysite" mouseOver="hover()" />

function hover():void{
linkTxt.htmlText = String(linkTxt.htmlText).replace('FF','00FF00');
}

you get the idea

--- In flexcoders@yahoogroups.com, Ethan Miller <[EMAIL PROTECTED]> wrote:
>
> While in general I've been fairly happy with my ability to style  
> flex, one area in which really lacking (and unfortunately for me in a  
> key place for my application) is in styling text, especially text  
> contained in an htmlText element.
> 
> Despite reading the docs 5 times now, I remain unable to style a  
> simple anchor tag (. "A" as a type selector doesn't work,  
> but neither do a:link, a:hover, or a:active which the docs say should  
> work. Why the A tag doesn't simply support styleName as an attribute  
> (or class="" or style="") is a complete mind bender to me. Why  
> htmlText doesn't support  is equally puzzling.
> 
> Also, is it just me or are many of the css property names different,  
> eg font-family vs fontFamily, etc. And what about shorthand syntax,  
> eg "border: 1x dotted black."
> 
> I realize and accept as necessary and good the need to support a  
> limited set of HTML tags but don't understand why standard and  
> rigorous text styling is so out of reach. This in fact would be one  
> of my top wish list items for future releases.
> 
> Meantime, if anyone has any tips on styling text now, I'm all ears =)
> 
> cheers, ethan
>




[flexcoders] Re: How to control depth

2006-11-30 Thread Darin Kohles
You control "depth" by the order in which the display object appears
in the display "tree".

To adjust to order, you need to remove and re-insert the child object
using something like this:

this.addChildAt(this.removeChildAt(1),0);

The remove statement pops the item out of the display list, returning
a reference to it, then the add places it back in. If I'm mistaken
about the ordering then it might be:

this.addChild(this.removeChildAt(0));

This takes the first child and puts it at the end.

Good luck 

--- In flexcoders@yahoogroups.com, "elevight" <[EMAIL PROTECTED]> wrote:
>
> Does anyone know how to control the z-axis of objects?
> 
> Here's a very short code snippet to illustrate my question:
> 
> 
> http://www.adobe.com/2006/mxml"; 
> layout="absolute">
>height="100"/>
>height="50"/>
>   
> 
> 
> In the above, vboxBlue was instantiated after vboxRed, and hence, 
> appears on top of vboxRed. How can I, during runtime, make vboxRed be 
> on top of vboxBlue?
> 
> Thanks.
>




[flexcoders] Re: syntax issue

2006-09-19 Thread Darin Kohles
When in doubt dump your data to make sure you are getting what you
think you are (in a change event handler for instance):

import mx.utils.ObjectUtil;

trace(ObjectUtil.toString(masterList.selectedItem));

--- In flexcoders@yahoogroups.com, "bghoward3" <[EMAIL PROTECTED]> wrote:
>
> i am trying to use a query as follows
> 
> SELECT   *
> FROM  tblUserDirectory, tblUser, tblTeamMember 
> WHERE tblUserDirectory.intUserID = tblUser.intUserID
>   AND tblTeamMember.intUserID = tblUser.intUserID
> ORDER BY strUserLastName
> 
> selecting everything form 3 differnt tables, using a master data 
> grid and the SelectedItem command i am able to populate fields in a 
> custom tab component, no problem, the problem is that only one table 
> seems to be acceisble in using the "SelectedItem: command
> 
> when i call
> 
> 
> 
>  htmlText="{masterList.selectedItem.strUserFirstName}"  height="19"/>
> 
> 
> it works,
> 
> but when it gets to another element;
> 
> 
>  htmlText="{masterList.selectedItem.strAddrLine1}"  height="19"/>
> 
> 
> i have no luck populating 
> 
> note: strAddrLine1 is fouind in table tblUserDirectory
> 
> note: strUserFirstName is found in table tblUser
> 
> any ideas?
> 
> thanks
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Problems with TextInput

2006-09-19 Thread Darin Kohles
I've most often encountered this type of error when I am setting state
based properties in mxml. It generally means that I've coded
target="someThing" instead of target="{someThing}". The target wants
an object with "{}" not a string with "". I suggest you look at your
code to see if you haven't done somthing similar.

--- In flexcoders@yahoogroups.com, Madhuri Chamarty
<[EMAIL PROTECTED]> wrote:
>
> hi,
>
>   I have been working on a form where i have to take the id and
password from the user validate them.
>
>   I used 2 TextInput Controls and i have written the followinf code
for validation
>
>import mx.controls.TextInput;
>   
>  public function LoginCheck():void{
>  
> if((uid.text=='1') && (pwd.text=='admin123'))
>{
>mx.controls.Alert.show("Successfully Logged in...");
>} 
>else
>{
>mx.controls.Alert.show("Login Failed!!");
>}
>   }
>
>
>   This code is giving me an error like
>
>   1119: Access of possibly undefined property text through a
reference with static type String. 
>
>
>   Kindly Help
>
>   Thanks
>   Madhuri
> 
>   
> -
>  All-new Yahoo! Mail - Fire up a more powerful email and get things
done faster.
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: What happened to getTreeNodeAt??

2006-09-19 Thread Darin Kohles
I encountered the same problem and wrote my own version. 

public var categoryNodes:XML = new XML(); // xml data of the tree set
elsewhere
public var arrayFromNodes:ArrayCollection = new ArrayCollection();
public var nodeCount:Number = 0;

/**
* returns an xml node based on a tree index 
*/
public function getNodeAt(index:Number):XML{
  arrayFromNodes = new ArrayCollection();
  nodeCount=0;
  arrayFromNodes.addItem(categoryNodes[nodeCount]);
  getNodeList(XMLList(categoryNodes));
  return XML(arrayFromNodes.getItemAt(index));
}

/**
* returns a flattend node listing from an xml tree
*/
private function getNodeList(currentList:XMLList):void{
  for each(var childIndex:XML in XMLList(currentList.children())){
nodeCount++
arrayFromNodes.addItem(childIndex);  
if(XMLList(childIndex).children().length()){
  getNodeList(XMLList(childIndex))
}
  }
}

As to the expandChildrenOf() function it works for me by passing in
the root node for the tree dataProvider.

--- In flexcoders@yahoogroups.com, "carl_steinhilber"
<[EMAIL PROTECTED]> wrote:
>
> Well, now I'm stymied.
> 
> With Flex 1.5, I was able to expand all the nodes of an mx:Tree with
> something like:
> 
>function setOpenAll(aryNodes):Void{
>   
>   var childNode = aryNodes.getTreeNodeAt(0);
>   var aryChildren = aryNodes.getChildNodes();
> 
>   for (var i = 0;i < aryChildren.length;i = i + 1){
>  childNode = aryNodes.getTreeNodeAt(i);
>  treeElem.setIsOpen( myNode, true, false, false);
>  if ( childNode.hasChildNodes() ){
>   setOpenAll(childNode );
>  }
>   }
>}
> 
> and invoke it with a button function like
> 
>click="setOpenAll(treeElem.dataProvider)"
> 
> 
> But this throws an error in Flex 2. Near as I can tell... there's no
> getTreeNodeAt() function anymore.
> 
> Anyone know how to go about expanding all the nodes of a tree, now, in
> Flex 2? I'm continually surprised there are no methods
> openAll()/closeAll() for the Tree. Seems like the new
> expandChildrenOf() method would make things easier... but not quite
> sure how to use it.
> 
> Thanks in advance,
> -Carl
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Problems with TextInput

2006-09-19 Thread Darin Kohles
I've most often encountered this type of error when I am setting state
based properties in mxml. It generally means that I've coded
target="someThing" instead of target="{someThing}". The target wants
an object with "{}" not a string with "". I suggest you look at your
code to see if you haven't done somthing similar.

--- In flexcoders@yahoogroups.com, Madhuri Chamarty
<[EMAIL PROTECTED]> wrote:
>
> hi,
>
>   I have been working on a form where i have to take the id and
password from the user validate them.
>
>   I used 2 TextInput Controls and i have written the followinf code
for validation
>
>import mx.controls.TextInput;
>   
>  public function LoginCheck():void{
>  
> if((uid.text=='1') && (pwd.text=='admin123'))
>{
>mx.controls.Alert.show("Successfully Logged in...");
>} 
>else
>{
>mx.controls.Alert.show("Login Failed!!");
>}
>   }
>
>
>   This code is giving me an error like
>
>   1119: Access of possibly undefined property text through a
reference with static type String. 
>
>
>   Kindly Help
>
>   Thanks
>   Madhuri
> 
>   
> -
>  All-new Yahoo! Mail - Fire up a more powerful email and get things
done faster.
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Passing Embedded object into Grid Component.

2006-09-19 Thread Darin Kohles
As a simple approach to this I'd create an inline renderer for this
column as:


  

  

  


In this case the 'data' object is replicated for each row of your
collection. You can then drill down in the usual fashion to retrieve
embeded objects and their contained values. The same could be done in
an external item renderer written in mxml or actionscript.

--- In flexcoders@yahoogroups.com, "laidezmon" <[EMAIL PROTECTED]> wrote:
>
> OK here is what i am trying to do.
> 
> I have a grid component, and I wanted to display on the grid, a list
> of ship objects. Think of this like a cruise liner.
> 
> I am retrieving these objects from a java/hybernate/spring adapter
> using remote object, and it works ok. I get back an arrayCollection,
> then I build a new array, populatate it with Actionscript ship
> objects, which has an embedded port object.
> 
> Ship has attributes like Name, id, comments etc. And it has an
> embedded homeport object also.
> 
> The port, has name, country and comments too.
> 
> I can get the object to come back, and its being built correctly. I
> have ship objects and each one has its own port object, I see in the
> debugger the objects and thier embedded objects and the embedded
> object values. So I know the constructor is working fine. Here is the
> problem.
> 
> I set the dataprovider attribute to match the array of completed
> ships, and I can get the grid, to display all the ship data, but not
> the port data.
> 
> So Here is my code:
> 
>  dataProvider="{initDG}" creationComplete="loadAllShips()"
> selectedIndex="0" >
> 
> 
> 
> 
> 
> 
> 
> 
> Now the colums name, clazz, comments all work perfectly, as they are
> attributes of ship. However, port.country does not work, it just shows
> a blank column, even though that is the correct notation to get to
> that data field, for the attribute of that ships port home country.
> Its just a string, so for the port called miami, the country is "USA".
> This does not display.
> 
> However if I remove port.country, and only put in port, then it shows
> that whats in that column displays as Object : Port.
> 
> So it seems that the grid knows theres an object in there. But not
> what to do with it?
> 
> I have created a masterViewList and a masterDetails component, and the
> viewList is the grid, and the details is the details section of the
> ship. So there it shows a form, and the form shows all the details of
> the ship selected in the list above. Heres the interesting thing.
> using a label field, I can change the selected list item on the grid,
> and show the ship.port.country in a label on the bottom, so it can
> transverse the ship object, but just not seemingly in the grid.
> 
> What can I do? Why does it work with a label field, and not in the
> grid? Why will the grid not show an embedded string attribute for an
> embedded object, but a label or text box will? What am I doing wrong?
> 
> 
> At the prompting of someone from the Flex Developer forums on adobes
> site, I implemented this also. 
> 
> On the column I put this as the datafield: (instead of the above
> port.country, or port)
> 
>  dataField="{calcPortCountry}" />
> 
> 
> And created this function:
> 
> private function calcPortCountry(item:Object, col:DataGridColumn):String
>   {
>   return item.port.country;
>   }
> 
> But this also gets me the same result. Nothing inside the grid column.
> All the tutorials seem to be for passing simple objects which only
> contain simple attributes, strings ints, and stuff like that. Nothing
> with embedded objects. This is a ship object, which has an embedded
> port object inside it. I have tried debugging this new function, and I
> cannot even get into the function above to see whats being passed.
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: specifying a percentage width in script?

2006-08-24 Thread Darin Kohles
In ActionScript there is a property available that is not available in
MXML, and it is. [drum roll]

percentWidth !!!

(and of course percentHeight)

In some of the betas this was also available in MXML.

--- In flexcoders@yahoogroups.com, "Doug Arthur" <[EMAIL PROTECTED]> wrote:
>
> How can I specify spacer.width = "100%"??? It throws an error
because 100%
> is not an int.
> 
> Thanks!
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: changing state of all itemrenderer instances?

2006-08-24 Thread Darin Kohles
Look into using the dataChange event in your renderer class. Basically
this event fires whenever the dataProvider is changed on your list:
this should include reapplying the same dataprovider that was
previously assigned.

I'd apply a change event function on your check box that basically
re-assigns the dataprovider for the list. Then in the itemRenderer
white a function that check the state of this check box and includes
excludes content based on its value. Here's an example.

http://www.adobe.com/2006/mxml";
dataChange="updateChecks()" >








You could do the same thing to hide/show an mxml based image or use
actionscript to dynamically and condtionally add one






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Limiting decimal places

2006-08-24 Thread Darin Kohles
Use a Currency Formatter:

// import the class
import mx.formatters.CurrencyFormatter;

// in code create and instance and set the format (also include $|,|.
selection)
var cashFormatter:CurrencyFormatter = new CurrencyFormatter();
cashFormatter.precision=2;

// apply the format to the raw and save
productPrice.text = cashFormatter.format(productObj.retailprice);





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Looking for simplest way to transform a MenuBar event: mouseOver=>click

2006-08-24 Thread Darin Kohles
I'm trying to capture a mouseOver event and propogate it as if it were
a click event to control menu opening without forcing the user to
actually click.

Perusing the MenuBar.as and Menu.as class files, I've seen candidate
functions, but they are either set as private or I get a 1061 or 1195
error: "Attempted access of inaccessible method showMenu through a
reference with static type mx.controls:MenuBar." 

I'm wondering if there is a workaround that is simpler that creating a
custom class that extends MenuBar. The alternative is to write a
menuing class from scratch as I've done previously in Flash.

Any thougts?






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] F2: Cascading states

2006-06-26 Thread Darin Kohles
I'm trying to cascade states (mxml format) in a top down fashion. At
each level children are being added, and I need to wait for this to
happen before trying to effect their states. What is the best event
model to approach this? I'm thinking of using the creationComplete
event on the child, that would test its parents state, to determine
which of several states it should choose from. My first approach had
been to try the ChildExistenceChangedEvent.CHILD_ADD on the parent to
monitor for the creation of it's children, but to no avail.

Any thoughts would be appreciated.

Thanks






 Yahoo! Groups Sponsor ~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] f2b3: Using states in itemRenderer

2006-06-13 Thread Darin Kohles
Trying to cascade states in mxml based item renderer.

I've got a viewer that has states, and I'd like to be able to cascade
a state transition through a HorizontalList component that uses an
mxml based itemRenderer on its data provider. The renderer creates
thumbnails that I want to change state when the viewers state changes.
I'm sure there is an array of the thumbs that I could loop through,
but I'm not finding it.

Thanks





 Yahoo! Groups Sponsor ~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] f2b3: Remote Object madness

2006-06-01 Thread Darin Kohles



So I finally broke down and am trying to play with the CF/Flex
connectivity, but I'm running into problems.

Here's the story so far:
- I have a local developer environment set up for CF
(C/:ColdFusionMx7) with a mapping to a remote datasource.
- I have IIS setup to run (C:Inetpub/wwwroot) with a mapping to a www
directory for my test site.
- I downloaded and stuffed the eclipse extensions for CF the plugin
and feature and site.xml additions into the respective paths under
c:Program Files/Adobe/etc... (one copy per location, although I see
that there are also plugin and feature folders in the
com.adobe.flexbuilder.update.site and I did not copy the jar files to
them)
- I also download and installed the cf_flexconnect_B3_win_0428.exe
which ran and said it installed fine.

Next steps:
- found the flex-enterprise-services.xml and set the
false for the webServices.
- got RDS to connect successfully
- successfully was able to use the wizard to create a CFC from an
existing table
- was able to get the window>otherview>Coldfusion Services>Show Web
services to interogate the above mentioned CFC by manually adding it
with the (+) plus button.
- created a new project with ColdFusion Flash Remoting Services
- set up a simple app that is supposed to interrogate my CFC which is
located in the components directory of my locally served test site


http://www.adobe.com/2006/mxml"
layout="absolute">




source="components.storecategory" result="showUser(event)"
fault="showFault(event)" />



But when I run the application, I get the following fault statement:

(mx.rpc::Fault)#0
description = "Send failed"
detail = "Channel.Connect.Failed error NetConnection.Call.Failed:
HTTP: Failed"
errorID = 0
faultcode = "Client.Error.MessageSend"
faultCode = "Client.Error.MessageSend"
faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed:
HTTP: Failed"
faultstring = "Send failed"
faultString = "Send failed"
message = "faultCode:Client.Error.MessageSend faultString:'Send
failed' faultDetail:'Channel.Connect.Failed error
NetConnection.Call.Failed: HTTP: Failed'"
rootCause = (Object)#1
code = "NetConnection.Call.Failed"
description = "HTTP: Failed"
details = "http://localhost/flex2gateway/"
level = "error"

Reading through some of the wiki chatter, I've seen reference to a
flex-services.xml which I do not have. And setting the endpoint nugget
for the flex2gateway. I do have a flex-enterprise-services.xml (as
mentioned above).

So bottom line here is I'm missing something. If anyone could point me
in the right direction, or needs further clarification on my local
setup and installations, please let me know.

Thanks in advance.









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: Question about Flex Beta

2006-04-18 Thread Darin Kohles
--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote:
>
> How easy is it to use Flex Beta to make an application where you
have a  
> password that is secure from being seen, you know to store information?
>

Most text components have a Boolean called 'password' that you can set
to hide display as in html *.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Accessing and binding to (and from) Application level vars

2006-04-18 Thread Darin Kohles
I generally pass a reference to the parent or to the Application scope
in my constructor, depending on what scope I'm interested in having
access to within my custome component (in this cass class instances).
The code generally looks like this:

// where the instance is constructed could be a sub class could be at
application level
var myInst = new myClass(this);

// the class definition
public class myClass{
  private var owner:Object;
  public function myClass(obj:Object){
owner = obj;
  }
}

You can daisy chain this reference to instances used within this
class. You can also easily extend any class to incorporate this
method. The above code gives me access to all peer instances, and data
value that 'live' at the 'owner' level.

Good Luck

--- In flexcoders@yahoogroups.com, "Roger Gonzalez" <[EMAIL PROTECTED]> wrote:
>
> It depends.
> 
> Well, if you're in the main app, its just "this", obviously.  But if
> you're in a child component, you should build the application to pass
> down a handle to the application class instance; make a var on the
> component of type Application, initialized from outside.
> 
> I meant to elaborate a bit more in my previous message.
> Application.application is ok for small "toy" apps, but it doesn't work
> well once your app scales.  In general, relative "paths" of the sort you
> were building will lock you in to a very rigid structure that is hard to
> change.
> 
> Try to figure out the minimal data that a particular control needs to
> attach to, then pass a reference to just that piece.
> 
> Example:
> 
> Application a
>   MyController c
> Button b
> Slider s
>   MyDisplay d
> Label l
> Grid g
> 
> Bad: bind Application.application.d.l.text into b.  You're baking
> knowledge of internals of MyDisplay outside, it will make things hard to
> rewrite.  Using Application.application will also probably break if your
> app is dynamically loaded by another app.
> 
> Better: make have a getLabel() call on MyDisplay, hand that label to
> MyController.
> 
> More Betterer: Make MyDisplay implement an interface that has a
> setDisplayText method, and have code in "a" hand an instance of the
> display interface to c.
> 
> -rg
> 
> 
> > -Original Message-
> > From: flexcoders@yahoogroups.com 
> > [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard
> > Sent: Tuesday, April 18, 2006 12:16 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Accessing and binding to (and from) 
> > Application level vars
> > 
> > What is the proper way to access application-level vars and 
> > methods then?
> > 
> > --- In flexcoders@yahoogroups.com, "Roger Gonzalez" 
> >  wrote:
> > >
> > > > Hello, I have a couple of questions relating to Application level
> > > > access and binding. First off, why can I not bind to a 
> > property using
> > > > this syntax even if the var is declared [Bindable]?:
> > > > 
> > > > dataProvider="{Application.application.arr_selectedPlans}"
> > > > 
> > > > I get the 'Data binding will not be able to detect assignments to
> > > > "application"' warning.
> > > 
> > > I believe this is because its a static, and we don't handle those.
> > > 
> > > Note: Application.application should be avoided at all costs.
> > > 
> > > -rg
> > >
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> > Yahoo! Groups Links
> > 
> > 
> > 
> >  
> > 
> > 
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Release date for Beta 3?

2006-04-14 Thread Darin Kohles
My best guess is mid-May, but there is a slight possiblity it could be
in the next two weeks. My reasoning is as follows: 1.) Beta 2 expires
June 1, and they've usually released several weeks before expiration
2.)The recently announced contest rules state that all entries (due
date is May 1) must be in either Beta 2 or Beta 3 format.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: SWF Object/Embed tags (Flex/Flex 2/Flash 7+)

2006-02-27 Thread Darin Kohles
Thanks Matt for your reply. I generally do copy and paste from the
HTML generated by either Flash (8) or FB (2b). As I mentioned, my
colleague had read an article about dropping the Embed tag, so I
thought I'd ask for the "Official" word on the subject.

Keep on keeping on.

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> I'd use the HTML template that we provide from FB as a guideline for
> what we recommend.
> 
> Matt
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Darin Kohles
> Sent: Friday, February 24, 2006 8:41 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] SWF Object/Embed tags (Flex/Flex 2/Flash 7+)
> 
> I recently had a colleague recommend not using the Embed tag for
> loading SWF files into html. I personally use swifs generated from
> multiple applications and I've currently got FP 8.5 on my main browser
> apps (IE/Moz-FF). I'm wondering if there is a definitive statement
> from someone who develops the applications in question
> (Cartman:'respect my authoritay') who can definately say what
> attributes/params are "actually" required and what are purely
> optional. Unfortunately for me, I have to check platform/browser
> compliance for everything I produce (IE 5 - mac!!!) so I'd like to not
> have conflicts.
> 
> My most recent usage is the following:
> 
>  type="application/x-shockwave-flash" id="vault" name="vault">
> 
>  value="clientID=10&serverURL=http://idp05gwas.d-p.com";>
> 
> 
> 
> 
> 
> Changing/adding stuff gives me inconsistent behaviors. For example
> codebase and classid attributes of the object tag cause failures in
> Firefox and IE respectively. Maybe this is a DOCTYPE issue, but I
> really could use a difinitive answer from a TIC (Those/Them In Charge).
> 
> Thanks for you time. 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] SWF Object/Embed tags (Flex/Flex 2/Flash 7+)

2006-02-24 Thread Darin Kohles
I recently had a colleague recommend not using the Embed tag for
loading SWF files into html. I personally use swifs generated from
multiple applications and I've currently got FP 8.5 on my main browser
apps (IE/Moz-FF). I'm wondering if there is a definitive statement
from someone who develops the applications in question
(Cartman:'respect my authoritay') who can definately say what
attributes/params are "actually" required and what are purely
optional. Unfortunately for me, I have to check platform/browser
compliance for everything I produce (IE 5 - mac!!!) so I'd like to not
have conflicts.

My most recent usage is the following:



http://idp05gwas.d-p.com";>





Changing/adding stuff gives me inconsistent behaviors. For example
codebase and classid attributes of the object tag cause failures in
Firefox and IE respectively. Maybe this is a DOCTYPE issue, but I
really could use a difinitive answer from a TIC (Those/Them In Charge).

Thanks for you time. 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: listOwner equivalent Flex 2

2006-01-31 Thread Darin Kohles
If you write your renderer in AS instead of MXML, you can pass a
reference to the parent when you call the constructor for the class e.g.

in calling class (Application)

myRenderer:myRendererClass = new myRendererClass(this);
someObject.cellRenderer = myRenderer.doRender;

in custom Renderer (constructor)

private var owner:Object;
public class myRendererClass{
  public function myRendererClass(obj:Object){
  owner = obj;
  }
  public function doRender(dataObject:Object):object{
  }
}

That's they way I do it. Good Luck


--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Haven't tried myself, but give parent a shot since he should be a 
> DisplayObject.  Don't have the livedocs available to confirm yet.
> 
> - Original Message - 
> From: "Brendan Meutzner" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 30, 2006 10:11 PM
> Subject: [flexcoders] listOwner equivalent Flex 2
> 
> 
> Hi,
> 
> So working with CellRenderers in Flex 2.0 is great... easy... however,
> what if I want to reference the parent control via "listOwner" as in
> Flex 1.5?
> 
> Brendan
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Reusable CellRenderer

2006-01-31 Thread Darin Kohles
here are some examples:

http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=0325.htm

--- In flexcoders@yahoogroups.com, "Jason Doyle" <[EMAIL PROTECTED]> wrote:
>
> I would like to create a reusable cellRenderer that I can use on
> multiple columns in a dataGrid. But I am having a hrad time wrapping my
> brain around it. First, how would you call the same cellRenderer for
> each column but populate it with different data for each? I have tried
> to assign the cellReneder in actionscript like,
> dataGrid.getColumnAt(7).cellRenderer = "comboBoxCellRenderer"; and then
> set a dataProvider variable in the renderer but I cannot get that to
> work.
> 
> Even if I set the cell renderer with mxml I can only get the
> dataProvider variable to populate the cellRenderer if I pass it a hard
> coded object. If I pass it an object being coming in from a web service,
> it doesn't work. I think that has something to do with timing. LIke the
> cellRenderer gets created before the data come back from the WS. Any
> help in the right direction would be appreciated.
> 
> Here is some of the code...
> 
> 
> //comboBoxcellRenderer.mxml (From
> http://www.richinternetapps.com/archives/72.html)
> 
> 
>  xmlns:mx="http://www.macromedia.com/2003/mxml";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> //projectTaskView.mxml (excerpt only)
> 
> 
> 
>   xmlns:mx="http://www.macromedia.com/2003/mxml";
>  xmlns:ppcView="com.thomson.ppc.stickies.view.*"
>  width="100%"
>  height="595"
>  backgroundColor="#66"
>  cornerRadius="24"
>  creationComplete="initCellRenderer();"
>  marginBottom="6" marginTop="6" marginLeft="6" marginRight="6">
> 
>   view="{ this }" />
> 
>  
> 
>  
>  
>   
> 
>   
> 
>  cellFocusOut="updateResultSet(event)" width="100%">
>  
>  
>   headerText="Complete" width="38" labelFunction="concatPercent" />
>   width="160"/>
>   headerText="Priority" width="32" labelFunction="convertPriority" />
>   width="40"/>
>   headerText="Effort" width="25" labelFunction="convertEffort"/>
>   headerText="Hours" width="32"/>
>   headerText="Duration" width="30"/>
>   headerText="Responsible" width="78"/>
>   headerText="Testing Needed" width="35" labelFunction="convertTesting"/>
>   width="65" labelFunction="calculateHoursLeft" backgroundColor="#eaeaea"
> editable="false"/>
>   width="65" backgroundColor="#eaeaea" labelFunction="calculateDurLeft"
> editable="false" />
>   width="55" backgroundColor="#eaeaea" labelFunction="calculateComplete"
> editable="false"/>
>  
>  
> 
> 
> 
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] How about for Flex 2? Re: Customizing default Flex preloader

2006-01-31 Thread Darin Kohles
Flex 2 docs on this a very thin. Has anyone tackled this? Is it
similar enough to Flex 1.5, that I can use them as a starting point?
Or has the model change drastically for AS3?

Thanks for any feedback.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] How about for Flex 2? Re: Customizing default Flex preloader

2006-01-31 Thread Darin Kohles
Flex 2 docs on this a very thin. Has anyone tackled this? Is it
similar enough to Flex 1.5, that I can use them as a starting point?
Or has the model change drastically for AS3?

Thanks for any feedback.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: How do you make an array of images

2005-12-19 Thread Darin Kohles
It's easier to do the object route:

var myImages:Object;

myImages = new Array(length);
for (:xhttp://etc.";;
}

Good Luck

--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote:
>
> Do you make an array of Objects or do you make an array of 
>







 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] (Flex 2) Knock Knock: Who's there?

2005-12-17 Thread Darin Kohles
If this is the future, lets hear about it.

Fritz: "Because it doesn't really work (at least for me), to use the
existing swf in Flex (I read from some issues with AS2 / AS3...) I try
to port the entire app."

http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=0780.html


Thanks for listening





 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Flex2 and Amfphp is it possible ?

2005-12-16 Thread Darin Kohles
Let's sum up shall we? If anyone's keeping track, and are willing to
call this one "discussed", please do so.

The yahoo format is not the best, but I've been trying to follow some
threads without overburdening my intake. I think there are a few
things getting lost in the shuffle when time is limited.

Thanks for being involved enough to keep on a'readin'.


--- In flexcoders@yahoogroups.com, "everybody...> wrote:
>
> yep, they sure did.





 Yahoo! Groups Sponsor ~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: (new issue) Using Embed with dynamic values possible?

2005-12-15 Thread Darin Kohles
I've got dynamically loaded images (as images - not icons) that I then
'simulate' as links by having event listeners take action on mouse
down and up events - which then call getURL() to send someone elsewhere.

This should be public soon enough, and I may get in trouble for
sharing it ;) but check out:

http://d-p.com/ria/amazon/

There are still a few quirks that I'm working out, so this isn't the
final version.

I don't use repeaters, but generate everything with AS as I recieve
data from the provider - looping through and addChild()'ing as I go
(just remember to clear your field before adding more).

Hope this helps - give it a play.

--- In flexcoders@yahoogroups.com, "Stacy Young" <[EMAIL PROTECTED]> wrote:
>
> Took the AS approach and I've got it working for images ... moving
> beyond my initial tests I realized I actually need to create a series of
> Links (dynamic image path set as the icon attribute) rather than Images
> and this approach doesn't work. In desperation I attempted to create all
> the Image objects (hidden) and tried to reference them as the source of
> the icon when creating the Links but no go...is there no such thing as
> "Linkage ID" in flex? Eek!
> 
>  
> 
> -Stace
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Stacy Young
> Sent: Tuesday, December 13, 2005 10:39 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Re: Using Embed with dynamic values possible?
> 
>  
> 
> Was taking a similar approach with repeater and Image tag...thanks for
> the tip!
> 
> Stace
> 
>  
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Darin Kohles
> Sent: Tuesday, December 13, 2005 10:32 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Using Embed with dynamic values possible?
> 
>  
> 
> Stacy, yes and no. Just create a new image dynamically when your XML
> data is returned (no need to use Embed in this case):
> 
> private function resultHandler(event:ResultEvent):Void {
> myImage: new Image();
> myImage.source=event.result._xml_path_to_image_url;
> 
> someContainerObjectLikeCanvas.addChild(myImage);
> }
> 
> Hope this help
>







 Yahoo! Groups Sponsor ~--> 
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Selection.setSelection Issue

2005-12-15 Thread Darin Kohles
Try passing the explicit values to your function:

setFBack(mytext.Selection.getBeginIndex(), mytext,Selection.getEndIndex())

function setFBack(begin:Number, end:Number){
}

OR (Flex 2??):
 public var begin:Number;
 etc..

Maybe one of these will help.

Good Luck

--- In flexcoders@yahoogroups.com, "Brian McPheeters"
<[EMAIL PROTECTED]> wrote:
>
> Here is my code. I have tried this with 7,0,35,29 on IE and Firefox.
Seems like some event is changing the Selection after I set it.
>  
>  
> 
> http://www.macromedia.com/2003/mxml";>
>  
>   
>  
>  
>  
>   
>
> Macromedia Flex
> Macromedia Dreamweaver
> Macromedia ColdFusion
> Macromedia Flash
>
>
>  
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com on behalf of Abdul Qabiz
> Sent: Thu 12/15/2005 11:03 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Selection.setSelection Issue
> 
> 
> Hi,
>  
> Can you please post the sample code, how are you doing?
>  
> I think, it should work. Which version of Flash Player you are
testing it in?
>  
> -abdul
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Brian McPheeters
> Sent: Thursday, December 15, 2005 1:27 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Selection.setSelection Issue
> 
> 
> I am storing the current selected indexes of my TextArea so when
certain events happen on other controls I can setFocus back to the
TextArea and set the selectedText back to where it was. When I do this
the highlighted text is not the same as the positions I submitted but
the indexes seem to get set to -1,-1. Anyone dealt with this before?
>  
> Brian
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> 
> YAHOO! GROUPS LINKS 
> 
> 
>   
> *  Visit your group "flexcoders
 " on the web.
> 
> *  To unsubscribe from this group, send an email to:
>[EMAIL PROTECTED]
 
> 
> *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service  . 
> 
> 
> 
>






 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Accordion icons

2005-12-15 Thread Darin Kohles
I've just been dealing with this in Flash 8 (AS 2).

 myAcc.setStyle('headerHeight',20);

I also had problems with header text - do a:

var headerObj:Object = myAcc.getChildAt(x);
for (var i:Object in headerObj){
  trace(i + " " myAcc[i])
}

Look at the defined values (and undefined) and use setStyle('blah',
value) to fill in what's missing. This is how I got it to work in AS
2. Also .labelPlacement='top' gave me the default centering for the
header label. Trying to do everything dynamically means you've got to
dot your i's and cross your t's :(

Good Luck

--- In flexcoders@yahoogroups.com, "nextadvantage" <[EMAIL PROTECTED]> wrote:
>
> Thanks jesterxl,
> 
> We got it working another way but your method is better, now can we
> adjust the height of the header?
> 
> --- In flexcoders@yahoogroups.com, "JesterXL" <@j...> wrote:
> >
> > This works.  My img is a 22x22 png.
> > 
> > 
> >  >  xmlns:mx="http://www.macromedia.com/2003/mxml";>
> >  
> >  
> >  
> > > icon="@Embed('images/icons/control_checkbox.png')" />
> >
> >
> >
> >
> >  
> >  
> >  
> > 
> > 
> > - Original Message - 
> > From: "nextadvantage" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Thursday, December 15, 2005 6:43 PM
> > Subject: [flexcoders] Accordion icons
> > 
> > 
> > Does anyone here have any sample code to display a icon/swf in the
> > header of a accordion all the samples I have googled for don't seem to
> > work.
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> > Yahoo! Groups Links
> >
>






 Yahoo! Groups Sponsor ~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Datagrid CellRenderer doesn't fill entire cell

2005-12-14 Thread Darin Kohles
You might try playing with some style properties like:

setStyle("borderThinkness",0)
setStyle("focusThinkness",0)
setStyle("marginLeft",0)
setStyle("marginRight",0)

Maybe one of these will do the trick.

Good Luck

--- In flexcoders@yahoogroups.com, "stepanhil" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> I'm customizing background color of cells based on the value in cell.
> I got that working, the problem is that I get 1px spacing between the
> cell and vertical grid (not always on all sides though). It seems to
> have something to do with styles, but I can't find a way to get rid
of it.
> 
> In comparison, setting a cell background on column has the desired
> effect (no spacing between bg color and border)
> 
> I've tried to base the renderer on Box, Canvas and modifying margins
> and vertical gaps but without success.
> 
> Thanks, Stepan
>







 Yahoo! Groups Sponsor ~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: flex 2 translation

2005-12-13 Thread Darin Kohles
The call back/listener function passes the event as a default
parameter (giving you access to its properties, like x, and y of click
etc.), if you want extend your function to pass additional arguments,
you are free to do so.

I'm not entirely certain of the necessary syntax in the listener
statement, since I usually inline my listener functions and rely on
scoped variables for passing data back and forth instead of passing
arguments.  This doesn't necessarily make for the most portable code,
but as of yet it's not been much of an issue.

--- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote:
>
> Thanks for the link. Need to do some reading. 
> Is there an alternative to your suggestion regarding someFunction 
> and val1.
> 
> regards
> bod
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Darin Kohles" <[EMAIL PROTECTED]> wrote:
> >
> > I little bit more to clarify:
> > 
> > You should have a variable defined and set in your application that
> > stores the text you'd like to pass/use when the event is triggered:
> > 
> > public var val1:String="Hello"; // defined and set for use 
> elsewhere
> > 
> > To be complete you need to define the someFunction (this was just 
> an
> > example) elsewhere in you application:
> > 
> > public function someFunction():Void{ // do stuff pehaps with val1 
> etc.}
> > 
> > As to the mouse event vs mouse event type, check here:
> > 
> > 
> http://livedocs.macromedia.com/labs/1/flex/langref/flash/events/Mouse
> Event.html
> > 
> > Hope this helps
> > 
> > --- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote:
> > >
> > > Thanks Darin for your input, i would like to ask some further 
> > > questions on your suggestions.(appreciate your help).
> > > 
> > > > this.addEventListener(MouseEventType.CLICK, myClickFunction);
> > > 
> > > you mean MouseEvent.CLICK?
> > > 
> > > > this.parent.addEventListener("myEvent", someFunction);
> > > 
> > > I'm sure thats a compile error (compiler will say "cant 
> > > find 'somefunction' etc"). 
> > > 'someFunction' lives in this.parent (actually 
> this.parentDocument if 
> > > you take my original question)
> > > 
> > > > dispatchEvent({type:"myEvent", val1:"hello"});
> > > > dispatchEvent(new Event("myEvent));
> > > 
> > > but what about my 'val1' value ("hello");
> > > 
> > > 
> > > The docs don't give enough info
> > > 
> > > regards 
> > > bod
> > > 
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Darin Kohles" <[EMAIL PROTECTED]> 
> wrote:
> > > >
> > > > A couple fo issues here:
> > > > 
> > > > function startUp():Void
> > > > {
> > > > /* event listener needs target (this) event to listen for
> > > > (MouseTypeEvent.CLICK) and what to do about it 
> (myClickFunction - 
> > > stay
> > > > away from using key words like 'click' for custom functions */
> > > > this.addEventListener(MouseEventType.CLICK, myClickFunction);
> > > > 
> > > > /* same goes here, notice change in syntax 
> target.|event|function 
> > > */
> > > > this.parent.addEventListener("myEvent", someFunction);
> > > > 
> > > > dispatchEvent(new Event("myEvent));
> > > > }
> > > > 
> > > > myClickFunction(event:Event):Void {// some stuff here}
> > > > 
> > > > If you want to send information using an an event you'll need 
> to 
> > > find
> > > > a different mechanism e.g. a global variable, or another 
> interface
> > > > function that is step up to pass data. The event listener is 
> more 
> > > to
> > > > say 'when' something happens, not 'what' is to happen.
> > > > 
> > > > Good Luck
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> 
> wrote:
> > > > >
> > > > > Hi 
> > > > > i've got a knowledge issue.
> > > > > what does this flex 1.5 code translate to
> > > > > Flex 1.5 
> > > > > 
> > > > > function startUp()

[flexcoders] Re: flex 2 translation

2005-12-13 Thread Darin Kohles
I little bit more to clarify:

You should have a variable defined and set in your application that
stores the text you'd like to pass/use when the event is triggered:

public var val1:String="Hello"; // defined and set for use elsewhere

To be complete you need to define the someFunction (this was just an
example) elsewhere in you application:

public function someFunction():Void{ // do stuff pehaps with val1 etc.}

As to the mouse event vs mouse event type, check here:

http://livedocs.macromedia.com/labs/1/flex/langref/flash/events/MouseEvent.html

Hope this helps

--- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote:
>
> Thanks Darin for your input, i would like to ask some further 
> questions on your suggestions.(appreciate your help).
> 
> > this.addEventListener(MouseEventType.CLICK, myClickFunction);
> 
> you mean MouseEvent.CLICK?
> 
> > this.parent.addEventListener("myEvent", someFunction);
> 
> I'm sure thats a compile error (compiler will say "cant 
> find 'somefunction' etc"). 
> 'someFunction' lives in this.parent (actually this.parentDocument if 
> you take my original question)
> 
> > dispatchEvent({type:"myEvent", val1:"hello"});
> > dispatchEvent(new Event("myEvent));
> 
> but what about my 'val1' value ("hello");
> 
> 
> The docs don't give enough info
> 
> regards 
> bod
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Darin Kohles" <[EMAIL PROTECTED]> wrote:
> >
> > A couple fo issues here:
> > 
> > function startUp():Void
> > {
> > /* event listener needs target (this) event to listen for
> > (MouseTypeEvent.CLICK) and what to do about it (myClickFunction - 
> stay
> > away from using key words like 'click' for custom functions */
> > this.addEventListener(MouseEventType.CLICK, myClickFunction);
> > 
> > /* same goes here, notice change in syntax target.|event|function 
> */
> > this.parent.addEventListener("myEvent", someFunction);
> > 
> > dispatchEvent(new Event("myEvent));
> > }
> > 
> > myClickFunction(event:Event):Void {// some stuff here}
> > 
> > If you want to send information using an an event you'll need to 
> find
> > a different mechanism e.g. a global variable, or another interface
> > function that is step up to pass data. The event listener is more 
> to
> > say 'when' something happens, not 'what' is to happen.
> > 
> > Good Luck
> > 
> > --- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi 
> > > i've got a knowledge issue.
> > > what does this flex 1.5 code translate to
> > > Flex 1.5 
> > > 
> > > function startUp():Void
> > > {
> > >  this.addEventListener("click", this);
> > >  this.addEventListener("myEvent", this.parentDocument);
> > >  
> > >  dispatchEvent({type:"myEvent", val1:"hello"});
> > > }
> > > 
> > > function click(event):Void
> > > {
> > >   //do something
> > > }
> > > 
> > > flex 2 ??
> > > -
> > > import flash.events.Event; //do i have to add this all the time
> > > 
> > > private function startUp():Void
> > > {
> > >  this.addEventListener(MouseEvent.CLICK, this);
> > >  this.addEventListener("myEvent", this.parentDocument);
> > > 
> > >  dispatchEvent({type:"myEvent", val1:"hello"});//
> > > }
> > > 
> > > private function click(event:Event):Void
> > > {
> > >  //do something
> > > }
> > >
> >
>






 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Using Embed with dynamic values possible?

2005-12-13 Thread Darin Kohles
Stacy, yes and no. Just create a new image dynamically when your XML
data is returned (no need to use Embed in this case):

private function resultHandler(event:ResultEvent):Void {
myImage: new Image();
myImage.source=event.result._xml_path_to_image_url;

someContainerObjectLikeCanvas.addChild(myImage);
}

Hope this helps

--- In flexcoders@yahoogroups.com, "Stacy Young" <[EMAIL PROTECTED]> wrote:
>
> I'm creating a component that will require a XML dataprovider in which a
> number of elements are paths to images. Currently I'm embedding these
> images statically as follows: 
> 
>  
> 
> [Embed(source="/assets/images/menu/menu_inbox_off.png")]
> 
> var img_0_off :String;
> 
>  
> 
> [Embed(source="/assets/images/menu/menu_inbox.png")]
> 
> var img_0_on :String;
> 
>  
> 
> Now those image urls are dynamic...is there still a way I can embed
> these images?
> 
>  
> 
> Cheers!
> 
> Stace
>







 Yahoo! Groups Sponsor ~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: flex 2 translation

2005-12-13 Thread Darin Kohles
A couple fo issues here:

function startUp():Void
{
/* event listener needs target (this) event to listen for
(MouseTypeEvent.CLICK) and what to do about it (myClickFunction - stay
away from using key words like 'click' for custom functions */
this.addEventListener(MouseEventType.CLICK, myClickFunction);

/* same goes here, notice change in syntax target.|event|function */
this.parent.addEventListener("myEvent", someFunction);

dispatchEvent(new Event("myEvent));
}

myClickFunction(event:Event):Void {// some stuff here}

If you want to send information using an an event you'll need to find
a different mechanism e.g. a global variable, or another interface
function that is step up to pass data. The event listener is more to
say 'when' something happens, not 'what' is to happen.

Good Luck

--- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote:
>
> Hi 
> i've got a knowledge issue.
> what does this flex 1.5 code translate to
> Flex 1.5 
> 
> function startUp():Void
> {
>  this.addEventListener("click", this);
>  this.addEventListener("myEvent", this.parentDocument);
>  
>  dispatchEvent({type:"myEvent", val1:"hello"});
> }
> 
> function click(event):Void
> {
>   //do something
> }
> 
> flex 2 ??
> -
> import flash.events.Event; //do i have to add this all the time
> 
> private function startUp():Void
> {
>  this.addEventListener(MouseEvent.CLICK, this);
>  this.addEventListener("myEvent", this.parentDocument);
> 
>  dispatchEvent({type:"myEvent", val1:"hello"});//
> }
> 
> private function click(event:Event):Void
> {
>  //do something
> }
>






 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: (Flex 2.0) interacting with SWF files

2005-12-13 Thread Darin Kohles
Thanks for the links Michael! I'm not expecting a difinitive guide at
this point, rather I expect to gleen bits and pieces from those who
have bravely trod this path before me.

Keep on keeping on

--- In flexcoders@yahoogroups.com, Michael Hansen <[EMAIL PROTECTED]> wrote:
>
> Not exactly what you are looking for, but perhaps it may help you
anyway...
> 
> http://www.helpqlodhelp.com/blog/archives/000141.html
> 
> http://www.livejournal.com/users/mannu/305284.html
> 
> cheers
> 
>  -michael
> 
> 
> On 12/13/05, Darin Kohles <[EMAIL PROTECTED]> wrote:
> >
> >  I was wondering if anyone can point me to some good documentation for
> > interacting with Flash generated SWF files in Flex 2.0. At present I'm
> > trying to re-skin some components with dynamic content (small event
> > triggerd animations) but so far to no avail.
> >
> > Any help would be appreciated.
> >
> > Thanks
> >







 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] (Flex 2.0) interacting with SWF files

2005-12-12 Thread Darin Kohles
I was wondering if anyone can point me to some good documentation for
interacting with Flash generated SWF files in Flex 2.0. At present I'm
trying to re-skin some components with dynamic content (small event
triggerd animations) but so far to no avail.

Any help would be appreciated.

Thanks





 Yahoo! Groups Sponsor ~--> 
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/VpTY2A/lzNLAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




flexcoders@yahoogroups.com

2005-12-11 Thread Darin Kohles
and the solution was ?

--- In flexcoders@yahoogroups.com, Greg Morphis <[EMAIL PROTECTED]> wrote:
>
> nevermind, I got it
> On 12/9/05, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > getURL() doesnt like & I keep getting
> > "The reference to entity "date" must end with the ';' delimiter."
> > So how do you get around this?
> > Here's my code
> > 
> >
> >
> > Thanks
> >
> > --
> > Auxilium meum a Domino
> >
> 
> 
> --
> Auxilium meum a Domino
>






 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Pure AS3 button application (Flex 2)

2005-12-10 Thread Darin Kohles
Try /* */  and // on the auto-generated code. When you hit something
that is "required" you'll know it.

Unfortunatly, I end up doing this when I add too much at once,
thinking that everything is supported.


Good Luck

--- In flexcoders@yahoogroups.com, "zlayabuka" <[EMAIL PROTECTED]> wrote:
>
> I wonder if there any chance to compile in Flex 2 a pure ActiveScript 
> 3 application with a minimal GUI, say with only one button, and with 
> zero mxml.
> 
> Tried tons of variants like: 
> ---
> package {
>   import flash.display.MovieClip;
>   import mx.controls.Button;
>   import mx.core.Application; 
>   import mx.containers.Canvas;
> 
>   public class as_test extends mx.core.Application /* or 
> MovieClip */ {
>   public var myButton:Button;
>   public var myCanvas:Canvas;
>   public function as_test() {
>   myCanvas = new Canvas();
>   myCanvas.percentHeight = 100;
>   myCanvas.percentWidth = 100;
>   this.addChild (myCanvas);
>   myButton = new Button();
>   myButton.label = "Stop!";
>   myButton.setStyle ("color", 0xFF);
>   myCanvas.addChild (myButton);
>   myButton.addEventListener ("click", doClick);
>   }
>   public function doClick():Void {
>   myButton.setStyle ("color", 0x00ff00);
>   }
>   }
> }
> --
> but nothing happens. Blank player screen.
> Huh.
> 
> 
> Well, I compiled the Flex code:
> 
> 
> http://www.macromedia.com/2005/mxml"; 
> xmlns="*">
>   
>   
>   
> 
> 
> with -keep-generated-actionscript=true, looked at the generated 
> source and got pissed off: 25 kb of low-level activescript. Sure, it 
> worked as desired if started in Flex, but hell, is there any chance 
> to have a non-mxml button with less mess? There is no clue in the 
> docs, no byte of examples - at least in my disposal.
> 
> Any help or ideas?
>






 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: passing Map in remote object

2005-12-10 Thread Darin Kohles
Encounter this often in DOM JS coding. I would just add to Matt's code:

for (var key:String in obj){
   trace("var: "+var+" | Obj[var]: "+String(obj[var]));
   Alert.show("var: "+var+" | Obj[var]: "+String(obj[var]));
}

Do somthing like that and you'll be able to know which object/property
you want to assign, then get rid of the loop and assign accordingly.

Take luck

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> It probably was returned as an Object.  We don't have a specific HashMap
> class, instead Object is what you'll get and it won't indicate how many
> properties there are.  You can however still iterate through them:
> 
>  
> 
> var numProps:int = 0;
> 
> for (var key:String in obj)
> 
> {
> 
>   var value = obj[key];
> 
>   numProps++;
> 
> }
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of jgraham_us
> Sent: Thursday, December 08, 2005 10:13 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] passing Map in remote object
> 
>  
> 
> I have a server side POJO that has a HashMap, my actionscript call 
> makes a call to the server using remote objects.  When I get the 
> object on the flex side the Map is represented as Object or an Array I 
> guess.  The length is always zero, yet my items are in the object.
> 
> Why is the length always zero?  I need to iterate through these.
> 
> Thanks
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> SPONSORED LINKS 
> 
> Web site design development
>  site+design+development&w2=Computer+software+development&w3=Software+des
> ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac
> tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>  
> 
> Computer software development
>  b+site+design+development&w2=Computer+software+development&w3=Software+d
> esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
> actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>  
> 
> Software design and development
>  Web+site+design+development&w2=Computer+software+development&w3=Software
> +design+and+development&w4=Macromedia+flex&w5=Software+development+best+
> practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>  
> 
> Macromedia flex
>  development&w2=Computer+software+development&w3=Software+design+and+deve
> lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1
> 66&.sig=OO6nPIrz7_EpZI36cYzBjw>  
> 
> Software development best practice
>  w1=Web+site+design+development&w2=Computer+software+development&w3=Softw
> are+design+and+development&w4=Macromedia+flex&w5=Software+development+be
> st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>  
> 
>  
> 
>  
> 
> 
> 
> YAHOO! GROUPS LINKS 
> 
>  
> 
> *  Visit your group "flexcoders
>  " on the web.
> 
> *  To unsubscribe from this group, send an email to:
>[EMAIL PROTECTED]
>  
> 
> *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service  . 
> 
>  
> 
> 
>






 Yahoo! Groups Sponsor ~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Why does this effect not work?

2005-12-10 Thread Darin Kohles
Transed lots'a (of) code from many plats (platforms) ((and it sucks)).
 What you(I) assume in one, aint gonna work in t'other.  But sometimes
what does 'work' is better to work around than re-write ('smother
times it be aint). 'nuff said. ( if'n,... - If you can understand the
preceading, well mo powa to ya)

DP - it's where I'm going to start working on your Moe's code, and
hopefully get everyone up to speed.

D

--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> You port code?  I've found in the Flash world, it's just quicker and
better 
> to re-write.  Perhaps one day I'll get put on these famed "large,
succesful" 
> projects I keep hearing about.
> 
> BTW, what's DP?  









 Yahoo! Groups Sponsor ~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Why does this effect not work?

2005-12-09 Thread Darin Kohles
Ralf,

Wie Gehts? (no I really don't remeber my german 5 years ~ 20 years ago)

Be careful of your use of 'this' as the target of your effect (Jesse
stop by DP some time, ask for Ben, and maybe we can meet - Flash issues).

I've had similar code that I've changed the effect type one several
times until I was satisfied with the effect. My take is - be explicit
on what your target is. Give your target an id, and use that as your
target. In this case I think that 'this' refers to ?? the newly
created instance of a Fade object that as yet is not tied to anything.

A sample:

var fadeIn:Fade = new Fade(lgImage);
fadeIn.alphaTo = 1;
fadeIn.playEffect();
fadeIn.addEventListener(EffectEvent.EFFECT_END,
function():Void{
detailText.visible=false;
});

The same can be appied in reverse (use a Bool in an if/else structure
that changes on each effect (alpha change). You'll notice that the
target is an id'ed component, not a 'this'. The event listener is just
a clean-up call (for a Wipe effect, that I've found to be buggy).

This code works for event.target as well - stay away from 'this'
unless you know what 'this' is.

On a side note, I've ntice that you tend to use a lot of _somethings
and __somethings in your code (as do others) - some of these are
prototype based and I would not count on having access to them in the
future.  The closer you can fit your code within the top level
structure, the better luck you'll have porting apps in the future.

Just some thoughts

--- In flexcoders@yahoogroups.com, "Ralf Rottmann"
<[EMAIL PROTECTED]> wrote:
>
> Hi there,
> 
> Following up on the recent posting related to Flex effects, can
anybody comment on why the following very simple code excerpt does not
work? All I want to do is on click of the button fade the label from 0
to 1.
> 
> private function FadeIn():Void {
>   var fx:Fade = new Fade(this.lbl);
>   fx.fromAlpha = 0;
>   fx.toAlpha = 1.0;
>   fx.duration = 2000;
>   fx.playEffect();
> } 
> 
> 
> 
> 
> What it should do:
> Render the label.
> Render the button.
> Wait.
> User clicks.
> Label hides (alpha = 0).
> Label slowly fades alpha to 1.
> 
> However: No fade at all happens.
> 
> Why?
> Isn't this exactly how effects are supposed to work conceptually?
> 
> (Talking about Flex 2 Alpha 1 here.)
> 
> Best regards
> RR
> --
> mobile: +49-(0)170-914-5495
> email:   [EMAIL PROTECTED]
>






 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Comparing complex objects

2005-12-09 Thread Darin Kohles
If you're familiar with the concept of a "deep copy", then you can
apply the same to a compare function (of course you'll have to write
it yourself ;). Anytime you are dealing with a complex and/or custom
type it's a good idea to plan on comparison and choose what is, in
fact, 'equal'.

This can be usefull if you decide that sometimes 'equal' is equal
enough, and other time equal has-to-mean equal.

Pick what you think you need to include, and do an item by item
comparison (in the 'normal' sense) with a Bool that tracks the overall
result.


Good Luck

--- In flexcoders@yahoogroups.com, "Stacy Young" <[EMAIL PROTECTED]> wrote:
>
> Wondering how others would go about comparing instances of complex
> objects while avoiding circular references and having flash explode?
> 
> Thx!
> Stace
>






 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





flexcoders@yahoogroups.com

2005-12-09 Thread Darin Kohles
Dunno if this will help but try & 

Otherwise use encodeURI() on your URL string and you'll be much
happier. (I think)

Good Luck

--- In flexcoders@yahoogroups.com, Greg Morphis <[EMAIL PROTECTED]> wrote:
>
> getURL() doesnt like & I keep getting
> "The reference to entity "date" must end with the ';' delimiter."
> So how do you get around this?
> Here's my code
>   
> 
> 
> Thanks
> 
> --
> Auxilium meum a Domino
>






 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Comparing complex objects

2005-12-09 Thread Darin Kohles
If you're familiar with the concept of a "deep copy", then you can
apply the same to a compare function (of course you'll have to write
it yourself ;). Anytime you are dealing with a complex and/or custom
type it's a good idea to plan on comparison and choose what is, in
fact, 'equal'.

This can be usefull if you decide that sometimes 'equal' is equal
enough, and other time equal has-to-mean equal.

Pick what you think you need to include, and do an item by item
comparison (in the 'normal' sense) with a Bool that tracks the overall
result.


Good Luck

--- In flexcoders@yahoogroups.com, "Stacy Young" <[EMAIL PROTECTED]> wrote:
>
> Wondering how others would go about comparing instances of complex
> objects while avoiding circular references and having flash explode?
> 
> Thx!
> Stace
>







 Yahoo! Groups Sponsor ~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Applying "transition" effects to Flex state transitions (Flex 2 Alpha 1)

2005-12-08 Thread Darin Kohles
check Here:

http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=584&threadid=1090772&enterthread=y

--- In flexcoders@yahoogroups.com, "Ralf Rottmann"
<[EMAIL PROTECTED]> wrote:
>
> Has anybody managed to apply effects to state transitions so does a
> currentState="xyz" causes the new state to be effected in/out?
> 
>  
> 
> Ralf Rottmann | Director Sales & Marketing
> VoicInt Telecommunications GmbH | Lindemannstrasse 78 | 44137 Dortmund |
> Germany
> p: +49-(0)231-557402-11 | f: +49-(0)231-557402-99 |
> m:+49-(0)170-914-5495 | e: [EMAIL PROTECTED]
>  
> 
> -
> 
> Besuchen Sie uns auf der CallCenterWorld 2006, 13.-16. Februar 2006,
> Estrel Convention Center, Berlin
> 
> Sie finden uns am Stand 1C18. Erleben Sie unsere Produkte live und ganz
> ohne PowerPoint!
>







 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: How to put Button or Linkbar in DataGrid

2005-12-07 Thread Darin Kohles
In the dataGridColumn set cellRenerer="myRenderer", then create a new
component based on a container like VBox and name it myRenderer.mxml.
 Inside this new file add code like:


http://www.macromedia.com/2005/mxml"; xmlns="*">



Here the dataObject represents the bound dataProvider, and .go is a
column with (in this case) URL information.

Good Luck

--- In flexcoders@yahoogroups.com, "jagabcdeff" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Please let me know how to put button or link bar in DataGridColumn. 
> 
> thanks,
> 
> Jagadeesh
>









 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: (Flex 2.0) Slider.labels bug?

2005-12-06 Thread Darin Kohles
Thanks for the responses Matt and Sreenivas.

For those interested my, work-around for this was to simply remove the
exiting slider, and add a replacement at the same place in the child
stack (within an VBox). myBox.removeChildAt() and myBox.addChildAt().

One other thing tho - I tried setting this up with a
myBox.getChildIndex(myBox.getChildByName()) with no success (also a
bug in getChildByName? - assuming name implies id value) instead I
simply wrapped the sliders in an VBox to restrict their child order
placement to known values.

I also noticed a similar issue using state change overrides for things
like simple Link items (changing click functionality). Until the next
release I've been doing 'state' changes purely programmatically, and
when in doubt doing a remove/add child to update my components.

Keep on codin'

--- In flexcoders@yahoogroups.com, Sreenivas R
<[EMAIL PROTECTED]> wrote:
>
> Hi Darin,
> 
> This is a bug. It will be fixed in the next release.
> 
> -Sreenivas.
>






 Yahoo! Groups Sponsor ~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] (Flex 2.0) Slider.labels bug?

2005-12-05 Thread Darin Kohles
On dynamic mySilder.labels re-assignment, the .labels array always
retains the first label (and appears to pre-append its value to the
assigned array).

Setting the labels array dynamically after the initial display appears
to retain the low value.

mySlider.labels=[0,100]; //displays OK
... more code
mySlider.labels=[50,100]; // looks like I set mySlider.labels=[0,50,100]

The first set low value label remains. I've tried setting the .labels
array to null and an arbitrary value array but the .labels[0] (as
displayed) does not want to change. The slider behaves correctly, but
the labels don't.

Just bugn me.







 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Custom Validator on CheckBox

2005-12-03 Thread Darin Kohles
In addition to what Matt has said: it depends on when you're firing
your validator.

in MXML do validation on user event:

-or-


If you're doing it programmatically in AS, you can add an event
listener for mouse events for this target.
myCheckBox.addEventListener(MouseEvent:MOUSE_UP,myValidation);

Either way should give you real-time error checking.

Good Luck

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> Does the validator fire when you check the checkbox and it's just that
> the error doesn't clear?  Or does the validator not fire when you click
> on the checkbox?
> 
>  
> 
> If the first it sounds like a bug, you could workaround it by adding a
> validate handler and setting the errorString on the checkbox to null if
> there are no errors.
> 
>  
> 
>  field="fieldValues.DonationConfirmation" required="true" validate="if
> (!event.validator.hasErrors()) DonationConfirmation.errorString =
> null;"/>
> 
>  
> 
> I think that the Checkbox does clear its error messages though so I'd
> make sure that your validator is really firing and doing the right
> thing.
> 
>  
> 
> Matt
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of im_sean_s
> Sent: Friday, December 02, 2005 1:27 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Custom Validator on CheckBox
> 
>  
> 
> Hello.  I have a form in an application I'm building that requires the
> user to check a CheckBox that acknowledges they read a statement.  In
> order to check that the CheckBox has been checked, I created a custom
> validator.  The validator works fine, but the problem I have is that
> when the user checks the CheckBox, the error message does not go away.
> The code for the validator is below.
> 
> Thank you,
> Sean
> 
> class CheckboxRequiredValidator extends mx.validators.Validator
> {
> 
> public function CheckboxRequiredValidator()
> {
>   
> }
> 
> public function doValidation(checkboxValue):Void
> {
> 
> CheckboxRequiredValidator.validateCheckbox(this,checkboxValue,required,n
> ull);
> }
> 
> public static function
> validateCheckbox(validator:mx.validators.Validator,
>  
> checkboxValue, required, subfield):Boolean
> {
>   if ( required && !Boolean(checkboxValue)) 
>   {
> validator.validationError("notCheckedError",
> "This checkbox must
> be checked.", subfield);
> return false;
>   }
>   return true;
> }
> }
> 
> 
>
> {DonationConfirmation.selected} ion>
> 
> 
>  field="fieldValues.DonationConfirmation" required="true"/>
> 
>  selected="{formModel.DonationConfirmation}"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> 
> 
> YAHOO! GROUPS LINKS 
> 
>  
> 
> *  Visit your group "flexcoders
>  " on the web.
> 
> *  To unsubscribe from this group, send an email to:
>[EMAIL PROTECTED]
>  
> 
> *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service  . 
> 
>  
> 
> 
>






 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Flex 2.0 : How to validate form fields ?

2005-11-30 Thread Darin Kohles
--- In flexcoders@yahoogroups.com, "Michel Bertrand"
<[EMAIL PROTECTED]> wrote:
>
> Hi !
> 
> I've tried to find an approuch to validate fields of a data form.

chech this:

http://www.macromedia.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=582&flcache=2109871





 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Flex 2.0 : How to validate form fields ?

2005-11-30 Thread Darin Kohles
--- In flexcoders@yahoogroups.com, "Michel Bertrand"
<[EMAIL PROTECTED]> wrote:
>
> Hi !
> 
> I've tried to find an approuch to validate fields of a data form.

chech this:

http://www.macromedia.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=582&flcache=2109871





 Yahoo! Groups Sponsor ~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: datagrid column sorting

2005-11-30 Thread Darin Kohles
Not entirely sure about why it in the middle of your order. But I've
handled this in Flash by doing the following:

For display, set up a custom cellRenderer (listItemRenderer) that
checks for undefined values and gives them a default display value:
e.g. NA (Not Available) etc.

For sort, provide a custom sort function (this is where you can do a
toUpper or toLower conversion for case insensitive sorting).  When you
encounter a null value (blank) assign a value in the sort function
that is higher/lower to put it where you want it. An example is:

function dateSort1(a:Object, b:Object, index:Number){
a=a.datemodified.getTime();
b=b.datemodified.getTime();
if(a == null) a=0;
if(b == null) b=0;
if(asc1){
trace("ascend");
if(a > b){
return 1;
}else if (a < b){
return -1;
}else{
return 0;
}
}else{
trace("descend");
if(a > b){
return -1;
}else if (a < b){
return 1;
}else{
return 0;
}
}
}

This was for date object in Flash (asc1 is boolean that keeps track of
which direction your sort was last time), but I think it will apply
with editing. You also then need to point to this function by setting your

  myGrid.dataGridColumns sortOnHeaderRelease=false;
  myGrid.sortCompareFunction=dateSort1();

Then make a listener: 

  myGrid.addEventListener("headerRelease", headerListener);

and supply the function that distinguishes the selectedIndex of the
column of interest:

var headerListener = new Object();
headerListener.headerRelease = function(eventObj){
if(eventObj.columnIndex==4){
Grid.dataProvider.sortItems(dateSort1);

The last two steps can be combined, and you'll have to alter the event
types as necessary to comply with Flex data types (look at the
addEventListener docs), but this should give you a leg up. I know it's
a pain, but then what isn't? (someone probaly can do this in 5 lines).

Good Luck - hope this helps.

--- In flexcoders@yahoogroups.com, "george_lui" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> When you sort columns in a datagrid, I assume that data in a column is
> sorted according to its natural sorting order (whatever that may be).
>  In my case it's a string.
> 
> For some reason, the sorting on this column behaves differently.  I
> have data that begins with uppercase and lowercase letters, and
> columns that are just blank.  When I sort on this column I get
> uppercase, blank, and lowercase (and vice versa when sorting in the
> reverse order).  I'm expecting the sort to be uppercase, lowercase,
> and blank (and vice versa).
> 
> Is anyone aware of such a behavior?  It's hard for me to pinpoint
> because I don't have this behavior on my local build, but it's there
> in a staging build.
> 
> 
> Thanks,
> George
>






 Yahoo! Groups Sponsor ~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Effect Event mayham (Flex 2.0)

2005-11-29 Thread Darin Kohles
Thanks, I'll give that a try.  The multiple effect events were playing
havoc with the boolean logic I've been trying to use to cascade
additional effects.

I'll let you know my results.

--- In flexcoders@yahoogroups.com, "Philippe Maegerman" <[EMAIL PROTECTED]> 
wrote:
>
> you might try using removeEventListener() onEffectStart  and
reassign it onEffectEnd
> //Philippe
> 
> 
> 
> From: flexcoders@yahoogroups.com on behalf of Darin Kohles
> Sent: Tue 29/11/2005 5:34
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Effect Event mayham (Flex 2.0)
> 
> 
> Thought this might have gotten buried by the holidays, anyone have any
> thoughts?
> 
> Thanks,
> 
> --- In flexcoders@yahoogroups.com, "ur_dtrain" <[EMAIL PROTECTED]> wrote:
> >
> > I've encountered the following issues with Event triggers during an
> > Effect playback:
> > 
> > I've set up several Resize Effects programmatically on a Canvas object
> > that trigger from a mouse event and established the appropriate
> > EffectEvent.EFFECT_START/EFFECT_STOP listeners to capture state
> > transition information.  The Effects are triggerd off mouse events,
> > and the problem I'm having is that the EffectEvent types are
triggering
> > multiple times when only one EffectEvent of each type is expected. 
> > The problem seems to be triggered by repeated occurrences of the
> > mouseOver event during the Resize playback.  Is this a bug? Should the
> > mouseOver event only trigger one time as expected?
> > 
> > It would be nice to be able to dynamically enable/disable and reassign
> > mouse events to Objects.  I've implemented both mouseEnabled and
> > hideChildren properties for the Effects but both with no apparent
> > results; neither in appearance nor in functionality.  If anyone has
> > encountered this phenomenon, and/or knows if the "flickering trigger"
> > events on a Resizing object has a work around I'd like to hear
about it.
> > 
> > Thank you
> >







 Yahoo! Groups Sponsor ~--> 
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Effect Event mayham (Flex 2.0)

2005-11-28 Thread Darin Kohles
Thought this might have gotten buried by the holidays, anyone have any
thoughts?

Thanks,

--- In flexcoders@yahoogroups.com, "ur_dtrain" <[EMAIL PROTECTED]> wrote:
>
> I've encountered the following issues with Event triggers during an
> Effect playback:
> 
> I've set up several Resize Effects programmatically on a Canvas object
> that trigger from a mouse event and established the appropriate
> EffectEvent.EFFECT_START/EFFECT_STOP listeners to capture state
> transition information.  The Effects are triggerd off mouse events,
> and the problem I'm having is that the EffectEvent types are triggering
> multiple times when only one EffectEvent of each type is expected. 
> The problem seems to be triggered by repeated occurrences of the
> mouseOver event during the Resize playback.  Is this a bug? Should the
> mouseOver event only trigger one time as expected?
> 
> It would be nice to be able to dynamically enable/disable and reassign
> mouse events to Objects.  I've implemented both mouseEnabled and
> hideChildren properties for the Effects but both with no apparent
> results; neither in appearance nor in functionality.  If anyone has
> encountered this phenomenon, and/or knows if the "flickering trigger"
> events on a Resizing object has a work around I'd like to hear about it.
> 
> Thank you
>








 Yahoo! Groups Sponsor ~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/