I'm new to flex, and trying to write some demo applications. Now I have a very newbie question: How to output some log to console(or somewhere else I can see) in a flex application?
In other language, I can use:
System.out.println("mylog");
console.log("mylog");
But I don't know how to do the same in flex.
As mentioned here, you can achieve this by doing
import flash.external.ExternalInterface;
ExternalInterface.call("console.log", "YourString");
You have several options here:
trace()
MiniDebugTarget
)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With