0 Replies - 1553 Views - Last Post: 01 October 2012 - 01:45 PM

#1 lalweb  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 07-January 12

FlashVars Not Working

Posted 01 October 2012 - 01:45 PM

 <script type="text/javascript" src="scripts/swfobject.js"></script>
     <script type="text/javascript">
 
 var flashvars = {};
 flashvars.gameId = "test";
 var params = {};
 var attributes = {};

swfobject.embedSWF("Flash/court.swf", "myId", "818", "408", "9.0.115","Flash/expressInstall.swf", flashvars, params, attributes);

 </script>


Inside the body:

<div id="myId"></div>


Here is the Flash:

myTextField.text = root.loaderInfo.parameters["gameId"];


Still comes up empty. Not sure what I'm doing wrong or what I'm not doing. What do you think?

Is This A Good Question/Topic? 0
  • +

Page 1 of 1