This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > July 2007 > Button in movie clip to target a scene, help!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Button in movie clip to target a scene, help!
writeonme

2007-07-18, 10:15 pm

Hey i have a movieclip that is a sliding menu with a few different buttons on
it linked to corresponding scenes. It doesnt seem to be working. I dont know if
i need to target outside of the movieclip or what to get it to change to the
different scene when the button is clicked on. Right now i just have the
standard on (release) gotoAndPlay("scene, 1") HELP please =)

cubby47

2007-07-21, 6:15 pm

it would appear this is just a simple syntax error. A specific item, in this
case a scene name/number, in the parameters for something needs to be in it's
own " ".
you just need to change your current code- on (release) gotoAndPlay("scene,
1")

to- on(release) {
gotoAndPlay("scene 1",1);
}

where "scene 1" is the scene name and the number after the comma is the frame
number of this scene you wish to play from.

you might find changing the name of your scene to something relevant makes
this easier and keeps things tidier. this can be done with the scene window
(ctrl F2) bearing in mind that what ever you rename it must be what you refer
to it with in actionscript.

Paul


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews