Well, I think you can load the stuff as you need it with LoadMovie or load everything you need with a preloadre or just using attachmovie (check swfmill if you haven't).
-- Ivan Mosquera Paulo http://ktulur.ath.cx El mar, 11-07-2006 a las 12:35 +0900, [EMAIL PROTECTED] escribió: > Hello, > > I have a simple Noob question. Sorry if it's been covered. > > If I'm building a big AS2 project with MTASC do I need some kind of > preloader? If so what's the best practice? > > At a guess I have: > > import mx.utils.Delegate; > > class MyRun extends MovieClip{ > > var intID:Number; > > function MyRun(mc){ > mc.__proto__ = this.__proto__; > mc.__constructor__ = Gogo; > this = mc; > > intID = setInterval(Delegate.create(this, preLoad), 100); > } > > function preLoad():Void > { > if (getBytesLoaded()==getBytesTotal()){ > clearInterval(intID); > postLoad(); > } else { > //loading widget > } > } > > function postLoad():Void > { > //run > } > > public static function main() : Void > { > Stage.align = "TL"; > Stage.scaleMode = "noScale"; > var doIt:MyRun = new MyRun(_root); > } > } > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
