DIR : /home/kozerus/public_html/jkwii/js/jsdoit/preload/README_CREATEJS_NAMESPACE.txt
/home/kozerus/public_html/jkwii/js/jsdoit/preload
In this version of PreloadJS, class definitions reside in a "createjs" namespace by default.
For example, instead of instantiating a preloader like this:
var foo = new PreloadJS();
You will need to reach into the createjs namespace:
var bar = new createjs.LoadQueue();
This functionality is configurable though. You can easily shortcut the namespace or get rid of it completely.
To shortcut the namespace, just point a different variable at createjs it is loaded:
<script src="easeljs.js"></script>
<script>
var c = createjs; // creates a reference to the createjs namespace in "c"
var foo = new c.Shape();
</script>
To remove the namespace, just point the createjs variable at the window before loading the libraries:
<script>
var createjs = window; // sets window as the createjs namespace (the object the classes will be defined in)
</script>
<script src="easeljs.js"></script>
This will also make CreateJS libraries compatible with old content that did not use a namespace, such as the output from the Flash Pro Toolkit for CreateJS v1.0.
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer