Hi guys,
I’m having a problem trying to build a Video Portfolio for a client.
Basically I have a portfolio.swf which has the main stage with a load_videos MovieClip inside and a list of videos to select.
When the user selects a video, it automatically loads into the load_videos MC with the following command:
var p = new Loader();
p.load(new URLRequest("./videos/video_1.swf"));
load_videos.addChild§
Note: I created a SWF with a video player for each FLV video file.
And then I created a test button on portfolio.swf just to unload the video with the following command:
while (load_videos.numChildren > 0) {
load_videos.removeChildAt(0);
}
And it sort of works, the video_1.swf gets unloaded but the video keeps playing on background (I can’t see it, but can still hear it).
Anyone know how to fix this? Am I doing everything wrong and that isn’t the way I suppose to load videos?
Please, any thought on this is appreciated.
Regards,
Guilherme