1 Reply Latest reply on Sep 26, 2011 12:47 PM by kglad

    Can This be Converted from CS4 AS3 to Flash8 AS2?

    mwelcome3

      Is This Possible To Work In Flash8 AS2?

      import flash.events.Event; addEventListener(Event.ENTER_FRAME, update); var accel = 2 var speed = 0.06 var friction = 0.94 function update(e:Event):void { if (mouseX>400){body.fridge.rotationY += speed + accel} if (mouseX<100){body.fridge.rotationY += speed - accel} if (mouseY<100){body.fridge.rotationX += speed + accel} if (speed>2){speed = 2} if (speed<-2){speed = -2} body.fridge.rotationY *= friction body.fridge.rotationX *= friction }