I am using Actionscript 4. Any idea how can I change the following code in one suitable for Actionscript 4?
on (rollOver) {
_root.mouse_over_HomePage = true;
}
on (rollOut) {
_root.mouse_over_HomePage = fstartlse;
}
Oh sorry my mistake is AS3.
I need to upgrade it for AS3.
Is it any posibility to make it work even if I have AS3?
I tried to open the file from the beginning to work in AS2 but does not work Should I really upgrade it?
Is it the code below the corect answer?
/* Code starts. Code works for one movie clip. “PrijatelBTN” is instance name for the Movie Clip
PrijatelBTN.buttonMode = true;
PrijatelBTN.addEventListener(MouseEvent.MOUSE_OVER, onOver);
PrijatelBTN.addEventListener(MouseEvent.MOUSE_OUT, onOut);
var overBtn:Boolean = false;
function onOver(e:MouseEvent):void { overBtn = true;}function onOut