[flexcoders] Finding an Object in ActionScript

2006-08-17 Thread richmcgillicuddy
How would I do the following in AS3. 1. Find an object by id, something like: psuedo code- foundobject = app.components.findbyID(lblText); foundobject.dostuff; 2. Similar, is there a app.components that I can cycle through that will list all application components/objects. psuedo code again

Re: [flexcoders] Finding an Object in ActionScript

2006-08-17 Thread Phil Marston
Hi Rich, I just read something about (2) in Programming ActionScript 3 (the Adobe manual that comes with Flex 2) in Chapter 5 "Display Programming" - Traversing the display list. HTH Phil richmcgillicuddy wrote: How would I do the following in AS3. 1. Find an object by id,

Re: [flexcoders] Finding an Object in ActionScript

2006-08-17 Thread Michael Schmalle
Hi,1) There is a method of DisplayObjectContainer that does this by name.getChildByName();Note : This does not return a child by it's id only the name assignment. Which at anytime you can name a component in MXML or actionscript. myComponent.name = lblText;Then you could find it. If you need

RE: [flexcoders] Finding an Object in ActionScript

2006-08-17 Thread Tracy Spratt
Subject: [flexcoders] Finding an Object in ActionScript How would I do the following in AS3. 1. Find an object by id, something like: psuedo code- foundobject = app.components.findbyID(lblText); foundobject.dostuff; 2. Similar, is there a app.components that I can cycle through