Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The solution would be to move your assets inside a <strong>precompiled SWC library</strong> that you will only recompile when they change.</p> <p><strong>Building the library:</strong></p> <ul> <li>create a new FLA and move in your Bitmaps,</li> <li>each image needs to have a linkage class name and be exported in first frame; you don't have to create an AS class, Flash will generate them,</li> <li>in the publish settings, "Flash" tab, check "Export SWC",</li> <li>this SWC library will be published in the same location as the SWF; in CS4-5 you can't prevent the SWF creation.</li> </ul> <p><strong>Using the library</strong></p> <ul> <li>in your main FLA publish settings, "Flash" tab, open the Advanced Actionscript 3 settings dialog,</li> <li>in the "Library path" tab you can add the assets library SWC; make sure the "Link Type" is "Merged into code",</li> <li>SWC content will be available in your main FLA as if they were in the library.</li> </ul> <p>It is worth noting that:</p> <ul> <li>you must instantiate these assets by code (ie. new AssetName): they will not appear in your main FLA's Library panel and you can not drop them on the timeline,</li> <li>only assets you explicitly reference in your code will be available at run time; if you are using getDefinitionByName() you must still import the assets somewhere in your code. For instance you can declare an Array containing all your assets classes (ex: var assets:Array = [AssetClass1, AssetClass2,...]).</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload