-
Actionscript Help
Is this the correct way to set this if statment up in Flash MX?
I am trying to compair the variable 'play' value to see wether it is "yes" or "no". This is on the main timeline. I am not sure if I have setup this condition correct in MX. This works perfect in Flash 5.
if (_root.play.value eq "yes") {
play();
} else if (_root.play.value eq "no") {
stop();
}
Styro
-
Pertaining to the code above...
if (_root.play.value eq "yes") {
When the value of 'play' is null, the movie plays. I am really confused by this. The code works fine in Flash 5 but not Flash MX.
Any help would be good.
Styro
-
Ok I just figured out that I am retarded.
This code:
if (_root.play.value eq "yes") {
Should look like this:
if (_root.play.value == yes) {
Retarded to me...but it works great now!
Styro
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|