FlappMovieClip の再帰処理を実装

  • ControlTagsList から doaction を分離して ActionTagsList を作成。
  • MovieClip の再帰処理と簡単な Action 処理を実装。
        control: function(dict) {
            if (this.totalframes === 0) { // imcomplete
                return false;
            }
            console.debug("FlappMovieClip::control");
            if (this.framesLoaderd < this.totalframes) { // imcomplete
                if (this.currentFrame < this.framesLoaderd) {
                    return false; // idle
                }
            }
            for (var mc in this.childMovieClips) {
                this.childMovieClips[mc].control(dict);
            }
            if (this.playing) {
                this.controlThis(dict);
            }
            return true;
        },
        controlThis: function(dict) {
            console.debug("FlappMovieClip::controlThis");