Drag text in Adobe Animate CC html5

New Here ,
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

146

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
ClayUUID LATEST
Adobe Community Professional ,
Jan 06, 2021

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more