Sign in to follow this  
Mythros

Getting directory / file name of ALREADY loaded Phaser XHR?

Recommended Posts

Hi folks. Been messing around with Phaser again, and I've got a question. How do I grab both the directory AND file name FROM an ALREADY LOADED XHR file, OR the file name AND directory from a 404'd XHR? I want to use an asynchronous function to grab what's in the console XHR file tab and store it in either in an array or a string for later use.

Thanks a ton!

~Mythros <3

 

Share this post


Link to post
Share on other sites

The URL should be in the Cache item somewhere. For load errors, you may be able to find it in the load queue, or you may have to add your own error handler. Check the docs for Phaser.Cache and Phaser.Loader and dig around with console.log.

Share this post


Link to post
Share on other sites

@samme Ok, basically what I'm asking is I want to grab the names of all the ALREADY LOADED files & their locations

( http://mysite.com/blah/myplayer.png ) that show up in the Debug Console in the 'Network' tab where all the loaded files show. If you need a more in-depth answer, please do let me know!

Thanks alot buddy! <3

~M

Edited by Mythros

Share this post


Link to post
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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.