A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Actionscript Help

  1. #1
    Junior Member
    Join Date
    Jan 2003
    Location
    Phoenix, Az
    Posts
    17

    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

  2. #2
    Junior Member
    Join Date
    Jan 2003
    Location
    Phoenix, Az
    Posts
    17
    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

  3. #3
    Junior Member
    Join Date
    Jan 2003
    Location
    Phoenix, Az
    Posts
    17
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center