0
votes

FLASH Qn: If I have a FLA file, with many Actionscript files, I make a change to an Actionscript file. I only compile the FLA into a SWF, will the change be incorporated into the newly compiled SWF file? Thank you!!

That is... with a compilation of a FLA, will all the related Actionscript files be automatically compiled?

Where can I see the connection or call from the FLA to the different Actionscript files?

1

1 Answers

0
votes

Yes, Actionscript files that are setup to be used by your FLA will be compiled into the SWF, and do not need to be deployed with your SWF.

I'm not sure what you mean by the second question, but to link Actionscript files to an FLA, you need to link Actionscript files to your MovieClips in your library by right-clicking the MovieClip > Properties and select the Export for Actionscript button. The Class field is a folder path relative to your FLA. If you have a MovieClip named "CoolClip" and you had an Actionscript file in the same folder as your FLA called CoolClip.as whose contents were:

package  {

    import flash.display.MovieClip;


    public class CoolClip extends MovieClip {


        public function CoolClip() {
            // constructor code
        }
    }

}

Then you would enter "CoolClip" into the Class field of that properties field. Convention calls for the Actionscript file name to match the class name (in this case CoolClip).

Symbol Properties To link to a "main" class for your FLA, enter the classname in the Class field of the main stage/document in the Properties panel of your main stage.

Main Properties Dialog