Just to note, although you'd want to wait till the app has inited to 
add anything, there's nothing really wrong with that syntax. It was 
just missing a namespace. The warning was just saying that it will 
default to internal.


--- In [email protected], "Michael Schmalle" 
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
>    <mx:Script>
>         import AppStarter;
>         var app:AppStarter = new AppStarter();
>     </mx:Script>
> 
> You can't do this.
> 
> you need to put that call in
> 
> private function init(event:FlexEvent):void
> {
>    var app:AppStarter = new AppStarter();
> }





--
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