3 Replies Latest reply on Sep 25, 2011 11:28 PM by kglad

    Condition Problem

    alaStickman

      hi,

      in my scene i have a clip who contains for example 10 frames what i want to do is when this clip reach the frame number 10 my condtion became true else if this clip is in the frame 1-->9 condtion is false. can i do that ?
      thank you

        • 1. Re: Condition Problem
          kglad Adobe Community Professional & MVP

          assign a variable to false when you start and, on frame 10 of your movieclip, assign it to be true.

          • 2. Re: Condition Problem
            alaStickman Level 1

            i did it but it dosn't work :/
            what id did

            i wrote in the first frame of the clip
            testing=false

            in the last frame

            testing=true
            then in my condition i did

            if(testing==false){

            trace("0")

            }

            if(testing==true){

            trace("1")

            }

             

            is that true ? or i have to do somthing to make the code get in the movie clip ?
            thank you

            • 3. Re: Condition Problem
              kglad Adobe Community Professional & MVP

              that would be ok if your if-statement is on the movieclip's timeline AND your if-statement is executing at the right time (or is repeatedly executing). 

               

              if you're not getting the expected result and the above sentence doesn't help you solve the issue, explain the relationshipt between the timeline with your testing=false statement and the timeline with your if-statment and when you want to execute that if-statement.