PDA

View Full Version : [MX] Rollout



Lacuna
February 5th, 2003, 10:53 PM
Oh yea it's me again. Hope you can help me outta this one.
I've used various codes to make this script but the rollout won't work (it did work when i loaded it with loadmovienum and unloadmovienum) but I cant figure out how to place the image where I want it except with this code. Once again thank you very much for your help!

----------------
on (rollOver) {
_root.createEmptyMovieClip("container", 1);
loadMovie("mainmenu.swf", "container");
container._x = 180 ;
container._y = 200 ;
}
on (rollOut) {
unloadMovie("mainmenu.swf");
}
----------------------

:love:
~Seretha

Lacuna
February 5th, 2003, 11:19 PM
...Or maybe is there a way to position it without using the container?

lostinbeta
February 5th, 2003, 11:26 PM
Ok, I didn't test this, but since you create the empty movie clip on every rollOver, why not delete it on the rollOut? And there is another way to write the loadMovie()


Try this...


on (rollOver) {
_root.createEmptyMovieClip("container", 1);
_root.container.loadMovie("mainmenu.swf");
_root.container._x = 180;
_root.container._y = 200;
}
on (rollOut) {
_root.container.removeMovieClip();
}

Lacuna
February 5th, 2003, 11:31 PM
Wow Beta you truly ARE amazing. Thanks and it works great.

:love:
~ Seretha

lostinbeta
February 5th, 2003, 11:32 PM
Well not really, but thanks :love:


I am glad I could fix it :beam: