PDA

View Full Version : local server not resolving path to video-works from web server


mojito
01-07-2008, 10:26 AM
Hi Guys

This is a problem that gets resolved when the flash and flv are on a proper web server. Even though the code receives the correct path that isn't absolute my machine I develop on cannot get the correct path as I get the following error which seems to hang the application since it stops the rest of my function from working..Its an issue inside the flash IDE and is hampering my development.

error
1000: Unable to make connection to server or to find FLV on server

code
scope.videoTemplate.video.contentPath="flv/dragon_one.flv";
trace(">> "+scope.videoTemplate.video.contentPath);
scope.videoTemplate.video.play();


If I want to browse a working version local I need to map a network drive in windows xp which will then work faultlessly.
:rolleyes:

thanks for any heads up on this one..

mojito
01-07-2008, 10:37 AM
Interestingly since mapping that network drive and re-opening the flash file has meant I can now work locally.

The problem was also excaerbated by the .play() method breaking the function and the whole application if the contentPath didnt resolve as in the error.
I prefer the silent fail (just doesnt play the flv) instead it takes down every command in the function issued after the .play() method..

so in

function block(){
do 1
do 2
video.contentPath="path.flv";
video.play();
do 3
}

do 3 doesn't happen.