PDA

View Full Version : play outro when button clicked


glfonline
07-25-2003, 04:22 AM
hi folks,

how will i make an outro animation play before going to the clicked button destination...

sounds quite easy but not really when you have multipule destinations...

thanx in advance....

Marius

Bloom22
07-25-2003, 05:18 AM
Could you please point out your problem a little bit more specific. Do you work with scenes?

glfonline
07-25-2003, 05:43 AM
well,

not really just Movie clips within one big movie. I have structured each movie clip with a 'stop' in the center and a 'out' animation when directed to continue and go to the clicked button destination.

I am assuming i can work with 'load movie' but was wondering if it is possible to get the result within one movie

thanx

p.s. being to freiburg - very nice place :-)

Bloom22
07-25-2003, 08:13 AM
What's about working with frame labels (named keyframes). You put all your outros in one main movie. Use the "goto label" action to play a specific outro by a specific button.

When you're done with an outro direct your timeline to the next specific label and "stop".

subquark
07-25-2003, 10:24 AM
take a look at my site and see how the outro goes. is that what you want?

http://www.tableau.com.au/tutorials/smooth_transitions/

Billy T rocks! :)

glfonline
07-26-2003, 12:45 PM
hi there subquark,

spending a lot of time on your site and actualy got the 'outro' name from there. Your tute is great but it actually loads different SWF. was wondering if it possible to do within one MC.

thanx
M

subquark
07-26-2003, 02:00 PM
actually it is Billy T's code, so let's see if we can get an answer from a true master here!

Okay, using Billy T's code, how can we target mcs instead of swfs?

//initialise a variable
nextMovie="content1.swf";
//load the starting movie into level 1
loadMovieNum(nextMovie,1);
//button1 actions
button1.onRelease=function(){
//this makes sure that content 1 isn't already loaded
if(nextMovie!="content1.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content1.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}

from http://www.tableau.com.au/tutorials/smooth_transitions/

would we simply change nextMovie to the _root/content1MC?