Make sure that mainCanvas exists and is a DisplayObject; a canvas in 
my case.  Also, make sure that the id="mainCanvas" and the namespace 
is correct.  Mine is 
Application.application.mainView.mainCanvas;

-TH

--- In flexcoders@yahoogroups.com, "barry.beattie" 
<[EMAIL PROTECTED]> wrote:
>
> actually, scratch that error. it's something else that's wrong:
> 
> 
>        public var NewPopUpParent:DisplayObject;
>        NewPopUpParent = Application.application.mainCanvas;
> 
> generates the compile time error
> "Access of undefined property NewPopUpParent"
> 
> but changing it to 
> 
> public var NewPopUpParent:DisplayObject =   
>           Application.application.mainCanvas;
> doesn't.
> (but it does generate a runtime error: "Property mainCanvas not 
found
> on main and there is no default value")
> 
> I obviously haven't got the hang of this yet....
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to