CreateJS / TweenJS

A simple but powerful tweening / animation library for Javascript. Part of the CreateJS suite of libraries.
http://createjs.com/
MIT License
3.56k stars 966 forks source link

HTML5 Canvas on Adobe Animate CC: Tweening any object to 0 causes all objects with mouse events to not respond anymore #94

Open jpgmx84 opened 7 years ago

jpgmx84 commented 7 years ago

I reported this as a bug to Adobe. Someone at the Adobe Community suggested to submit an issue here as well. Here's the bug report:

  1. Download and open the file in Adobe Animate CC. buttons.zip.
  2. Select the first frame in the "as" layer in the Timeline and open the Actions panel (Window > Actions).
  3. Go to code line 59 (it is a CreateJS Tween). Change the scaleX, scaleY and alpha values to 0, instead of 0.01.
  4. Test the project (Control > Test).
  5. Click on an image. A "window" opens with some info.
  6. Click on the orange circle with an "x" at the top right corner of the canvas.
  7. Move the cursor over an image and click.

Results: The images don't respond to mouse events anymore. Expected results: The images should respond to the mouse when over, out and when clicked.

jpgmx84 commented 7 years ago

Thought it might be useful to include the Adobe Community Forum thread: https://forums.adobe.com/message/9379800#9379800.

The original code had some issues with gotoAndStop(), and a user reports that removing masks from the images makes tweening to 0 work just fine.