• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Actions and buttons don't work

Community Beginner ,
Oct 17, 2019 Oct 17, 2019

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?

Views

158

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 17, 2019 Oct 17, 2019

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 18, 2019 Oct 18, 2019

Copy link to clipboard

Copied

ok So: silly question>> i create an action and paste this code in the actions window?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 18, 2019 Oct 18, 2019

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 18, 2019 Oct 18, 2019

Copy link to clipboard

Copied

Great Job!! thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 18, 2019 Oct 18, 2019

Copy link to clipboard

Copied

LATEST
You're welcome!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines