2 Replies Latest reply on Nov 2, 2010 3:55 AM by unamus3d

    Boolean Question.

    unamus3d

      Im stuck with boolean and would apreciate help.

      Frame 1 i have code on the frame and i have 2 movieclips. EG: MC1 and MC2 for arguments sake.

       

      Code on frame 1:

       

      var my_Bool:boolean = false;

       

      function My_Func():Void
      {
          trace(my_Bool);
          if(my_Bool == false)
          {
          _root.MC2.nextFrame();
          }
      }

       

      Inside MC1 i have my_Bool = true; on the first frame and my_Bool = false on the 10th frame.

      I have the function inside MC2.

       

      _parent.My_Func;

      My_Func();

       

       

      When i run this the bool is constantly at false. Any advice is apreciated.