Path problems when loading flv’s into NetStream object
May 19th, 2005 by ThomasWhen loading flv’s into a NetStream object Flash seems to use a different base-path than normally.
Consider the following structure:
/index.html (embeds the swf) /flash/movie.swf /videos/video.flv /images/image.gif
if you want to load the image you’d use the relative path: images/image.gif because the path where the embedding HTML is located is the base-path.
Now if you want to load the video in the same movie you’d have to use: ../videos/video.flv because in this particular case, Flash uses the location of the swf as the base-path!



March 29th, 2006 at 11:36 am
Thank you so much for that tip. I’ve spent 1hr trying to figure out why tho flvs wouldn’t load. I guess I should have checked the internet a bit sooner.
October 3rd, 2007 at 6:52 pm
yes! this was very helpful at a time when my brain wasn’t processing path errors whilst troubleshooting!
December 4th, 2007 at 9:36 pm
Hey!! Train load of thanks for the tip. Helped a lot. But the bug or problem is very funny.
February 5th, 2009 at 2:27 am
Yes I just encountered this problem today. It seems stupid because flash uses paths relative to the html for loading all other file types.
Are you aware of a solution to this problem? Does this bug also happen in AS3?
January 13th, 2010 at 9:02 am
My math is fine, stupid blog