A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: gotoAndPlay

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Location
    Nebraska
    Posts
    29

    gotoAndPlay

    Hey.

    I am working on this project . . . big whopty do, however i am having and issue, alright i have 4 MCs One inside another inside another . . . blah and blah till we get to the fourth MC now this MC consists of three layers, top one actionscript second one animation, third one is a button. all these layers spand 13 frames. This MC is actions and motion for a rollever button. The previous MC is just animation. With basic stop action on frame 10, it consists of 15 frames.

    The problem i am having is that when i click this button which is in the fourth MC i need it to goto frame 13 in the previous MC, as you guess it is not. I have frame 13 in the third MC labeled Motion i have on this frame a stop action. so when button in fourth MC is pressed it does not goto frame 13 in previous MC. My actionsript on the button is:
    on (rollOver, dragOver) {
    btnPlay = true;
    play();
    }
    on (rollOut, dragOut) {
    btnPlay = false;
    play();
    }
    on (release) {
    gotoAndPlay(Motion);
    }

    I am not sure why it is not working, does anyone have any ideas that could be of assistance? I would Really Appritiate help. Thanks a lot.

  2. #2
    \/\/EB/\/\ASTER lukesquall's Avatar
    Join Date
    May 2003
    Location
    Solitude
    Posts
    683
    Code:
    on (rollOver, dragOver) {
    	btnPlay = true;
    	play();
    }
    on (rollOut, dragOut) {
    	btnPlay = false;
    	play();
    }
    on (release) {
    	_root.gotoAndPlay("Motion");
    }
    Try that .

  3. #3
    Junior Member
    Join Date
    Mar 2003
    Location
    Nebraska
    Posts
    29
    Yeah, i tried that before, does not work. Tried it again just in case i messed up, does still not work. Thanks however i appriciate the thought . . .

  4. #4
    \/\/EB/\/\ASTER lukesquall's Avatar
    Join Date
    May 2003
    Location
    Solitude
    Posts
    683
    Sorry, I did not read all of your post before

    Code:
    on (rollOver, dragOver) {
    	btnPlay = true;
    	play();
    }
    on (rollOut, dragOut) {
    	btnPlay = false;
    	play();
    }
    on (release) {
    	_parent.gotoAndPlay("Motion");
    }

  5. #5
    Junior Member
    Join Date
    Mar 2003
    Location
    Nebraska
    Posts
    29
    I didn't think _parent. would work. Yeah, thanks a million, that helped alot/fixed my issue. Appriciate the assistance alot!


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