The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Click-and-Rotate picture in Flash
If anybody knows how to rotate picture 90 degrees by clicking on it and actually make this rotation been visual please help.
AS2 // Kinda rusty but I’ll try // yourimage.onRelease = function() { this._rotation +=90; }
AS3 // yourimage.addEventListener(MouseEvent.CLICK , clickEvent); function clickEvent(e:MouseEvent):void { e.currentTarget.rotation+=90; }