ok ive been working on this code for …all day now…and for some reason i cannot get it to work. what im attempting to do is have this charactor move back and forth slowly (almost like a motion tween…through action script) maybe one of you could help me.
onClipEvent (enterFrame) {
if (dir == “right”){
this._x += 3; {
if(this._x>509) {
dir=“left”;}}
}
if (dir==“left”){
this._x -= 3;{
if (this._x<50) {
dir = “right”;
}}}
}