flash-cc

How to create multiple colors when expanding circle shape AS3?

元气小坏坏 提交于 2019-12-08 10:17:34
问题 So I am trying to figure out how to do this or if even possible. I create my circle shape dynamically through code and want to be able upon mouse_UP have the circle stop and when the mouse_DOWN is triggered have the circle keep expanding but with a new color. So on and so on adding new colors every time. I have the code setup to where it expands on mouse_DOWN and it changes color but it changes the whole circle color which is not what I want. Here is the code I have: //Create circle //MC's

Using Adobe Animate CC in HTML5 canvas mode with external JavaScript files

若如初见. 提交于 2019-12-04 16:19:55
I'm transitioning a large FLA AS3 project into Canvas/JS. I have a large external folder structure of AS files and many library objects associated with classes. I've converted FLA into a canvas mode but I can't find a way to associate JS files to the objects. I've seen online examples about including JS in frame scripts but I really hope to find a way to do it with external files and library objects association. I'd appreciate any direction or example of how it can be done. Thank you What I do is adding all my JS utilities to the html on-the-fly from Animate with appenChild like this: frame