Post edited 7:03 pm – July 29, 2010 by ginger
                              Post edited 7:23 pm – July 29, 2010 by ginger
                              
                              
                              What is wrong here, I don't understand the error???
                              This is the error,
                               
                               
                                 Line 7     1180: Call to a possibly undefined method newLoader
                              this is the script
                               
                              var clips:Array = ["clip0.swf", "clip1.swf", "clip2.swf"];
                              var index:int = 0;
                               
                               
                              var thisLoader:Loader = new Loader();  //this is ine 7
                              thisLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);
                               
                              var thisMC:MovieClip = new MovieClip();
                              stage.addChild(thisMC); 
                               
                              function nextClip():void {
                              thisLoader.load( new URLRequest(clips[index]) );
                              }
                              function doneLoading(e:Event):void {
                              stage.removeChild(thisMC);
                              thisMC = MovieClip(theLoader.content);
                              theLoader.unload();
                              
                              stage.addChild(thisMC);
                              thisMC.gotoAndPlay(1);
                              }
                               
                               
                              function runOnce(e:Event):void {
                              if (thisMC.currentFrame == thisMC.totalFrames) {
                              thisMC.removeEventListener(Event.ENTER_FRAME, runOnce);
                              index = (index + 1)%(clips.length);
                              nextClip();
                              }
                              }
                               
                               
                              nextClip();