Atlantis.ContentManager Class
Create a content manager that manage _assets.
Constructor
Atlantis.ContentManager
(
-
rootDirectory
Parameters:
-
rootDirectory
StringThe root folder to load _assets (default is the current folder).
Methods
ajax
()
Ajax method for POST and GET calls.
dispose
()
Dispose all _assets
load
(
-
assetName
-
callback
Load an asset from the root directory. Supported formats are :
- Images : png, jpg, bmp
- Audio : mp3, ogg, wav
- Video : mp4, ogv
- Data : xml, json, js
The type is define with the file extension.