I have a Flash Video custom player skin thingy that I’ve created that plays 4 different videos. Now they want to add a “Download Video” link and for the life of me, I can’t figure out how to populate the URL to each video. Here’s the AS I have so far:
//Movieclip GotoAndStop Behavior
gotoAndStop(1);
//End Behavior
play_button_0.onRelease = function() {
video1.unloadMovie();
video2.unloadMovie();
video3.unloadMovie();
_root.attachMovie("VSMediaDisplay", "video0", 50);
video0.directLink = "URL to Video";
video0.autoPlay = true;
video0.backgroundColor = "#000000";
video0.bufferTime = "4";
video0.scaling = "keepRatio";
video0.loop = 0;
video0.detectBandwidth = "client";
video0.volume = 100;
video0._width = 240;
video0._height = 180;
video0._x = 5;
video0._y = 4;
}
play_button_1.onRelease = function() {
video0.unloadMovie();
video2.unloadMovie();
video3.unloadMovie();
_root.attachMovie("VSMediaDisplay", "video1", 50);
video1.directLink = "URL to Video";
video1.autoPlay = true;
video1.backgroundColor = "#000000";
video1.bufferTime = "4";
video1.scaling = "keepRatio";
video1.loop = 0;
video1.detectBandwidth = "client";
video1.volume = 100;
video1._width = 240;
video1._height = 180;
video1._x = 5;
video1._y = 4;
}
play_button_2.onRelease = function() {
video0.unloadMovie();
video1.unloadMovie();
video3.unloadMovie();
_root.attachMovie("VSMediaDisplay", "video2", 50);
video2.directLink = "URL to Video";
video2.autoPlay = true;
video2.backgroundColor = "#000000";
video2.bufferTime = "4";
video2.scaling = "keepRatio";
video2.loop = 0;
video2.detectBandwidth = "client";
video2.volume = 100;
video2._width = 240;
video2._height = 180;
video2._x = 5;
video2._y = 4;
}
play_button_3.onRelease = function() {
video0.unloadMovie();
video1.unloadMovie();
video2.unloadMovie();
_root.attachMovie("VSMediaDisplay", "video3", 50);
video3.directLink = "URL to Video";
video3.autoPlay = true;
video3.backgroundColor = "#000000";
video3.bufferTime = "4";
video3.scaling = "keepRatio";
video3.loop = 0;
video3.detectBandwidth = "client";
video3.volume = 100;
video3._width = 240;
video3._height = 180;
video3._x = 5;
video3._y = 4;
}
Below is a wireframe of the player. When the individual links are clicked (which are a total of 4) the current movie is unloaded and the new movie is loaded. I need a link to download the video to be unique to each video.

Can anyone provide some assistance? I had a lot of help with the above code and though I think I know what’s supposed to happen, I just can’t get my head around it. Thanks!