Hi everyone. I’m no expert on Actionscript 3.0. I’m wondering if someone had a suggestion on how to fix my AS3 code.
Here’s the AS2 loop picture bar code. Works perfect.
_root.pics.onEnterFrame=function(){
_root.pics._x+=(86-_root._xmouse)/33.3;
if(this._x>0){
this._x=-300;
}
if(this._x<-300){
this._x=0;
}
}
Then I was trying to update to AS3. There’s something obvious I’m missing, no?
pics.addEventListener(Event.ENTER_FRAME, onEnterFrame);
pics.x+=(86-mouseX)/33.3;
if(this.x>0){
this.x=-300;
}
if(this.x<-300){
this.x=0;
}
thanks kindly for any suggestions!