API Docs for: 0.0.2
Show:

Atlantis.ContentManager Class

Module: Framework
Parent Module: Atlantis

Create a content manager that manage _assets.

Constructor

Atlantis.ContentManager

(
  • rootDirectory
)

Parameters:

  • rootDirectory String

    The root folder to load _assets (default is the current folder).

Item Index

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.

Parameters:

  • assetName String

    The asset name

  • callback Function

    A callback function called when the asset is loaded.

notify

(
  • name
  • params
)

An event notifier. If the event doesn't exists it created and stored.

Parameters:

  • name String

    The name of the event to emit.

  • params Object

    An object to emit with the event.