-
1. Re: HTML5 Canvas (in Flash CC) Button Functionality Faulty - Over, Down states do not work
Flashy_1995 Nov 22, 2014 5:35 AM (in response to Alison Livingston)Have you tried using the action
stop();
in the actions panel of each state in your button.
-
2. Re: HTML5 Canvas (in Flash CC) Button Functionality Faulty - Over, Down states do not work
Alison Livingston Nov 22, 2014 9:34 AM (in response to Flashy_1995)Thanks for your reply!
Yes, I tried adding an actions layer to the button in editing mode (where up, down, over states are visible) but Flash won't allow me to input code there. Its totally greyed out, including <> fly out menu on the upper right. This is regardless of if I have a frame selected in button editing mode.
I tried giving the button on stage an instance name and doing a stop(); command on the actions layer there. No dice.
I made sure there isn't a button within a button (a big no, no).
-
3. Re: HTML5 Canvas (in Flash CC) Button Functionality Faulty - Over, Down states do not work
Alison Livingston Nov 22, 2014 2:22 PM (in response to Alison Livingston)Doing more research on this. It is clear to me that Flash's new HTML5 canvas isn't as elegant as it should be yet. My next experiment is to eliminate the hover state and just have an up state, then after I publish, write out the code in Javascript.
I will post if that works. Its the back door way. I will be interested to see what Adobe does with Edge Animate and Flash in the future. Right now it's buggy.
-
4. Re: HTML5 Canvas (in Flash CC) Button Functionality Faulty - Over, Down states do not work
Flashy_1995 Nov 23, 2014 5:17 AM (in response to Alison Livingston)You can program using java script in flash.
use the code
exportRoot.stop();
inside the button frame
if not working and all becomes gray as described above then target your button from the main timeline like
exportRoot.someClip.subClip.stop();But remember to change .someClip & .subClip with their correct names.
-
5. Re: HTML5 Canvas (in Flash CC) Button Functionality Faulty - Over, Down states do not work
Alison Livingston Nov 23, 2014 10:15 AM (in response to Flashy_1995)Thanks Flashy_1995, gonna try it!
One problem solved last night: hand on hover over appears now!
I had a tween span on stage using a button. For some weird reason, after I tweened the button it turned to a movie clip, not a button. I changed it back to a button on all instances of the object on the timeline & stage. No hover state yet, but at least the hand appears.
-
6. Re: HTML5 Canvas (in Flash CC) Button Functionality Faulty - Over, Down states do not work
Flashy_1995 Nov 23, 2014 10:24 AM (in response to Alison Livingston)Welcome and keep me posted.
the above code should work.
Have you tried it yet
-
7. Re: HTML5 Canvas (in Flash CC) Button Functionality Faulty - Over, Down states do not work
Alison Livingston Nov 23, 2014 3:47 PM (in response to Flashy_1995)In the end I didn't have to do it. I fixed everything via the timeline. Now everything is working!
html5 canvas doesn't like to tween buttons. It will do it but if the buttons contain animations, things go wonky. Instead I had flash tween the bitmap of the button and once the animation concluded, I changed over the bitmap to the button in the next keyframe so the user could click on it. Its seamless, you can't see a hiccup. Hover-over states worked after that as does the hand.
Hopefully this helps others who have this same problem.

