Help with my code please


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;

on (release){

_root.HomePage.onEnterFrame = function() {
if (mouse_over_HomePage) {
} else {

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

(e:MouseEvent):void { overBtn = false;}
addEventListener(Event.ENTER_FRAME, onEnter);
function onEnter (e:Event):void {
if(overBtn){ PrijatelBTN.nextFrame();
else { PrijatelBTN.prevFrame();
*/ Code ends.


PrijatelBTN.addEventListener(MouseEvent.MOUSE_OVER, onOver);
PrijatelBTN.addEventListener(MouseEvent.MOUSE_OUT, onOut);
PrijatelBTN.addEventListener(Event.ENTER_FRAME, onEnter);

var overBtn:Boolean=false;
function onOver(e:MouseEvent):void {
function onOut(e:MouseEvent):void {
function onEnter(e:Event):void {
    if (overBtn) {
    } else {

this looks fine

I think as4 is still under development and code you have give is as2 so I thought that you are trying to upgrade it to as3.

I have no idea for as4

I imagine there would be some differences. We won’t know for sure until AS4 is released for public use.

I’ve no idea how far into the future that will be though.

Do you work for Adobe and are currently developing a new version of Flash?

AS4 why is it a diffrence?Do not tell me that there are big diffrences between them!

are you talking about as3 or as4.