I've made a preloader using a document class and the following code:
public class Loading extends MovieClip
private var url:String;
private var loader:Loader;
public function Loading()
var request:URLRequest=new URLRequest(url);
private function initListeners(dispatcher:IEventDispatcher):void
private function onComplete(event:Event):void
The preloader_mc is a 40 frame movieclip (instanced in the first frame of the timeline). The problem is when it starts playing the test movie it starts playing at however many frames it's played. So if the preloader movie clip plays through one, it skips 40 frames, twice and it skips 80, etc.
I've tried putting a gotoAndPlay(1) after the addChild call, but that doesn't help. Any ideas?
Is your timeline 40 frames long?
Is it two frames long and just looping or something?
Not saying this to be a code nazi, but you seem like a fairly sophisticated coder, I don't understand why you'd do an AS3 project and actually place anything on a timeline. If you had one frame in your FLA and just loaded the preloader_mc from the document class, you wouldn't be having this problem, and you likely won't have any of a hundred other problems you're about to have when you get past this phase of the project...