loaderInfo.url returns incorrect string
rob-bateman opened this issue · comments
Description
The loaderInfo.url property doesn't return the correct url of the swf when being accessed from the root MovieClip
Platform
All
Steps to reproduce the issue
- trace the code
this.loaderInfo.url
in the root timeline
Expected outcome
a string representing the filepath or url of the swf file
Actual outcome
"//"
this is caused by a workaround we applied a while ago for games to alloow to pass sitelocking done by as3 checking the url.
Should just be a matter of removing that hack.
Will see to make tests so that we are sure we get exact same url shown as flash does
Its a bit more tricky than i initially thought.
I implemented a way so that the url gets transferred from parser._iFileName to loaderInfo.url (not pushed yet)
But in our cases when loading swf files, this is a relative url (for example assets/someSWF.swf
)
I think we can easy add the webite-url to it, so that we get a absolute url.
But when running this as test for testing FP vs Away, it will always fail, because the url that FP player loads the swf from is different than the url of swfs in testsuite.