Ah, they should *not* be copied into the bin folder.

 

Only files required to run the application should be in (copied into)
the bin folder.

 

Included files and class files are all compiled into the resulting swf
file.

 

If the app does not work it is not because of this.

 

When you say "it doesn't work.", what do you mean?

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of sailorsea21
Sent: Wednesday, November 19, 2008 1:07 PM
To: [email protected]
Subject: [flexcoders] Re: Why aren't my .as files included when I build
my project?

 

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 [email protected] <mailto:flexcoders%40yahoogroups.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