LoginSignup
3
3

More than 5 years have passed since last update.

FlashDevelop 4.1.0 のコールコマンドサンプル

Posted at

FlashDevelop4.1.0 RTM から導入された FlashConnect による CallCommand の例です。

test.as
FlashConnect.send(createCommandNode("Browse", "http://blog.bk-zen.com"));

private static function createCommandNode(command: String, ...args): XMLNode
{
    var msgNode: XMLNode = new XMLNode(1, null);
    var txtNode: XMLNode = new XMLNode(3, encodeURI(args.length == 0 ? "" : "" + args));
    msgNode.attributes.command = command;
    msgNode.attributes.cmd = "call";
    msgNode.nodeName = "message";
    msgNode.appendChild(txtNode);
    return msgNode;
}

詳しくはこちら
馬鹿全 - FlashDevelop 4.1.0 RTM リリース

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3