A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Another unloadmovie question

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    17

    Another unloadmovie question

    Ok heres another unloadmovie question

    I am also using a parent movie, to load a child movie through an empty movie clip.

    My problem is this, once the child is loaded in to the parent, I then have another button in the child movie that I want to unload the empty movie clip (container) and load it with another movie.

    Unloading the movie is fine, but I can't seem to load the other external movie.

    I'm using Flash 5, and the code I am using is:

    on(press){
    unloadMovie("/container");
    }
    on (release) {
    loadMovie ("http://www.furious5.co.uk/kwikgrip/ext/map.swf", "/container");
    }

    Any ideas what the problem is?

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    if the button is in the movie that gets unloaded on press, logic says it will disappear before even reaching the on(release) right?
    anyway, you do not need to unload before loading into the same container, as the clip gets automatically replaced.

    last thing, the "/" slash is flash4 scripting. It has been replaced since flash5 by "_root" so _root.container would be the actual dot syntax for that path.

    gparis

  3. #3
    Junior Member
    Join Date
    Aug 2002
    Posts
    17
    Of course!

    Thanks for taking the time to respond, I had obviously been staring at the code for too long..

    Again thanks for pointing out the slash problem, I don't even know why I was using this - must be one of those days.

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