Greetings.
I have a main movie (slot machine) where I loaded 3 external
.swf's ( vertical scrolable menus).
1.I would like those menus to start rotating at some speed
immediately when they load to main movie( not to stay still )
2. I would like them to continue rotating at some speed when
I leave menu area with the mouse.
( It continues to rotate when I test the menu by itself, but
when loaded to main movie it stops every time when I leave the menu
area)
You can see this slot machine
Here...
Here is the actionscript that causes menus to scroll
vertically:
onClipEvent (load) {
ycenter = 120;
speed = 1/20;
}
onClipEvent (enterFrame) {
var distance = _parent.mask_mc._ymouse-ycenter;
if(_parent.mask_mc.hitTest(_root._xmouse, _root._ymouse,
false)){
_y -= (distance*speed);
}
if (_y>0) {
_y = -8765;
}
if (_y<-8765) {
_y = 0;
}
}
And here is the code I used to load external files to main
movie:
_root.createEmptyMovieClip("container", 1);
loadMovie("
http://www.alarmi555.com/images/stories/slike1/livi_meni.swf",
"container");
container._x =35;
container._y =14;
_root.createEmptyMovieClip("container1", 2);
loadMovie("
http://www.alarmi555.com/images/stories/slike1/srednji.swf",
"container1");
container1._x = 167 ;
container1._y =14 ;
_root.createEmptyMovieClip("container2", 3);
loadMovie("
http://www.alarmi555.com/images/stories/slike1/desni.swf",
"container2");
container2._x = 300 ;
container2._y =14 ;
Thank you for the help.
Sasa