};
FlappMovieClip.prototype = {
- clearControlTags: function(controlTag) {
+ clearControlTags: function() {
this.controlTagsList = [[]]; //
this.actionTagsList = [[]];
this.labelMap = {}; // label => frameNum
return false;
}
console.debug("FlappMovieClip::control");
- if (this.framesLoaderd < this.totalframes) { // imcomplete
- if (this.currentFrame < this.framesLoaderd) {
+ if (this.framesLoaded < this.totalframes) { // imcomplete
+ if (this.currentFrame < this.framesLoaded) {
return false; // idle
}
}
defineTag.name = name;
this.childMovieClips_seqnum++;
}
- var obj = FlappMovieClip(this, name, tag.matrix, tag.colorTransform);
+ obj = new FlappMovieClip(this, name, tag.matrix, tag.colorTransform);
obj.setControlTags(defineTag.controlTags);
this.addChildMovieClip(name, obj);
} else if (defineTag.code === 2) { // DefineShape
- var obj = new FlappShape(name, tag.matrix, tag.colorTransform);
+ obj = new FlappShape(name, tag.matrix, tag.colorTransform);
console.log(obj);
obj.loadShapeTag(defineTag);
}