Hi Tracy, I innitially had all my actionscript embedded in my mxml. 
I decided to clean up the file and put the actionscript in an .as 
file in a folder called "as".

After I build my application, the "as" folder and the .as files are 
not copied in my "bin-debug" folder therefore when I run the app, it 
doesn't work.

I call my file with the following command: 
<mx:Script source="as/myfile.as"/>

My "myfile.as" has the following structure:

// ActionScript file

import mx.controls.Alert;

private function login_FaultHandler():void
{       
        mx.controls.Alert.show("Could not connect...");
}
(...)

Thank you.

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Exactly what do you mean by "excluded"?  What problem are you 
having?
> 
>  
> 
> And you understand that the "Script source=" syntax is an *include*
> functionality?  It essentially physically copies the code verbatim 
into
> the file that declares it, before compilation.  It is identical to
> putting the code in a script block.  It is not for classes.
> 
>  
> 
> Tracy
> 
>  
> 
> ________________________________


Reply via email to