Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving between scenes 1

Status
Not open for further replies.

FSEdge

Technical User
May 26, 2001
63
US
Is it possible to use movie clips that are meant to act as buttons with action script to move from scene to scene?

I'm fairly new to flash and learning as I go. What I've done is to create two scenes. One is named main and the other is named results_page.

The main scene holds my movie clip button and this is the action script I use to control it:

stop();

//runs simple dotted line animation out away from button
resultsEnter.onRollOver = function () {
gotoAndPlay("frame1");
}

//runs simple animation to pull dotted line back into button
resultsEnter.onRollOut = function () {
gotoAndStop("frame1");
}

//On mouse button release, calls results_page scene
resultsEnter.onRelease = function () {
gotoAndStop("results_page",1);
}

Everything seems to works including the mouse cursor changing to show an active area it's hovering over. But, when the movie clip button is clicked on nothing occurs and scene results page isn't called.

Can anyone offer a hint as to what I'm doing wrong?

Thanks,

FSEdge
 
Wow, quickest reply I've ever received from here. Thanks for being here to offer a solution to my question. It works quite well.


FSEdge
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top