Re: [flexcoders]How do I know if a class is on the Application?

2009-01-14 Thread dorkie dork from dorktown
I mean like this: http://www.adobe.com/2006/mxml"; layout="absolute"> If it was a display object all the suggestions would work but it extends EventDispatcher and manages states, etc. The problem was that the id was not getting set. It also was not enumerated when I looped through the ap

Re: [flexcoders]How do I know if a class is on the Application?

2009-01-11 Thread Haykel BEN JEMIA
I have to ask again: What do you mean with "on the application"? I you mean added to some display list, then it must be a subclass of DisplayObject. Or perhaps you can tell what you want to do exactly. Haykel Ben Jemia Allmas Web & RIA Development http://www.allmas-tn.com On Sun, Jan 11, 2009

Re: [flexcoders]How do I know if a class is on the Application?

2009-01-11 Thread Samuel Colak
To reference the application object inside another object (either UI or otherwise) just define a variable to reference "Applicaton.application"; Note that this returns an object - not an instance of Application per se. One interesting note is that singletons can be instantiated through

Re: [flexcoders]How do I know if a class is on the Application?

2009-01-11 Thread Paul Andrews
- Original Message - From: dorkie dork from dorktown To: flexcoders@yahoogroups.com Sent: Saturday, January 10, 2009 6:06 AM Subject: [flexcoders]How do I know if a class is on the Application? I have a class on the application like this: How do I find out inside that

Re: [flexcoders]How do I know if a class is on the Application?

2009-01-11 Thread Manish Jethani
On 1/10/09, dorkie dork from dorktown wrote: > I have a class on the application like this: > > > > How do I find out inside that class in the constructor if that class is on > the Application? By "Application" I assume the Flex application (instance of mx.core.Application). The only way to do

Re: [flexcoders]How do I know if a class is on the Application?

2009-01-10 Thread dorkie dork from dorktown
It's a manager class that extends EventDispatcher. On Sat, Jan 10, 2009 at 12:17 AM, Haykel BEN JEMIA wrote: > What do you mean with "on the application"? > If you mean added to the stage, then you can't find this out in the > constructor. Make sure your class is a subclass of DisplayObject and

Re: [flexcoders]How do I know if a class is on the Application?

2009-01-09 Thread Haykel BEN JEMIA
What do you mean with "on the application"? If you mean added to the stage, then you can't find this out in the constructor. Make sure your class is a subclass of DisplayObject and listen to the "added" or "addedToStage" events. Haykel Ben Jemia Allmas Web & RIA Development http://www.allmas-tn.

Re: [flexcoders]How do I know if a class is on the Application?

2009-01-09 Thread Sam Lai
You could probably look by using the Application.application instance to access the Application object, then look through the children using numChildren and getChildAt in a loop. I have to ask though, why? It doesn't sound like a neat solution - maybe you could pass in the Application instance whe