In Scene 2, I have 5 movie clip Buttons on the main timeline,
each of which when released is supposed to go to and play a movie
clip, also on the main timeline. Each movie clip is a page of the
website, and is placed on its own frame (frames 69 to 73) and has a
stop action assigned to it. I've labeled each button so that I can
call it to Play the movie clip.
When I do a Movie test of Scene 2 only, and select a button,
on release it keeps going back to frame 1 in the main timeline of
Scene2 (although the button states are working great). When I do a
movie test of BOTH Scenes 1(an intro animation) and Scene 2
together, the buttons go to the correct movie clips and play them,
but then the button rollover and release states don't function
properly.
I'm sure I'm not getting something basic, but can't figure it
out even after checking through the forum pages. Thanks for any
help!
The code placed on each button is:
on (release){
_root.resetButtons();
this.gotoAndStop(''down'');
}
on (rollOver){
if (this._currentframe %26lt;%26gt; 3)
this.gotoAndStop(''over'');
}
on (rollOut, releaseOutside){
if (this._currentframe %26lt;%26gt; 3)
this.gotoAndStop(''up'');
}
The actionscript placed on a separate layer in the main
timeline to get the buttons to go the the movie clips is:
function resetButtons(){
homebutmc.gotoAndStop(''up'');
whatbutmc.gotoAndStop(''up'');
//etc...
}
homebutmc.onRelease=function(){
gotoAndPlay(69);
}
whatbutmc.onRelease=function(){
gotoAndPlay(70);
//etc
}
Movie Clips will not play on button...
1. Why are you dynamically setting frame moves for your
rollover state? This can easily be accomplished by using a ''button''
type instead of ''MovieClip.'' Unless you are creating the clips with
code on the fly, I would recommend sticking to a button, as this
will handle your rollover states for you.
I have noticed that scripts don't always work when testing
only 1 scene. I always test the movie, so that I can see how it is
going to work for the end user. If the gotoAndPlay() actions are
working when you testMovie, then I wouldn't worry about it.
I do, however, question your choice to use Scenes at all.
Scenes are notorious for giving people problems, and the general
consensus is to avoid them unless your scene has so many frames
that you begin having problems. You can create the same effect in a
single Scene using frames in the same manner you already are.
Instead of moving to ''Scene 2'' you will move to a frame that has
the same content on it.Movie Clips will not play on button...
Hi, and thanks for the input!
I'll make sure I test the entire movie for accuracy rather
than just one scene.
I'm using MC buttons because I have a button changing color
when selected. It has to stay that color until the next button is
selected. The only way I know of doing that is with an MC button
rather than the button symbol. Is there a way of doing this using
the button symbol too?
Scene 1 has an after effects movie/animation placed in it
with music - it runs directly into Scene2 which is the ''website
pages''. When I play the entire Movie now, all is working (i.e. each
click of the button take me to a movie clip (web page) in the same
scene (scene 2), but the button states aren't changing for the
''over'' and ''on release'' states). Can a problem like this be linked
to there being 2 separate scenes?
Thanks.
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment