A Flash Developer Resource Site

Results 1 to 14 of 14

Thread: how to unload movie clip?

  1. #1
    Member
    Join Date
    Nov 2002
    Location
    Finland
    Posts
    73

    how to unload movie clip?

    Hi there!
    im not an expert but i am working in expert mode as funny enough
    it seems easier. Anyhow my situation is that I have a main site swf and need to load like 6 seperate external swfs within to the main swf to specific target areas which are invisible movie clips. I am using the below code and it works fine:


    on(release) {
    loadMovie("wav1.swf",_root.dropZone);
    }


    But what am i doing wrong when i am trying to unload the current external wav1.swf.as its not unloading.Basically what is the opposite of the above code that i should be using to unload a movie correctly?

    Many thanks for your help!

    Chris


  2. #2
    Member
    Join Date
    Dec 2003
    Location
    Gurgaon, India
    Posts
    64
    Hi Chris,

    Try this:

    Code:
    _root.dropZone.unloadMovie();
    Sam
    Flash makes the Web go Round

  3. #3
    Member
    Join Date
    Nov 2002
    Location
    Finland
    Posts
    73
    thank you super my man!
    that works great!

    only problem is that after it unloads the external swf i would need it to return to the original movie clip and its instance name is

    dropZone



    how do i do that...

    thanks again!

  4. #4
    Member
    Join Date
    Dec 2003
    Location
    Gurgaon, India
    Posts
    64
    Hi Chris,

    What do u mean by return to the main movie.
    Does that means that the holder mc should start playin'.

    Plz. make it clear,
    Sam
    Flash makes the Web go Round

  5. #5
    Member
    Join Date
    Nov 2002
    Location
    Finland
    Posts
    73
    Hello Sam..yeah sorry my man for not being clearer..
    im not familiar with the term "Holder" mc.
    But i think we understand perhaps eachother right. Basically what i meant is when you first load the main site swf..there are 6 invisible movieclip areas that function as buttons(so when you click they will load the external swf files into their positions.

    So now after i have loaded say the first external flash file..then i want it to unload when clicked upon and then return to its move clip-button state, as it first was before the external swf was loaded into its spot.Did this make any sense?

  6. #6
    Member
    Join Date
    Dec 2003
    Location
    Gurgaon, India
    Posts
    64
    Hi Chris,

    Sorry for not interpreting u r problem properly,but,if possible, can u upload u r .fla file.

    or if not, can u tell me,what u've written on invisible movieClips to load external .swf's & to unload as well.

    Besides, holder mc is u r invisible movie clip.

    Waiting...
    Sam
    Flash makes the Web go Round

  7. #7
    Member
    Join Date
    Nov 2002
    Location
    Finland
    Posts
    73
    many thanks my man!
    i will upload the files now!
    ill send you link here in a sec

    better yet to save some time
    my direct email at work is chris.champagne@vistakuva.fi

  8. #8
    Member
    Join Date
    Nov 2002
    Location
    Finland
    Posts
    73
    here Sam..
    inside this folder there are 3 fla MX files.

    http://www.beats.midnightsunrecordin.../flashproblem/


    another interesting question and problem ahead for me is im wondering what would be a good way to code these.Because id like it to work so that when say your watching movie 4..then you want to listen to movie 1.Or any other of the movies.I would like it to stop playing the current exernal swf, unload it and start playing the next one.It just gets abit tricky as im trying to think if there is some kind of code that would work so that if user:

    clicks on anymove-it would stop current sound, unload current swf, load the so called "invisible clip" back and then load another any of the other external swfs.If you get me

  9. #9
    Member
    Join Date
    Nov 2002
    Location
    Finland
    Posts
    73
    basically if you think of the file logically how it should work
    Sam like then you can probably see some of the small problems that could arise.6 external swfs with music playing at the same time.Also each external swf along with the music will be a jpg with afew lines of text info about the album in question.I only want one loaded swf at a time, not all 6.

    But because you dont know which one the user will click and if say you currently have movie 1 going playing external swf i dont want to have to code:

    on press
    stop all sounds
    unload movie 2
    unload movie 3
    unload movie 4
    unload movie 5
    unload movie 6
    Load next movie...so on..

    must be a better way.Sorry but as you see im not good at coding

    thanks Sam for your help!

  10. #10
    Member
    Join Date
    Dec 2003
    Location
    Gurgaon, India
    Posts
    64
    Hi Chris,

    I'm currently downloading u r files.I hope u r not in a hurry.
    It'll take me some time to solve it.

    Thanx,
    Sam
    Flash makes the Web go Round

  11. #11
    Member
    Join Date
    Nov 2002
    Location
    Finland
    Posts
    73
    thanks again very much Sam.Very nice of you to take the time.
    No rush at all.I dont think its a very complex thing really.Maybe for me though its quite a challenge as i do very little actionscript.Im more a visual type.

    For some reason everytime you post here I am not getting email notification, or in some cases afew days ago i was from others but a day late.Safest is to send me email to
    chris.champagne@vistakuva.fi

    many thanks Sam!

    Chris
    (from Finland)

  12. #12
    Member
    Join Date
    Dec 2003
    Location
    Gurgaon, India
    Posts
    64
    Hi Chris,

    Got u r files, workin' on them.
    By the way, which version of flash r u workin' on ?

    Sam
    Flash makes the Web go Round

  13. #13
    Member
    Join Date
    Nov 2002
    Location
    Finland
    Posts
    73
    Hi sam...

    i use flash FX, still dont have 7!


  14. #14
    Member
    Join Date
    Nov 2002
    Location
    Finland
    Posts
    73

    reminder

    Hey sam!

    no rush on the file..but can you just remember to email me at
    chris@midnightsunrecordings.com
    just as soon as you find the solution.I dont visit flash kit all that much so this is safest bet.

    cheers my man!

    chris

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