
Код AS1/AS2:
picture.onRollOver=Over;
picture.onRollOut=Out;
var speed=5;
_root.onEnterFrame = function() {
picture._x+=speed;
trace(speed);
if(picture._x>0){picture._x=-2712}
};
picture.onRollOver= function()
{trace("good");
if(speed>=0){
speed-=0.2;
}
}
picture.onRollOut= function()
{
trace("Bad");
if(speed<5){
speed+=0.2;
}
if(speed>5){
speed=5;
}
}
Вот код,мне нужно сделать чтоб фукции RollOver иOut срабатывали постоянно, а они выполняются один раз и все,как это сделать?