Skip to main content
Participant
July 27, 2019
Answered

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

  • July 27, 2019
  • 2 replies
  • 532 views

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.

This topic has been closed for replies.
Correct answer kglad

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.

2 replies

Community Expert
July 29, 2019
kglad
Community Expert
Community Expert
July 27, 2019

as3 or html5?

Participant
July 30, 2019

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

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
July 30, 2019

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.