Posted By

arpo on 05/25/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

ballen205


Sending data to flash with swfobjects


 / Published in: ActionScript 3
 

  1. <script src="swfobject.js" type="text/javascript"></script>
  2. <div id="content">Flash fallback</div>
  3. <script language="Javascript" type="text/javascript">
  4. //<![CDATA[
  5. var so = new SWFObject("ImageFader.swf", "hostFlash", "406", "364", "9.0.115.0", "#f5f5f5");
  6. so.addParam("scale", "noscale");
  7. so.addParam("allowFullScreen", "true");
  8. so.addVariable("img1", "img1.jpg");
  9. so.write("content");
  10. //]]>
  11. </script>
  12.  
  13.  
  14. //In the flash
  15. var img1:String = root.loaderInfo.parameters.startWith;

Report this snippet  

You need to login to post a comment.