Highlighted

Drag and drop as3

Community Beginner ,
Aug 11, 2020

Copy link to clipboard

Copied

Hi Im knew to animate I keep getting this error message 1021: Duplicate function definition. could someone help me please this worked for me before but has stopped working now 

 

Hat.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_9);

function fl_ClickToDrag_9(event:MouseEvent):void
{
Hat.startDrag();
}

stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_9);

function fl_ReleaseToDrop_9(event:MouseEvent):void
{
Hat.stopDrag();
}

 

Views

20

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

Drag and drop as3

Community Beginner ,
Aug 11, 2020

Copy link to clipboard

Copied

Hi Im knew to animate I keep getting this error message 1021: Duplicate function definition. could someone help me please this worked for me before but has stopped working now 

 

Hat.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_9);

function fl_ClickToDrag_9(event:MouseEvent):void
{
Hat.startDrag();
}

stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_9);

function fl_ReleaseToDrop_9(event:MouseEvent):void
{
Hat.stopDrag();
}

 

Views

21

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
Aug 11, 2020 0
Community Beginner ,
Aug 11, 2020

Copy link to clipboard

Copied

It is an  air app if that helps 

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
Reply
Loading...
Aug 11, 2020 0
Community Beginner ,
Aug 11, 2020

Copy link to clipboard

Copied

Nevermind all good fixed 

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
Reply
Loading...
Aug 11, 2020 0