OSDN Git Service

add ActionGotoLabel
authorYoshihiro Yamazaki <yoya@awm.jp>
Sun, 2 Dec 2012 18:49:50 +0000 (03:49 +0900)
committerYoshihiro Yamazaki <yoya@awm.jp>
Sun, 2 Dec 2012 18:49:50 +0000 (03:49 +0900)
action.js

index 0a1fff3..78bc9cf 100644 (file)
--- a/action.js
+++ b/action.js
@@ -20,6 +20,9 @@
                case 0x1d: // SetVariables
                    movieClip.setVariable(stack.pop(), stack.pop());
                    break;
+               default:
+                   console.debug("FlappActiom: not implemented yet. code=0x%02x", code);
+                   break;
                }
            } else {
                var actionLength = actionsBit.input(tag.actions);
                case 0x83: // GetURL
                    // 
                    break;
+               case 0x8c: // GoToLabel
+                   movieClip.gotoLabel(actionsBit.strN(actionLength));
+                   break;
+               //case 0x96: // Push
+               default:
+                   console.debug("FlappActiom: not implemented yet. code=0x%02x", code);
+                   break;
                }
                actionsBit.setPos(nextActionOffset, 0);
            }