Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
nineveh #1
button > graphic > movie clip gotoAndPlay
I have a button inside a graphic which is then inside of a movie clip (for
fading). In the graphic symbol I have the following syntax applied to the
button:
on (release) {
gotoAndPlay("Scene 1", 1);
}
When pressed, I want the button to play frame 1 in Scene 1. However, when
pressed, the button replays the fading movie clip that happens to be in another
movie clip which is then in Scene 1.
It seems to me my Flash MX is flaking out because the syntax I applied is very
specific and is not being processed. Can anyone tell me alternate syntax I
could apply that would accomplish what I want to do?: I want to click the
button and have it replay the entire movie, not just the symbol.
nineveh Guest
-
text in button in movie clip
I have a text field in a button (labeling the button) inside a movieclip. I am dynamically creating instances of the movieclip (and thus, the... -
Movie clip to button with actionscript
Hi, I'm trying to creat ? photo gallery that displays on one side small pictures that you can see in real size when you click on them. Pictures... -
button scripting a movie clip
Hi. I have 3 buttons (info, work, updates) . When I rollover the work button I want a seperate movieclip (an animation of the word work) to play... -
how do you get a button to function inside movie clip ?
Cant get my button to function inside of a movie clip. The movieclip works fine, in that my tweens function how i want them to. The problem is... -
Movie Clip Button
Hi, this is my first time using flash MX. I would like to use a movie clip that I made in Flash and have it act like a button. the movie clip is... -
David Stiller #2
Re: button > graphic > movie clip gotoAndPlay
>I want to click the button and have it replay the entire movie,
nineveh,> not just the symbol.
Flash MX isn't flaking out on you. :) In fact, the code is doing
exactly what you instructed. The problem here sounds like a pathing issue.
When you tell a button to gotoAndPlay(), the button applies that instruction
to its nearest timeline. In this case, as you described, the button is
inside a movie clip. That makes the movie clip this button's timeline, and
in fact, the movie clip performs the gotoAndPlay(), which makes the button
fade.
To make the *main* timeline go somewhere and play, you'll have to path
to it from your button. Try
on (release) {
_root.gotoAndPlay("Scene 1", 1);
}
As it turns out, you can omit the "Scene 1" if you like, since by
default gotoAndPlay() will do what it says in the current scene.
David
stiller( at ) quip ( dot ) net
David Stiller Guest



Reply With Quote

