Skip to main content
Inspiring
September 25, 2011
Answered

Condition Problem

  • September 25, 2011
  • 1 reply
  • 502 views

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

This topic has been closed for replies.
Correct answer kglad

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.

1 reply

kglad
Community Expert
Community Expert
September 25, 2011

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

Inspiring
September 25, 2011

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

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
September 26, 2011

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.