EricAndresen0
Programmer
Does anyone know of a way to get a movie clip to pause until a global variable becomes true (triggered by a button or event in another clip)? Currently, I am using a messy system that involves two keyframes with the same contents that appears stopped but is actually playing in a loop back and forth to continue checking the variable status. Is there a simpler way to do this?
Here is an example of my code. This will wait for the variable _global.blnThreeA to be true until it goes to the third frame:
On the first frame:
if (_global.blnThreeA == true) {
this.gotoandplay(3)
}
On the second frame:
if (_global.blnThreeA == true) {
this.gotoandplay(3)
} else {
this.gotoandplay(1)
}
Does anyone have a suggestion about a better way to do this?
Here is an example of my code. This will wait for the variable _global.blnThreeA to be true until it goes to the third frame:
On the first frame:
if (_global.blnThreeA == true) {
this.gotoandplay(3)
}
On the second frame:
if (_global.blnThreeA == true) {
this.gotoandplay(3)
} else {
this.gotoandplay(1)
}
Does anyone have a suggestion about a better way to do this?