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

Drag text in Adobe Animate CC html5

Community Beginner ,
Jan 06, 2021 Jan 06, 2021

Copy link to clipboard

Copied

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

Views

240

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

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