fig11 In the library right click on the component and select Linkage then in the window unselect Export on first frame. Then go in File > Publish Settings, select the flash tab and next to Actionscript version click on Settings, in the window that pops up enter 2 in the field export frame for classes. (fig12)
fig12 Go back into Control > Test Movie and look at the Streaming Graph (fig13). You will notice that the amount of data to load on the first frame is under 200 Bytes, this data is actually the preloader itself, Now if you Simulate Download you will see that the preloader appears straight away.
fig13 Now let's have a look at the code ...
stop(); var initX:Number = _root.preloader.mask._x; myInterval = setInterval(checkLoading, 50, this); function checkLoading(path) { |