Preloader

Package : com.danehansen.display
Class : public class Preloader
Inheritance : Preloader > EventDispatcher > Object

A preloader class designed to easily create a customizable animated canvas preloader. This class depends on TweenLite.js which is available at http://greensock.com/ as well as EventDispatcher.js. It is assumed that it is desired that the canvas element will want to not be shown when the load is full, so either the canvas or the content to be shown after or both will have to have proper positioning added to it so that when the canvas has display:none applied to it that it won’t ruin your layout.

Public Properties

Public Methods

Public Constants

Events

EXAMPLE 1: WAITING FOR A CALLBACK

CONTENT! CONTENT! CONTENT!
var autoPreloader=new Preloader(document.getElementById("auto"));

EXAMPLE 2: SHOWING ACTUAL PROGRESS

CONTENT! CONTENT! CONTENT!
var progressPreloader=new Preloader(document.getElementById("progress"), "#F0F", 0.25);