Hi, thanks for your reply.
projectdirectory/main.swf
projectdirectory/slides/slide_01.swf
projectdirectory/slides/video_01.flv
// slide_01.swf contains FLVPlayback component
// contentpath set to "video_01.flv"
// this works if I call it on its own during testing (ctrl-enter)
// script in main.swf
// in main timeline I call ... LoadSlide("slide_01.swf")
// and this function loads the external clip
// it works as it does load "slide_01" but the video doesn't play.
// if I put video_01.flv in same directory as main.swf it works
// but for organization purposes I want the media resources in sub directories
// (its a CD project).
// Maybe something is wrong with my path name concatenation?
function LoadSlide(pFileName) {
// sub directory "slides"
var tFilePath = "slides/" + pFileName;
trace("LoadSlide " + pFileName +" "+ tFilePath);
var _mcl:MovieClipLoader = new MovieClipLoader();
var _listener:Object = new Object();
_listener.onLoadInit = function(_slideClip:MovieClip) {
trace("Done loading...");
};
_mcl.addListener(_listener);
this.createEmptyMovieClip("_slideClip", this.getNextHighestDepth());
_mcl.loadClip(tFilePath, _slideClip);
}
TIA,
RandyS
|