"If" Statement
Hi,
I am trying to write a simple If statement...
I have on my stage a dynamic text box which shows the results score...
It's Var is named: Track.percent_format
I have another movie clip on my stage with an Instance named "A"
I am trying to write a statement that if the value of the textbox variable equals 100, the movie clip "A" will have an alpha of 100%. On the stage I set
the "A" clip to 0%.
My code on the timeline:
if (Track.percent_format == 100){
setProperty("_level0.A", _alpha, 100);
}
This is not working... If I just use the setProperty line by itself, my movie clip changes, but I cannot seem to get the if statement to work...
Many thanks for any help
|