Created
March 5, 2013 01:02
-
-
Save nus/5087163 to your computer and use it in GitHub Desktop.
ブラウザのcosole.logを利用してFlashから出力。メソッド名Log.iはAndroidのLogパッケージに影響された。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package { | |
import flash.external.ExternalInterface; | |
public class Log { | |
public static function i(obj:Object):void { | |
if(ExternalInterface.available) ExternalInterface.call("console.log", obj); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment