hothousegraphix
07-25-2006, 05:37 PM
I've inherited a project that I've had to make changes to. One of which is now preventing a section of this project from functioning properly.
I have a swf that I'm now loading into a container clip on my main timeline via:loadMovie ("lecordon_bleu_part7.swf", "_level0.ContainerMC");
// this work just fine
However, contained in the movie being loaded is a script that targets a comboList which loads streaming video that now no longer functions when loaded into the containerMC. It does work fine when simply testing the swf without loading it.
Below is the function in question, I'm not sure when I need to adjust the script to have the paths targeted correctly:
comboList.addEventListener("change", this);
//trace(comboList);
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
_videoPlayer.attachVideo(stream_ns);
function change (e:Object) {
//trace("called");
//trace(e.target.selectedItem.data);
stream_ns.play("videos/" + e.target.selectedItem.data);
}
stop();
Any advice would be Appreciated !
Thanks.
I have a swf that I'm now loading into a container clip on my main timeline via:loadMovie ("lecordon_bleu_part7.swf", "_level0.ContainerMC");
// this work just fine
However, contained in the movie being loaded is a script that targets a comboList which loads streaming video that now no longer functions when loaded into the containerMC. It does work fine when simply testing the swf without loading it.
Below is the function in question, I'm not sure when I need to adjust the script to have the paths targeted correctly:
comboList.addEventListener("change", this);
//trace(comboList);
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
_videoPlayer.attachVideo(stream_ns);
function change (e:Object) {
//trace("called");
//trace(e.target.selectedItem.data);
stream_ns.play("videos/" + e.target.selectedItem.data);
}
stop();
Any advice would be Appreciated !
Thanks.