vertical scrolling menu
greetings.
i have main movie (slot machine) loaded 3 external .swf's ( vertical scrolable menus).
1.i menus start rotating @ speed when load main movie( not stay still )
2. them continue rotating @ speed when leave menu area mouse.
( continues rotate when test menu itself, when loaded main movie stops every time when leave menu area)
you can see slot machine here...
here actionscript causes menus 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 code used load external files 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 help.
sasa
i have main movie (slot machine) loaded 3 external .swf's ( vertical scrolable menus).
1.i menus start rotating @ speed when load main movie( not stay still )
2. them continue rotating @ speed when leave menu area mouse.
( continues rotate when test menu itself, when loaded main movie stops every time when leave menu area)
you can see slot machine here...
here actionscript causes menus 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 code used load external files 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 help.
sasa
if need can post menu file
thank you,
sasa
thank you,
sasa
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment