Highlighted

importing a video and adding a clickable button in adobe animate (please please help)

New Here ,
Jul 27, 2019

Copy link to clipboard

Copied

Hi,

Im currently working on a project in which i need to create a video with a clickable component at the end, which will then cause a second video to play- it's meant to function like a 'choose your own adventure' video, with two buttons that will each lead to a different ending. I've already created the video in photoshop, and having created 'buttons' in Animate before i was under the impression that i could easily complete this task in this program. However, i am having difficulty importing the video into Animate in a way that actually allows it to be part of the timeline and have components added to it. I'm beginning to wonder if this is even possible, and if not, what other programs could i use to do this? For extra context, the video in question is about 7 minutes long and involves audio, and it's currently in an mp4 file.

I would really appreciate any help you're able to give as this is a very important project for me and the deadline is fast approaching.

Many thanks,

A.

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

for as3:

use three instances (eg, video_1 on frame 1) of an flvplayback component to play each video.

place the first component (video_1 on frame 1 with two buttons (eg, button_1 and button_2) that appear when the video's complete event is triggered.  assign the component source to the initial video:

import fl.video.VideoEvent;

button_1.visible=button_2.visible=false;

video_1.addEventListener(VideoEvent):void{

button_1.visible=true;

button_2.visible=true;

}

button_1.addEventListener(MouseEvent.CLICK):void{

gotoAndStop(2);

}

button_2.addEventListener(MouseEvent.CLICK):void{

gotoAndStop(3);

}

on frames 2 add another video component and assign it's source to your first ending.

likewise on frame 3 with your 2nd ending.

TOPICS
Discussions

Views

122

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

importing a video and adding a clickable button in adobe animate (please please help)

New Here ,
Jul 27, 2019

Copy link to clipboard

Copied

Hi,

Im currently working on a project in which i need to create a video with a clickable component at the end, which will then cause a second video to play- it's meant to function like a 'choose your own adventure' video, with two buttons that will each lead to a different ending. I've already created the video in photoshop, and having created 'buttons' in Animate before i was under the impression that i could easily complete this task in this program. However, i am having difficulty importing the video into Animate in a way that actually allows it to be part of the timeline and have components added to it. I'm beginning to wonder if this is even possible, and if not, what other programs could i use to do this? For extra context, the video in question is about 7 minutes long and involves audio, and it's currently in an mp4 file.

I would really appreciate any help you're able to give as this is a very important project for me and the deadline is fast approaching.

Many thanks,

A.

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

for as3:

use three instances (eg, video_1 on frame 1) of an flvplayback component to play each video.

place the first component (video_1 on frame 1 with two buttons (eg, button_1 and button_2) that appear when the video's complete event is triggered.  assign the component source to the initial video:

import fl.video.VideoEvent;

button_1.visible=button_2.visible=false;

video_1.addEventListener(VideoEvent):void{

button_1.visible=true;

button_2.visible=true;

}

button_1.addEventListener(MouseEvent.CLICK):void{

gotoAndStop(2);

}

button_2.addEventListener(MouseEvent.CLICK):void{

gotoAndStop(3);

}

on frames 2 add another video component and assign it's source to your first ending.

likewise on frame 3 with your 2nd ending.

TOPICS
Discussions

Views

123

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
Jul 27, 2019 0
Adobe Community Professional ,
Jul 27, 2019

Copy link to clipboard

Copied

as3 or html5?

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...
Jul 27, 2019 0
New Here ,
Jul 30, 2019

Copy link to clipboard

Copied

i've been trying to use as3, but im happy to use whichever will work

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...
Jul 30, 2019 0
Adobe Community Professional ,
Jul 30, 2019

Copy link to clipboard

Copied

for as3:

use three instances (eg, video_1 on frame 1) of an flvplayback component to play each video.

place the first component (video_1 on frame 1 with two buttons (eg, button_1 and button_2) that appear when the video's complete event is triggered.  assign the component source to the initial video:

import fl.video.VideoEvent;

button_1.visible=button_2.visible=false;

video_1.addEventListener(VideoEvent):void{

button_1.visible=true;

button_2.visible=true;

}

button_1.addEventListener(MouseEvent.CLICK):void{

gotoAndStop(2);

}

button_2.addEventListener(MouseEvent.CLICK):void{

gotoAndStop(3);

}

on frames 2 add another video component and assign it's source to your first ending.

likewise on frame 3 with your 2nd ending.

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...
Jul 30, 2019 0
Adobe Community Professional ,
Jul 28, 2019

Copy link to clipboard

Copied

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...
Jul 28, 2019 0