Highlighted

Dynamically Bring to Front in HTML5 Drag and Drop

New Here ,
Jun 24, 2020

Copy link to clipboard

Copied

I am working on an HTML interactive that will teach schedules of reinforcement.  I am trying to figure out how to bring the current item selected ("mousedown") to the front.  All of the items are buttons contained inside a movie clip.  I have scoured this community and other sites and several different solutions, with no such luck.  Attached is my .fla.  Thank you for your time and help.

 

Here is a link to my .fla file: schedules interactive.fla

Adobe Community Professional
Correct answer by JoãoCésar | Adobe Community Professional

Hi.

 

The line 47 of your code should be:

e.currentTarget.setChildIndex(e.target, e.currentTarget.numChildren - 1);

 

And you should also stop the main timeline even though you have only one frame. This is needed because in CreateJS 1.0 single frame Movie Clips loop continuously instead of just playing once. This causes the display list to reset over and over again.

 

In an ideal scenario the suggestions above should work. But since when Animate updated to CreateJS 1.0 the display list seems to be very inconsistent when it comes to reorder instances, add and remove them.

 

I reported these issues to the team once, but the problems are still happening.

 

Please contact the devs through this link and let they know about it:

https://adobe.allegiancetech.com/cgi-bin/qwebcorporate.dll?BPY8J4

 

Hopefully they're gonna help us.

 

 

Regards,

JC

Views

59

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

Dynamically Bring to Front in HTML5 Drag and Drop

New Here ,
Jun 24, 2020

Copy link to clipboard

Copied

I am working on an HTML interactive that will teach schedules of reinforcement.  I am trying to figure out how to bring the current item selected ("mousedown") to the front.  All of the items are buttons contained inside a movie clip.  I have scoured this community and other sites and several different solutions, with no such luck.  Attached is my .fla.  Thank you for your time and help.

 

Here is a link to my .fla file: schedules interactive.fla

Adobe Community Professional
Correct answer by JoãoCésar | Adobe Community Professional

Hi.

 

The line 47 of your code should be:

e.currentTarget.setChildIndex(e.target, e.currentTarget.numChildren - 1);

 

And you should also stop the main timeline even though you have only one frame. This is needed because in CreateJS 1.0 single frame Movie Clips loop continuously instead of just playing once. This causes the display list to reset over and over again.

 

In an ideal scenario the suggestions above should work. But since when Animate updated to CreateJS 1.0 the display list seems to be very inconsistent when it comes to reorder instances, add and remove them.

 

I reported these issues to the team once, but the problems are still happening.

 

Please contact the devs through this link and let they know about it:

https://adobe.allegiancetech.com/cgi-bin/qwebcorporate.dll?BPY8J4

 

Hopefully they're gonna help us.

 

 

Regards,

JC

Views

60

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
Jun 24, 2020 0
Adobe Community Professional ,
Jun 25, 2020

Copy link to clipboard

Copied

Hi.

 

The line 47 of your code should be:

e.currentTarget.setChildIndex(e.target, e.currentTarget.numChildren - 1);

 

And you should also stop the main timeline even though you have only one frame. This is needed because in CreateJS 1.0 single frame Movie Clips loop continuously instead of just playing once. This causes the display list to reset over and over again.

 

In an ideal scenario the suggestions above should work. But since when Animate updated to CreateJS 1.0 the display list seems to be very inconsistent when it comes to reorder instances, add and remove them.

 

I reported these issues to the team once, but the problems are still happening.

 

Please contact the devs through this link and let they know about it:

https://adobe.allegiancetech.com/cgi-bin/qwebcorporate.dll?BPY8J4

 

Hopefully they're gonna help us.

 

 

Regards,

JC

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

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...
Jun 25, 2020 0