Believe you need to pass the event object: <mx:TextInput preinitialize="assignID(event)"/>
But, that's a pretty good idea! -Scott On 3/2/07, bhaq1972 <[EMAIL PROTECTED]> wrote:
maybe your trying to do something like this <mx:TextInput preinitialize="assignID()"/> private function assignID(event:FlexEvent):void { //read your xml file and get id var sID:String = "assign your id from your xml file here"; //assign this textinput's id event.currentTarget.id = sID; } --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Andrew Trice" <[EMAIL PROTECTED]> wrote: > > What do you mean? That statement very vague. Can you create variables > dynamically... yes. Can you use reflection and introspection into > classes... yes. Can you create UI components at runtime... yes. > > > > Can flex compete with ajax... absolutely. > > > > _____________________________________ > > Andrew Trice > > Cynergy Systems, Inc. > > http://www.cynergysystems.com > > > > Blog: http://www.cynergysystems.com/blogs/page/andrewtrice > > Email: [EMAIL PROTECTED] > > Office: 866-CYNERGY > > > > ________________________________ > > From: flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>] On > Behalf Of Clint Tredway > Sent: Thursday, March 01, 2007 4:19 PM > To: flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com> > Subject: Re: [flexcoders] Re: Dynamically creating item IDs > > > > what do you mean by 'id' > > On 3/1/07, thetexaspsycho2003 <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > wrote: > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com><mailto: flexcoders% <flexcoders%25> 40yahoogroups.com> > , "thetexaspsycho2003" > <thetexaspsycho2003@> wrote: > > > > Is there a way to dynamically create an item's ID? For example pulling > > it in from a XML file? > > > > I guess from the lack of replies there is no way of doing this. If so, > this is very disappointing. The ability to create IDs on-the-fly is > very helpful in other technologies, such as AJAX. > > > > > -- > http://indeegrumpee.spaces.live.com/ > <http://indeegrumpee.spaces.live.com/> >
-- : : ) Scott