PDA

View Full Version : variables?


Horst
11-17-2001, 06:57 AM
Iīm a newbie to flash and spent the whole day on reading tuts and forums to
find a solution to
my problem.

I have a flash site with 5 movie clips all in the same position .
If I hit one button of my menu, movie1 should play to itīs end,
then movie2 should start playing. That no problem so far.
But if I hit another menu button, movie1 should play to itīs end again,
then movie3 should start. You see, I must have the opportunity to go from
each movie to each other.

Since the "If frame loaded"-command doesnīt work with targets,
I thought of trying variables, something like - "current, dates" and "next,
cd"

Can anybody help me?
Thanks in advance

zoomfreddy
11-18-2001, 02:43 AM
Hi there!!!

In the buton add something like:

onRelease(){
_root.movie1.play();
_root.movie1.wichMovie=2;
}


at the end of your movie1:

_root["movie"+wichMovie].play();

wichMovie is the variable that tells your movie1 wath movie to
play, in each buton, change the variable to match the number
on the MC you want to play.

example:

To play movie2:

_root.movie1.wichMovie=2;

To play movie3:

_root.movie1.wichMovie=3;

and so on:cool:

Hope this help! you

zoomfreddy
11-18-2001, 02:51 AM
change this in the code:

onRelease()

for:

on (release)

:)

Horst
11-18-2001, 02:08 PM
works perfect, thanks a lot
Horst