Copy link to clipboard
Copied
I have a simple button that I need to go to frame 25 when hovered over in Animate CC.
Can anyone offer some simple instructions?
Is there any way to upload the file?
Thanks
There is the "window/Code Snippet" window, but its limited and you still need to poke around with the script it creates to get what you want..... based on the link, the bellow goodness does whats needed...remember animate isn't a wysiwyg program when it comes to the scripting, would be interesting to have a node based system like "playmaker" for unity for instance....
...
this.stop();
root = this;
stage.enableMouseOver();
this.MYBUTTON.addEventListener("mouseover", MYFUNCTION);
function MYFUNCTION()
{
r
Copy link to clipboard
Copied
Hello,
Depends, are you using ActionScript3 or HTML5 Canvas document ?
Here is an html5 sollution fro kglad:
create a "mouse over" interactive button in html5 canvas
Regards,
Copy link to clipboard
Copied
Thanks but that just confuses the situation. Isn’t there a simple action for Canvas to gotoandplay or go toad stop ?
Sent from my iPad
Copy link to clipboard
Copied
There is the "window/Code Snippet" window, but its limited and you still need to poke around with the script it creates to get what you want..... based on the link, the bellow goodness does whats needed...remember animate isn't a wysiwyg program when it comes to the scripting, would be interesting to have a node based system like "playmaker" for unity for instance....
this.stop();
root = this;
stage.enableMouseOver();
this.MYBUTTON.addEventListener("mouseover", MYFUNCTION);
function MYFUNCTION()
{
root.gotoAndPlay(FRAMENUMBER);
}
Regards,
Copy link to clipboard
Copied
Thanks Albert,
I understand the MYBUTTON=My Instance Name
And FRAMENUMBER
But would MYFUNCTION = onrollover for hover?
Copy link to clipboard
Copied
Yes
Find more inspiration, events, and resources on the new Adobe Community
Explore Now