0
Converting Actionscript to HTML5
New Here
,
/t5/animate-discussions/converting-actionscript-to-html5/td-p/11288219
Jul 14, 2020
Jul 14, 2020
Copy link to clipboard
Copied
Can anybody help me convert this Actionscript code to HTML5?
import flash.events.MouseEvent;
import flash.events.Event;
stage.addEventListener(Event.ENTER_FRAME, followMouse);
function followMouse(e:Event):void{
var xcoord = mcPolis.x - mouseX;
var ycoord = mcPolis.y - mouseY;
mcPolis.x = mcPolis.x - (xcoord / 10);
mcPolis.y = mcPolis.y - (ycoord / 10);
}
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/animate-discussions/converting-actionscript-to-html5/m-p/11288698#M205948
Jul 14, 2020
Jul 14, 2020
Copy link to clipboard
Copied
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

