3 Replies Latest reply on Jan 18, 2007 7:05 PM by kglad

    time based quirk

    jagguy99
      Hi,
      In a time base function if load a MC it fails to be clickable (but the MC appears). If I load it outside the time base function it works fine and is clickable.

      I don't get this ? I spent ages trying to find out why it fails and it comes down to a time based quirk it seems. is there anything I can do ?


      var aval:Array= new Array();
      aval.push("98img1.jpg");
      aval.push("50img2.jpg");

      function createShifters():Void{
      this.attachMovie("move1","mc4",this.getNextHighest Depth());
      mc4._x=300;
      mc4._y=200;
      }

      function main():Void
      {
      if (aval.length>0)
      {
      // createShifters(); failed
      clearInterval(timeINum);
      createShifters(); //fails to be clickable but loads the image
      }
      }

      var timeINum:Number=setInterval(main,1000);
      createShifters(); //works outside of the time limit


      mc4.onPress = function () :Void
      {
      ...
      }