//Augment Module var ITW = (function(itw){ "use strict"; //aliases var components, protot; itw.components = itw.components || Object.create(null); components = itw.components; var _jonahTex, _sprMain, _player; components.Jonah = function( ){ this.super.call(this); var _this = this; var _init = function(){ _jonahTex = []; for(var i = 0; i < 3; i++){ _jonahTex[i] = EHDI.Assets.images["cbn_jonah_" + (i+1)]; } _sprMain = new EHDI.aka.Sprite(_jonahTex[0]) _this.addChild(_sprMain); } _init(); } protot = components.Jonah.prototype = Object.create(EHDI.aka.Container.prototype); protot.constructor = components.Jonah; protot.super = EHDI.aka.Container; /** * @param (NUMBER) 1,2,3 */ protot.updateExpression = function( type ){ _sprMain.texture = _jonahTex[type]; } protot.destroy = function(){ this.super.prototype.destroy.call(this, {children: true}); } return itw; }(ITW || Object.create(null)))