I'm one of those learning to transition from AS2 to AS3. I have two buttons on stage. I used the built in code snippet for unload and load Movie. Although the issue i'm having is that if i click button 1 and then I click button 2 the first movie still stays. If I use a unload(); then I have to click the button which loads this MC twice in order to get it to load again. Anyone know what I'm not comprehending? Here is the code provided by the snippet:
I almost got it working. I changed it to the below and b2 unloads the movie loaded by btn but btn does not unload the movie loaded by b2. Anyone know why?
I didn't go through all the code, just the first. You were trying to have the clip remove itself. Manage the adding and removing of the clip separately. Have a button clicked function call another function to remove that button.
Here is an example AS3 I made for guys that are in AS2. You can see how you can handle buttons and how to lay out your flash in general.