Export classes to another frame – bug or feature?
Posted by Den Ivanov on 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.



Follow me!