Question

I have recently started using Flash CS6 and Actionscript 3.0 so I am new to this. I wanted to develop an application and started by breaking it into parts. Now, I have multiple fla projects and multiple swf files that I combined together using the Loader class. I want to deploy the App (.exe) as a whole without the need for the swf to be loaded to exist in the same folder. I want the end user to only deal with one file. Any thoughts and help?

Was it helpful?

Solution

Sure, just add the extra SWF files into your sources and let the loader load like usual, but it will be one file for the user.

To add files to sources in AIR (Flash Professional) click on the wrench icon next to the "target" label in the properties panel. A following menu will appear:

enter image description here

I highlighted the + button that will allow to add files to source. Add your external SWFs there and load them as local files.
That way you won't need to do any extra refactoring to make your app and you have the great advantage to keep content separated in case if you ever want to update your app! Just change the apps Version (seen in the screenshot) and instead of re-installing the whole app it will ask to update it.

Hope that helps!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top