Copy link to clipboard
Copied
Hello there,
I am deploying an AIR app with a WebStageView containing some maps.
So far, in order to test JavaScript I need access to logging. window.console.log is not available inside AIR WebStageview.
Any hint how to route console.log to AS trace output?
cheers
1 Correct answer
I managed with this JavaScript:
window.console = {
log:function(s) {
window.location = "trace:" + s;
}
}
}
And intercepting location change in ActionScript, if "trace:" is at the beginning, just route to trace();
In this fashion I can debug both in AIR and in browser.
Copy link to clipboard
Copied
I managed with this JavaScript:
window.console = {
log:function(s) {
window.location = "trace:" + s;
}
}
}
And intercepting location change in ActionScript, if "trace:" is at the beginning, just route to trace();
In this fashion I can debug both in AIR and in browser.
