Last active
January 3, 2016 19:59
-
-
Save girasquid/8512113 to your computer and use it in GitHub Desktop.
AS3 logging helper
This file contains 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
// util/log.as | |
package util { | |
import flash.system.Security; | |
import flash.external.ExternalInterface; | |
public function log(message:String):void { | |
flash.system.Security.allowDomain('*'); | |
flash.system.Security.allowInsecureDomain('*'); | |
ExternalInterface.call('console.log', message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment