Is this not simple? Help...

View: New views
4 Messages — Rating Filter:   Alert me  

Is this not simple? Help...

by Kim Hoopingarner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I was hoping there was an easy way to loop through a form/document and store all instances of an <mx:TextInput> box in an array for other uses later in my code.  

Someone have any ideas what I should do?  I have tried everything I know to do - but that is a limited source of creativity since I'm fairly new to Flex.

Thanks!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5810
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

Re: Is this not simple? Help...

by Jeffry Houser :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


 Conceptually:  

For each child in Form{
 if(child is TextInput) add to Array
}


 But, this approach seems odd to me; so I have to wonder what you're
doing.  Maybe you want to look up binding and the mx:Model tag.

Kim Hoopingarner wrote:
> I was hoping there was an easy way to loop through a form/document and store all instances of an <mx:TextInput> box in an array for other uses later in my code.  
>
> Someone have any ideas what I should do?  I have tried everything I know to do - but that is a limited source of creativity since I'm fairly new to Flex.
>
> Thanks!
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5811
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

Re: Is this not simple? Help...

by Kim Hoopingarner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> I was hoping there was an easy way to loop through a form/document and
> store all instances of an <mx:TextInput> box in an array for other
> uses later in my code.  
>
> Someone have any ideas what I should do?  I have tried everything I
> know to do - but that is a limited source of creativity since I'm
> fairly new to Flex.
>
> Thanks!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5813
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

Re: Is this not simple? Help...

by Kim Hoopingarner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks.  I figured this out just as I saw your reply coming through. :)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5812
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37