The basic idea is a call from your Flash App to Javascript and Javascript set the received value to a textarea on the html page. So as you go (play your Flash App), you can see your debug message instantly on the textarea within the same page).
On your page, add a javascript function to set the received string to the textarea. And a form with a textarea in html to display the received string:
function getTextFromFlash(str) {
document.htmlForm.receivedField.value += str + "\n";
}
import flash.external.ExternalInterface;
ExternalInterface.call("getTextFromFlash", "Your message");
0 comments:
Post a Comment