Copy link to clipboard
Copied
Decided to go with animate after a long time for a project
I still remember everything and i pay for the full pro packadge at my job
I relised that actions do not work any more either on html canvas or actionscript ..
I think i do everything correct (convert to button - keyframe at "HIT" and then actions>html5 action> got to web page..)
Nothing works - any ideas?
Copy link to clipboard
Copied
Hi.
If you're on a HTML5 Canvas document then you must use JavaScript.
To open up a web page, your code could look like:
var root = this;
root.openPage = function(e)
{
window.open("test.html", "_blank");
};
root.yourButton.on("click", root.openPage);
I hope this helps.
Regards,
JC
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Yeah.
This code must be in the same timeline and frame where your button is located.
If your button is in the first frame of the main timeline, then you have to select the first keyframe of any layer (but preferably the topmost layer), go to Windows > Actions (F9) and paste the code in there.
Remember to change the name of your button in the code and/or Properties panel.
Regards,
JC
Copy link to clipboard
Copied
Copy link to clipboard
Copied