A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: unload movie problem

  1. #1
    ...
    Join Date
    Jun 2002
    Location
    MEXICO
    Posts
    88

    unload movie problem

    hi,

    I have my main movie that loads external swf's into an empty movie clip. When the user is finished looking at what is in the loaded swf's I would like to have a short animation within the loaded swf's that ends with the swf fading out and the main clip appearing again.
    I am trying to get the loaded swf to control the main movie so it can unload the loaded swf and move to frame 1 of the main scene. I tried using this, but it doesn't work:

    _root.gotoAndStop("main",1);
    _root.unloadMovie("section1");

    Any suggestions?

    Thanks,

    pjustice

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    First, you can't target a scene name from a movie clip (in fact, you should never target a scene name in your Flash life again!), and would be better off not even targeting a frame number, but always a labeled frame, and add the targetted timeline to your path.

    Thus label the first frame of your "main" scene, with an unique label such as main1 and target that labeled frame...

    ...

    Now to unload the content mc from within itself, you can simply use...

    ...
    Last edited by oldnewbie; 03-11-2005 at 10:31 PM.

  3. #3
    ...
    Join Date
    Jun 2002
    Location
    MEXICO
    Posts
    88

    thanks

    thanks so much oldnewbie your advice has worked once again.

    pjustice

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