action script in flash

hey everyone, i have some action script using actionscript 1.0, but i need it to do the same thing in action script 2.0? but i dont know very much about it, is there anybody that can translate it lol… The lines seperateing it mean that the codes are for different objects.
any help would be absolutly awsome.


movespeed = 5;
if (_root.scroll._x<=-521.4) {
gotoAndStop (1);
} else {
_root.scroll._x -= moveSpeed;
}


on (press) {
tellTarget (“right”) {
gotoAndPlay (2);
}
}
on (release) {
tellTarget (“right”) {
gotoAndStop (1);
}
}


onClipEvent (load) {
movespeed = 5;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x -= movespeed;
if (this._x<=-1151.4) {
setProperty("_root.scroll", _x, -1151.4);
}
} else if (Key.isDown(Key.LEFT)) {
this._x += movespeed;
if (this._x>=167) {
setProperty("_root.scroll", _x, 167);
}
}
}

Hi Shannonhockins

I’m glad you like the Blender Artists forums, but this is not a flash support site and it is not necessary to make a new topic for each flash issue you have.

Your best bet is a proper flash community, and if you still feel the need to post your problem here, please use one topic for all flash problems, unless the thread it self is old or become cluttered.

We have enough users already spamming the offtopic forums. Mostly CD, but some other muppets too.

Lol, “muppets”.

Well, what a nice guy you are…I usually call them either “Kansas clones” or “F*ckups”.

@shannonhochkins