Export classes to another frame – bug or feature?
Common talks, Flash, Flash News May 18th, 2007Looks like there problem with creating preloaders for complex flash applications in Flash CS3. When we export Classes to frame other then 1, we have some problems with library assets graphics. classes are here bu graphics doesnt shown. Looks like not only me have this problem (post about preloaders at hiddenresource)
But looks like we have solution now, Denis Kolyako find workaround for preloading problem (russian blog). Source here.
in short:
use
var programClass:Class = loaderInfo.applicationDomain.getDefinition(”Program”) as Class;
var program:Sprite = new programClass() as Sprite;
addChild(program);
instead of
var program:Program = new Program();
addChild(program);
I test this. it work. Maybe there is easy way. I check help, Google and dont find another way. If you know how to make it better, please comment.
Ready to receive fresh news from my site? Subscribe to my RSS.
I am Multitouch and Augmented Reality developer from Moscow, RUSSIA. 13 years expierence in Flash, 7 years in Lingo, 5 years in Processing and lots more!









2007-05-19 at 1.30 am
Does the playhead pass through the export frame or is there a goto action that skips over it. I believe there was an issue with players prior to 9,0,45 where the classes wouldn’t be available unless you let the playhead actually pass through the export frame.
2007-05-19 at 9.16 am
Classes are available. Code work ok without problems. But graphics for this classes NOT work. I dunno why.