Highlighted

Actions and buttons don't work

Community Beginner ,
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

72

Likes

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

Actions and buttons don't work

Community Beginner ,
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

73

Likes

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
Oct 17, 2019 0
Adobe Community Professional ,
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

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

Likes

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
Reply
Loading...
Oct 17, 2019 1
Community Beginner ,
Oct 18, 2019

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Oct 18, 2019 0
Adobe Community Professional ,
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

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

Likes

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
Reply
Loading...
Oct 18, 2019 1
Community Beginner ,
Oct 18, 2019

Copy link to clipboard

Copied

Great Job!! thanks!

Likes

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
Reply
Loading...
Oct 18, 2019 1
Adobe Community Professional ,
Oct 18, 2019

Copy link to clipboard

Copied

You're welcome!
__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

Likes

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
Reply
Loading...
Oct 18, 2019 0