Skip to main content
Uvox1
Known Participant
January 6, 2021
Question

Drag text in Adobe Animate CC html5

  • January 6, 2021
  • 1 reply
  • 310 views

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();
}  

Thanks

This topic has been closed for replies.

1 reply

Legend
January 6, 2021