Jump to content

Getting directory / file name of ALREADY loaded Phaser XHR?


Aerion
 Share

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

 

Link to comment
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.

Link to comment
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
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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