So one of the project managers here at work dumped a Flash document on me to add a button that links to a website.
The way the video is setup is that it imports the .flv and plays it within the .swf – at the end is graphic that says “Visit Website” and clicking that area needs to link to the site. So here’s the problem, I can get the hotspot to be clickable once the movie is over. The visit website graphic is part of the video that was sent.
I can set a hotspot thats there throughout the whole movie, just can’t seem to get it to appear at the end.
Here’s what the movie looks like:
Here’s the timeline / layers:
Here’s the relevant ActionScript
import mx.video.*;
var flvUrl:String = "invest.flv";
_root.attachMovie("startImage","startImage",100, {_x:0, _y:0});
_root.attachMovie("playBtnVideo","playBtnVideo",150);
_root.playBtnVideo._x = 19;
_root.playBtnVideo._y = 180;
_root.attachMovie("trans","trans",0, {_x:0, _y:12});
my_FLVPlybk.contentPath = flvUrl;
my_FLVPlybk.playPauseButton = myPlayBtn;
my_FLVPlybk.seekBar = mySeekBar;
function alphaBtns_fn()
{
_root.myPlayBtn._alpha = 50;
_root.blackBg._alpha = 20;
_root.mySeekBar._alpha = 25;
}
_root.playBtnVideo.onRelease = function()
{
_root.trans.gotoAndPlay(2);
this.playBtnVideo.removeMovieClip();
}
stop();
alphaBtns_fn();