Vollevuist
04-02-2003, 05:44 PM
hi there
i am building a flash-site, and got stuck with the following problem:
i made a button, and if you click on it the following actions are taken:
on (press)
set variable: "/movie1:number"="2"
begin tell target("/movie1")
play
end tell target
end on
well, when movie1 starts playing, it plays until frame 12. in frame 12 there is a stop action, and also a frame with the following actions:
if (number=2)
begin tell target("r-preview")
play
end tell target
end if
so after you click the button, movie 1 is supposed to start playing and in frame 12 another movie should start. i don't think there is an easier way to do this, because there are different buttons and another movie is supposed to start in movie 1, depending on which button you clicked.
but now the problem:
movie 1 stops playing in frame 12, but the r-preview movie doesn't start! i'm positive i got all instance names and paths correct and everything. the r-preview movie does start when i click the button again when movie1 is already in frame 12, so i have to click the button twice, with about a second interval. it seems like the variable "number" isn't really stored. so when the flash player checks the variable he only finds it when i am clicking the button at the same time.
does anyone have experience with my problem? does anyone know how to solve it? i am not an expert with actionscript, so i just can't figure what i did wrong.
thank you
i am building a flash-site, and got stuck with the following problem:
i made a button, and if you click on it the following actions are taken:
on (press)
set variable: "/movie1:number"="2"
begin tell target("/movie1")
play
end tell target
end on
well, when movie1 starts playing, it plays until frame 12. in frame 12 there is a stop action, and also a frame with the following actions:
if (number=2)
begin tell target("r-preview")
play
end tell target
end if
so after you click the button, movie 1 is supposed to start playing and in frame 12 another movie should start. i don't think there is an easier way to do this, because there are different buttons and another movie is supposed to start in movie 1, depending on which button you clicked.
but now the problem:
movie 1 stops playing in frame 12, but the r-preview movie doesn't start! i'm positive i got all instance names and paths correct and everything. the r-preview movie does start when i click the button again when movie1 is already in frame 12, so i have to click the button twice, with about a second interval. it seems like the variable "number" isn't really stored. so when the flash player checks the variable he only finds it when i am clicking the button at the same time.
does anyone have experience with my problem? does anyone know how to solve it? i am not an expert with actionscript, so i just can't figure what i did wrong.
thank you