A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    46

    Only First function executes

    OK first i tried this.........
    this.home_mc.onRelease = function() {
    if (menu_mc._currentframe == 51){
    menu_mc.gotoAndPlay("_secondmenu");
    }
    }

    this.home_mc.onRelease = function() {
    if (menu_mc._currentframe == 82){
    menu_mc.gotoAndPlay("_sixthmenu");
    }
    }


    Then I tried this.......

    this.home_mc.onRelease = function() {
    if (menu_mc._currentframe == 82){
    menu_mc.gotoAndPlay("_sixthmenu");
    if (menu_mc._currentframe == 51){
    menu_mc.gotoAndPlay("_secondmenu");
    }
    }
    }

    Whats happening is only the first function executes, does anybody know why?
    What is it ?
    Any help PLEASE!!! I'm going nuts!
    A

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    Code:
    this.home_mc.onRelease = function() {
        if (menu_mc._currentframe == 82) {
            menu_mc.gotoAndPlay("_sixthmenu");
        } else if (menu_mc._currentframe == 51) {
            menu_mc.gotoAndPlay("_secondmenu");
        }
    };

  3. #3
    Can't Re-Member madzigian's Avatar
    Join Date
    Apr 2004
    Location
    Boston MA
    Posts
    2,662
    Please Don't Double Post!!
    Please DO NOT PM me simply for individual help. Post in the public forums...that's what they are for, and they allow others to benefit as well. - Thx
    OS X 10.3.9 || Flash MX04 Pro
    | del.icio.us || furl || Helpful Source Files || Free Pixel Fonts |

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