|
-
How i stop a main-movieclip while i run another animation?
How i stop a main-movieclip while i run another animation?
I use Flash 5:
My mainmovie clip is: mainmovie
The button on the navigation to load the swf-file (second animation) has the following code:
on (release) {
loadMovie("brillen.swf", "_root.Target_screen");
}
Everything works perfectly but how can i stop the "mainmovie" while i run for example "brillen.swf" and so on?
And how can i start the "mainmovie" again after the animation of "brillen.swf" is finished?
-
on (release) {
loadMovie("brillen.swf", "_root.Target_screen");
with(_root.mainmovie){
stop();
}
}
Add a keyframe the end of brillen.swf and put the following actionscript -
with(_root.mainmovie){
play();
}
-
I dont know why but the mainmovie dont stop
-
Have you given mainmovie the instance name of "mainmovie" in the properties dialogue? You will need to do this if you are targeting the clip with actionscript. If you have no joy email me your .fla and I'll have a look at what's going on.
You can email me at - [email protected]
-
This was it exactely. I forgot to call the instance name also MAINMOVIE. Now everything works perfectly.
Thanks to you both guys for your help. I absolutely appreciate it and wish you a wonderful day.
Chris
-
No worries Chris - we're both the same person ehehe
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|