|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Button embedded in movie clip...not working
I'm a pretty experienced Flash user, but mostly self taught and not at all an expert on ActionScript. Here's what I have going:
I have a movie with many multiple scenes embedded. In one of the scenes, I have a layer that has a movie clip inserted to a keyframe. In that movie clip, is a button that slowly floats around. I want to make it so that when someone clicks on the button, wherever it is on the page, it can load the scene that I specify. However, when I set up the action, and then click on the button, it just reloads the scene that the button is in. Does anyone know an action I can use to correct this? Or do I just need to take the button out of the movie clip keframe, and just create the animation and motion in the scene timeline itself. Hopefully someone can help. I'm thinking it's an easy fix, just probably something I've never come across before. Thanks! |
|
#2
|
|||
|
|||
|
You need the button to specifically target a label, not a scene. Put in a frame label on the first frame of the scene you need your button to jump to. Your button should then have this code on it:
Code:
on (release) {
_parent.gotoAndPlay("labelName");
}
|
|
#3
|
|||
|
|||
|
I'll give that a shot. thanks. I figured it was something small that i was leaving out somewhere.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Button embedded in movie clip...not working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|