Application.application actually is not the root display object from the
Flash's display list perspective.  SystemManager is and you can get a
reference to it through the "systemManager" property defined on UIComponent.
Not sure I would suggest drawing on it, but technically that's the root.  
 
Here's some info from one of the Flex SDK developers:
 
http://iamdeepa.com/blog/?p=11
 
Personally, I don't understand why you'd have anything outside of your root
MXML class drawing on Application.application.. seems like broken
encapsulation and trouble that could be solved another way.
 
HTH,

Sam

-------------------------------------------
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
  

 


  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Friday, December 07, 2007 10:39 AM
To: [email protected]
Subject: RE: [flexcoders] Application.application.container?


OK - thank you.  I guess my core question is, if I want to draw directly on
the _level0 stage, the way to pass that UI object to a class which draws on
it is to do UIComponent(Application.application) ?  That seems a little
convoluted, but that's how it's done?  I could create a canvas and pass that
into the class, but I'm wondering about the root UI object. In Flash, I can
draw directly on the stage.  
 
 

Jason Merrill 
Bank of America 
L&LD GT&O 
eTools & Multimedia Research & Development 

Reply via email to