Actionscript help!
- Started
- Last post
- 3 Responses
- Bureau
Anyone see anything wrong with this script? I have this on a frame. Basically when it reaches that frame I want it to play if the variable set, if not then I want it to stop. I doesnt seem to stop. It always plays through.
if (rollyout = "out") {
play();
}
else {
stop();
}
- murmur0
Hey Bureau,
Your code you are using the equals sign as an assignment operator. Currently it is setting the variable to equal "out". In flash if you want to check if two variables is the same as the other use == that is a comparison operator.. your code should look like this.
if (rollyout == "out") {
play();
}
else {
stop();
}Also depending on how you have your actions set up you might need to make the rollout variable a _global.
B
- Bureau0
oh sweet dude! That worked! Thanks man, I appreciate the help.
- murmur0
No problem.
Cheers