title: fl.video.VideoPlayer loads flv relative to swf?
body: <p><strong>Update:</strong> Turns out this is <a href="http://www.blog.lessrain.com/path-problems-when-loading-flvs-into-netstream-object/" rel="nofollow noreferrer">undocumented behaviour</a> of the <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html" rel="nofollow noreferrer">NetStream</a> class - NetStream loads relative to the swf, as opposed to URLRequest which loads relative to the HTML doc... annoying.</p>
  
  <hr>
  
  <p>I am having a strange issue where loading an FLV file using the <code>fl.video.VideoPlayer</code> class that comes with CS4: <a href="http://help.adobe.com/en_US/AS3LCR/Flash_10.0/fl/video/VideoPlayer.html" rel="nofollow noreferrer">Adobe docs here</a></p>
  
  <p>Usually when loading external content into flashplayer, the path is relative to the HTML page that the swf is embedded in - but when I try and load an FLV using the VideoPlayer class the player looks for a path relative to the swf, not to the HTML (as you would expect).</p>
  
  <p>eg:
  My file setup is:<br /><code>index.html</code> (which contains the swf)<br /><code>swf/my-video-player.swf</code><br /><code>video/my-video.flv</code></p>
  
  <p>When I call <code>videoPlayer.play("video/my-video.flv")</code>, from the swf (in index.html), the browser attempts to load <code>"swf/video/my-video.flv"</code>, which is relative to the swf, not to the HTML.</p>
  
  <p>Has anyone else experienced this behaviour with the VideoPlayer class? Any ideas why this might be happening?</p>