Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Converting Actionscript to HTML5

New Here ,
Jul 14, 2020 Jul 14, 2020

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);
}
149
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 14, 2020 Jul 14, 2020
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines