Ok so I used the following code from the flash mx tutorial on loading dynamic jpgs.
photo1.onRollOver = function () {
_root.createEmptyMovieClip(“container”, 1);
loadMovie(“photos/BuriedFence.jpg”, “container”);
container._x = 150 ;
container._y = 147.0;
}
but now I want the movieclip to end when you rollout. What would the code look like??
Thanks,
Michael
system
2
photo1.onRollOut = function () {
unLoadMovieNum(1);
}
try that and let me know. I think you can just refer to the movie num now that you’ve associated it with a level…
hmm…you might have to actually use the container’s name since you probably have more than that one item on lvl 1…
photo1.onRollOut = function () {
UnLoadMovie(“container”);
}
I’m sort of new to flash to so if this doesn’t help let me know and i’ll look back into my files and see if i can find where i’ve used this.
:love:
system
3
OK what happens if instead of on a roll out I just wanted the movieclip to unload after I click a button to go to a different section?
system
4
on (release) {
createEmptyMovieClip(“container”, 1);
container.loadMovie(“your_mc_here.swf”);
container._x = 150;
container._y = 147;
}
on (releaseOutside) {
unloadMovieNum(1);
}
put this on every button. the button will load the mc and then unload it before re-loading the new one
:love:
system
5
although i recommend loading it on another lvl. Levels are great. Using them for this sort of thing gives you a lot of flexibility.
:love: