OSDN Git Service

root 用の FlappMovieClip で引数を明示的に指定した
authorYoshihiro Yamazaki <yoya@awm.jp>
Tue, 4 Dec 2012 12:15:34 +0000 (21:15 +0900)
committerYoshihiro Yamazaki <yoya@awm.jp>
Tue, 4 Dec 2012 12:15:34 +0000 (21:15 +0900)
src/main.js

index 6f750a0..8ec9beb 100644 (file)
@@ -25,7 +25,7 @@ Flapp.prototype = {
         var flapp = this;
         var loader = new FlappLoader(flapp); // file loader
         this.dict = new FlappDict(); // content dictionary
-        this.movieClip = new FlappMovieClip(); // root MC
+        this.movieClip = new FlappMovieClip("_root", null, null, null); // root MC
         loader.fromURL(this.url, this.dict, this.movieClip);
         this.canvas = new FlappCanvas(this.canvas);
         this.run(this.dict, this.movieClip, this.canvas);