Path problems when loading flv’s into NetStream object

May 19th, 2005 by Thomas

When 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!

5 Responses to “Path problems when loading flv’s into NetStream object”

  1. kmf Says:

    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.

  2. frank Says:

    yes! this was very helpful at a time when my brain wasn’t processing path errors whilst troubleshooting!

  3. General Bordeaux Says:

    Hey!! Train load of thanks for the tip. Helped a lot. But the bug or problem is very funny.

  4. Phil Walton Says:

    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?

  5. Cristian Rusu Says:

    My math is fine, stupid blog

Leave a Reply