PDA

View Full Version : FLVplayback component not loading FLV


marcusw02
08-31-2006, 10:32 PM
Hi,

I am trying to set the contentPath for my FLVplayback component at runtime, based upon data in an XML file. The component plays when I set the contentPath in the component inspector, but when I leave it blank and try to set the path using AS, then it doesn't load (stating that the server path can't be found). I am using a relative path for the FLV, as it won't be web based - it will be bundled on a CD.

Any suggestions? Is this a known issue?

thanks
Marcus.

JasonBeaudoin
08-31-2006, 10:55 PM
I had that same problem, and this is the code that I had to use:

with(VideoPlayer){
setMedia("yourFlashVideo.flv", "FLV");
play();
}


VideoPlayer is the component itself, and you have to set it's Instance Name to that (or whatever you desire).