Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loaderInfo.url returns incorrect string #3

Open
rob-bateman opened this issue Jul 24, 2020 · 2 comments
Open

loaderInfo.url returns incorrect string #3

rob-bateman opened this issue Jul 24, 2020 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rob-bateman
Copy link
Contributor

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

  1. 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
"//"

@rob-bateman rob-bateman added the bug Something isn't working label Jul 24, 2020
@rob-bateman rob-bateman self-assigned this Jul 24, 2020
@rob-bateman rob-bateman added this to the SatProf tests milestone Jul 24, 2020
@80prozent
Copy link
Contributor

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

@80prozent
Copy link
Contributor

80prozent commented Jul 25, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants