A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: How i stop a main-movieclip while i run another animation?

Hybrid View

  1. #1
    Junior Member
    Join Date
    Dec 2002
    Posts
    11

    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?

  2. #2
    Senior Member
    Join Date
    Oct 2000
    Location
    UK
    Posts
    875
    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();
    }

  3. #3
    Junior Member
    Join Date
    Dec 2002
    Posts
    11
    I dont know why but the mainmovie dont stop

  4. #4
    Senior Member
    Join Date
    Oct 2000
    Location
    UK
    Posts
    875
    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]


  5. #5
    Junior Member
    Join Date
    Dec 2002
    Posts
    11
    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

  6. #6
    Senior Member
    Join Date
    Oct 2000
    Location
    UK
    Posts
    875
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center