Highlighted

Action to open a new webpage after playing a video?

New Here ,
Aug 12, 2019

Copy link to clipboard

Copied

Hi everybody,

I am looking for an action i html5 canvas to open a new webpage immediately after running a short video intro. I can only find the 'onclick'-action, but I need an action that opens a new webpage without any activity from the user. Can it be done?

Best Regards,

Rasmus Jelbo

TOPICS
Discussions

Views

86

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

Action to open a new webpage after playing a video?

New Here ,
Aug 12, 2019

Copy link to clipboard

Copied

Hi everybody,

I am looking for an action i html5 canvas to open a new webpage immediately after running a short video intro. I can only find the 'onclick'-action, but I need an action that opens a new webpage without any activity from the user. Can it be done?

Best Regards,

Rasmus Jelbo

TOPICS
Discussions

Views

87

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
Aug 12, 2019 0
Adobe Community Professional ,
Aug 12, 2019

Copy link to clipboard

Copied

Hi.

If your video instance name is video0 and the loop property is false, you could write this:

var video;

setTimeout(function() // a delay is needed to reference components in Animate CC

{

    video = document.querySelector("#video0");

  

    video.onended = function(e)

    {

        window.open("https://www.adobe.com/", "_blank");

    };

}, 0);

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...
Aug 12, 2019 0