7 Replies Latest reply on Aug 6, 2009 6:26 AM by belordmedia

    Can someone put me out of my misery.....Please!!!!

    belordmedia Level 1

      Ok, so here is the problem

       

      I have the main site called godsandmonsters.fla. This works just fine. Buttons, menu etc.

      The site is in a movie clip

       

      Then, I have an index.fla which is the loader

       

      here is the action script

      ______________________________

      var l:Loader = new Loader();

      l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);

      l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);

      l.load(new URLRequest("godsandmonsters.swf"));

       

      function loop(e:ProgressEvent):void

      {

      var perc:Number = e.bytesLoaded / e.bytesTotal;

      percent.text = Math.ceil(perc*100).toString();

      }

       

      function done(e:Event):void

      {

      percent_mc.visible=false;

      removeChildAt(0);

      percent = null;

      addChild(l);

      }

      __________________________________

      But then if I publish the index.fla, I keep getting this message

      ____________________________________

      TypeError: Error #1009: Cannot access a property or method of a null object reference.

      at godsandmonsters_fla::godsandmonsters_mc_1/frame1()

      ____________________________________

      and then, nothing work except for the intro music.

       

      Can someone please help

       

       

      Many many thanks