/ Published in: ActionScript 3

In order to read a div from your html document, first you to add the ‘allowScriptAccess’ in the flash injection (like swfobject) to sameDomain some thing like : so.addParam(’allowScriptAccess’,’sameDomain’);
Expand |
Embed | Plain Text
import flash.external.ExternalInterface; var myDivContent = ExternalInterface.call("function(){ return document.GetElementById('YourHTMLDiv');}");
You need to login to post a comment.