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

Drag text in Adobe Animate CC html5

Community Beginner ,
Jan 06, 2021 Jan 06, 2021

Help - How to convert ActionScript3.0

code to HTML5 in Animate CC?

AS3:

import flash.geom.Rectangle;

var text_1:Rectangle = new Rectangle(406, 96, 0,-503);
text.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);

function fl_ClickToDrag(event:MouseEvent):void
{
drag_text.startDrag(false, text_1);
}

drag_text.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);

function fl_ReleaseToDrop(event:MouseEvent):void
{
stopDrag();
}  

Drag text.png

Thanks

TOPICS
Code
331
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 ,
Jan 06, 2021 Jan 06, 2021
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