Posted By

arpo on 04/08/09


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

burnandbass
ballen205
jondiscipulo


Reading a div from dom in actionscript 3


 / 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’);

  1. import flash.external.ExternalInterface;
  2.  
  3. var myDivContent = ExternalInterface.call("function(){ return document.GetElementById('YourHTMLDiv');}");

Report this snippet  

You need to login to post a comment.