View Full Version : Load AS files only when screen has focus?
djsodom
04-06-2005, 02:20 PM
I'm setting up a movie using the slide hiearchy. On each screen, I call a separate AS file to load. Currently, all the AS files load when the swf loads.
How can I make it where each AS file loads only when its screen has focus?
Thanks very much,
Steve
All the .AS files used by a movie are imported into the .swf when you publish it - not at run-time.
The only way I can see to import extra code only when it's required would be to add it into completely seperate movies and load these when needed.
Just out of interest though - why would you need to do this?
Unless you have really huge amounts of code it really doesnt make that much difference to the compiled size of the average .swf
djsodom
04-06-2005, 05:10 PM
Thanks stu.
Perhaps there isn't a good reason to do it. I will reconsider.
Steve
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.