If you want to access the Application object from your
ActionScript file, you can use
"Application.application".
If you want to access public memebers of your main
MXML Application, cast Application.application to your
defined Application class and then access those public
memebers.
Hope this helps.
--- Enrico Hofmann <[EMAIL PROTECTED]> wrote:
> hi i am new to flex,
>
> i include an "run.as" in my mx:script tag
>
> so like <mx:Script source="run.as">
>
>
> how can i set the application that it runs after the
> application is
> loaded?
>
> i allready include in the Windowed Applcation part
> an
> applicationComplete(callmyFunction())
>
> but i get for all components that this is an null
> object.... whats
> going wrong
>
> using flex3 beta and this is an air application
>
> regards enrico hofmann
>
>
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ