gaby
08-26-2007, 04:13 PM
(apologies for mis-spelled title, I can't edit it after publishing...)
I'm having a frustrating problem trying to get my preloader to load promptly and have my components work with their AS classes exporting on frame 2. I previously had everything working by exporting it all on frame 1, so my preloader only kicked at around 95% loading. Having read the many, many tutorials about this problem the solution they offer is:
1. Turn off 'Export on first frame' in *all* movie clips, and in the Linkage settings of all the components.
2. Drop a copy of each symbol/component I want exported somewhere on the stage, not on frame 1
3. Change the AS export settings to export classes on frame 2
I opted for a slightly different approach, I put all my exported symbols in a separate scene, which is visited after the preloader is done. All my code works fine, all the components that are used are b0rked.
This is what it should look like, (http://vanhegan.net/pictures/ons2-notbroken.png) with all the classes exported on the first frame.
This is what it looks like (http://vanhegan.net/pictures/ons2-broken1.png) when the classes are exported on frame 2.
Strangely this is what it looks like (http://vanhegan.net/pictures/ons2-broken2.png) when I then re-export the SWF in MTASC (classes into frame 2), it sort of comes back to life a bit.
Clearly something is amiss here. Either I'm doing something wrong or some code somewhere is broken. Has anybody else beaten this problem? Google only turns up hundreds of tutorials about how to not export everything on the first frame, nothing that actually addresses this problem.
Gaby
I'm having a frustrating problem trying to get my preloader to load promptly and have my components work with their AS classes exporting on frame 2. I previously had everything working by exporting it all on frame 1, so my preloader only kicked at around 95% loading. Having read the many, many tutorials about this problem the solution they offer is:
1. Turn off 'Export on first frame' in *all* movie clips, and in the Linkage settings of all the components.
2. Drop a copy of each symbol/component I want exported somewhere on the stage, not on frame 1
3. Change the AS export settings to export classes on frame 2
I opted for a slightly different approach, I put all my exported symbols in a separate scene, which is visited after the preloader is done. All my code works fine, all the components that are used are b0rked.
This is what it should look like, (http://vanhegan.net/pictures/ons2-notbroken.png) with all the classes exported on the first frame.
This is what it looks like (http://vanhegan.net/pictures/ons2-broken1.png) when the classes are exported on frame 2.
Strangely this is what it looks like (http://vanhegan.net/pictures/ons2-broken2.png) when I then re-export the SWF in MTASC (classes into frame 2), it sort of comes back to life a bit.
Clearly something is amiss here. Either I'm doing something wrong or some code somewhere is broken. Has anybody else beaten this problem? Google only turns up hundreds of tutorials about how to not export everything on the first frame, nothing that actually addresses this problem.
Gaby