A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: A little Help on unloadmovie

  1. #1
    Member
    Join Date
    Jul 2003
    Location
    Brampton, ONT
    Posts
    50

    A little Help on unloadmovie

    Heres my problem, on my button I'm calling my mainMc like this

    on (release) {
    _level0.main.loadMovie("sections.swf");
    }


    And and I'm trying to unload it from a frame script like this:

    removeMovieClip(_root.recruit);
    stop();

    >>This doesn't work atall .. what am I doing wrong?
    >>Should I use this as a framscript or should I have it in a button?

    Anyone?

  2. #2
    Untitled-1.fla strille's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    1,626
    If you want to unload main:
    code:
    _level0.main.unloadMovie();


  3. #3
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    Just going by your code and working backward, your loading a movie named sections.swf into a movie clip named main onto level0. If that's what your really doing, then do it this way instead:

    on (release) {
    _root.main.loadMovie("sections.swf");
    }

    Then to unload it, your code is trying to remove a movie clip named recruit. I don't see any connection there. If your trying to unload the sections.swf, use this instead:

    _root.main.unloadMovie();

  4. #4
    Member
    Join Date
    Jul 2003
    Location
    Brampton, ONT
    Posts
    50

    thanks guys!

    it works great .. I'll keep to it

    you guys rule!

    ...if I hit any more glitches .. can I still ask you guys?

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