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

185

Likes

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
Adobe Community Professional ,
Jan 06, 2021 Jan 06, 2021

Copy link to clipboard

Copied

LATEST

Likes

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