Class Index | File Index

Classes


Class Karma

Represents a Karma (master) object.
Defined in: jquery.karma.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Karma(options)
Karma
Method Summary
Method Attributes Method Name and Description
<static>  
Karma.button(args)
A shortcut for calling 'KButton( )'
<static>  
Karma.group(args)
A shortcut for calling 'KGroup( )'
<static>  
Karma.image(args)
A shortcut for calling 'KImage( )'
<static>  
Karma.init(toLoad)
<static>  
Karma.main(cb)
Main function.
<static>  
Karma.sound(args)
A shortcut for calling 'KSound( )'
<static>  
Karma.surface(options)
A shortcut for calling 'KSurface(.
<static>  
Karma.video(args)
A shortcut for calling 'KVideo( )'
Class Detail
Karma(options)
Karma
Parameters:
{String | Object} options
Constructor arguments
{String | Object} options.container Optional
Target DIV-class that will contain any canvas element created using Karma functions
{String} options.language Optional
Method Detail
<static> {Object} Karma.button(args)
A shortcut for calling 'KButton( )'
Parameters:
args
Returns:
{Object} new instance of KButton object
See:
KButton

<static> {Object} Karma.group(args)
A shortcut for calling 'KGroup( )'
Parameters:
args
Returns:
{Object} new instance of KGroup object
See:
KGroup

<static> {Object} Karma.image(args)
A shortcut for calling 'KImage( )'
Parameters:
args
Returns:
{Object} new instance of KImage object
See:
KImage

<static> {Object} Karma.init(toLoad)
Parameters:
{Object} toLoad Optional
The Object that has the arrays for preloading.
{Array} toLoad.images Optional
The images
{Array} toLoad.sounds Optional
The sounds
{Array} toLoad.videos Optional
The videos
Returns:
{Object} this

<static> Karma.main(cb)
Main function. Any Karma function call should be inside the callback function. The callback function will be executed when the preloading finishes.
Parameters:
{Function} cb
The callback funtion
See:
Karma#init

<static> {Object} Karma.sound(args)
A shortcut for calling 'KSound( )'
Parameters:
args
Returns:
{Object} new instance of KSound object
See:
KSound

<static> {Object} Karma.surface(options)
A shortcut for calling 'KSurface(.. )'.
Parameters:
options
Returns:
{Object} new instance of KSurface object
See:
KSurface

<static> {Object} Karma.video(args)
A shortcut for calling 'KVideo( )'
Parameters:
args
Returns:
{Object} new instance of KVideo object
See:
KVideo

Documentation generated by JsDoc Toolkit 2.3.0 on Mon Sep 14 2009 20:12:59 GMT-0500 (CDT)