PDA

View Full Version : button failing whilst inside another movieclip HELP MEEE!!!! ...please


digipete
11-18-2002, 10:26 PM
okay I have a movie clip and inside that movieclip are some buttons..

the clip plays on the main timeline and when you hover over one of the buttons it plays another movie clip also on the main timline....


stay with me now...

now its the apparently simple bit that keeps on f**king up if you will excuse my language

on testing the rollover command, and the rollout command, they work beautifully

however when you press the button, it is supposed to take you to another scene on the main timeline

heres what I'm using at the moment:>>

on (press, release) {
_root.gotoAndPlay ("floating menu", 1);
}
on (rollOver) {
_root.homemc.gotoAndPlay("start home");
}
on (rollOut) {
_root.homemc.gotoAndPlay("roll home");
}

but either nothing happens or with abit of fiddleing it will restart and loop the movieclip animation.

All I need is a bit of script to tell a button in a movieclip to go to the main timeline (I tried level10 didn't work but I did probably do it wrong!) and play a different scene

Anyone with the knowledge please save me from my muffled screams and costly dents to my desk.


cheers
peter

jimburton
11-19-2002, 10:47 AM
simplest answer is *don't use scenes* - they mess things up for actionscript in lots of ways...maybe this is not very useful advice depending on your movie but get rid of them if you can.

Ricod
11-19-2002, 03:49 PM
But if you REAAAAALLLYYY want them, give the firt fram of the scene a framelabel, and target the frame by its label instead of the scene name. Also, try not to use spaces. start frame is usually named startFrame or start_frame.

crabcake
11-20-2002, 05:11 PM
Yep, once you're inside a movie clip, or in a movie loaded in another level for that matter, the scene names are no longer seen. Make sure all your frame names are unique. Don't understand why you are using both press and release in your handler. Release and releaseOutside are often paired, but your press action will make the release action redundant.