Tuesday, January 4, 2011

swfobject




Swfobject can be download from HERE.
(Reference website: http://blog.deconcept.com/swfobject/)
Copy swfobject.js to your working directory, embed swf code as follows:


<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("so_tester.swf", "sotester", "300", "300", "9", "#FF6600");
so.addVariable("flashVarText", "this is passed in via FlashVars for example only"); 
  // ]]>
</script>
My Result:

No comments:

Post a Comment