FORUMS: list search recent posts

Unloading Multiple MC's in AS2

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ben Mettler
Unloading Multiple MC's in AS2
on May 21, 2009 at 11:02:16 pm

AS2. So I have several buttons that load external swfs into their own movie clips, but each movie clip needs to close before the next one is loaded. When I tried doing this:

on (release)
unloadMovie("emptymc", "mcprint");

It just says 'Wrong number of parameters; unloadMovie requires exactly 1'

Is there a way around this?


Return to posts index

Pieter Helsen
Re: Unloading Multiple MC's in AS2
on May 23, 2009 at 5:24:13 pm

UnloadMovie can only unload one movieclip at a time (hence the unexpected number of parameters error).

So just use two unloadMovie statements:

Kind regards,

General notice: from now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved