Jump to content
Search Community

VideoLoader uses incorrect path for loading

Doccie test
Moderator Tag

Recommended Posts

Slightly strange issue, I'm using an embedded LoaderMax instance in an XML file to load different assets.

All of this was working correctly when I tested offline, but once I put the files online, it's no longer working.

 

The issue seems to be that the VideoLoader seems to want to load from the location where I placed my .SWF file and not from where I placed my .HTML file (one folder up from the .swf file)

 

A screenshot using Charles debugger

http://screencast.com/t/eYIdK69wF6

 

The audit seems to use the correct URL, but once it starts with the actual load, it starts looking in the /swf folder, rather than in the /pieter folder.

Another oddity is that both the MP3Loader and ImageLoader don't have this problem.

 

Any insight into the problem is greatly appreciated :)

Link to comment
Share on other sites

yeah, there is an inconsistency with flash player where all other external assets that load are relative to the html page, but the NetStream is relative to the swf. Really annoying.

 

From the VideoLoader documentation: http://www.greensock.com/as/docs/tween/ ... oader.html

 

Note: There is a bug/inconsistency in Adobe's NetStream class that causes relative URLs to use the swf's location as the base path instead of the HTML page's location like all other loaders. Therefore, it would be wise to use the "base" attribute of the and tags in the HTML to make sure all relative paths are consistent. See http://kb2.adobe.com/cps/041/tn_04157.html for details.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...