I could have sworn I saw something about this in the forums, but after doing a few searches I came up with nothing so here goes...
I want to be able to pass a variable to load an flv video...here is the script I'm using
code:
function videoLoad(videoChoice) {
videoPath = "videos/" + videoChoice
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns = new NetStream(connection_nc);
_level0.video_window.my_video.attachVideo(stream_n s);
stream_ns.play(videoPath);
}
And then on my button I have something like this...
on (release){
videoLoad("video1.flv");
}
Doesn't work though... any thoughts???
Ideally I will load the list of my videos from either XML or a database or even a text file or whatever...so they variable idea is important...
Thanks!!!