|
-
I have a problem when I send variables. I send variables with GET method to PHP then with JavaScript I store them into Flash. It works OK but only the first time if I reload window it doesn't work. If I close window and open new one it works again but again only for the first time.
Please help. Any ideas will be useful
Thank you
This is what I do:
1.I send variabes with GET:
http://127.0.0.6/coord.php?xdata=100&ydata=100
2.I send them to Flash:
<script language=javascript type="text/javascript">
document.FlashCoord.SetVariable("xdata", <? print "'".$xdata."'"; ?>);
document.FlashCoord.SetVariable("ydata", <? print "'".$ydata."'"; ?>);
</SCRIPT>
This is my flash HTML (object is 'FlashCoord'):
<OBJECT ID='FlashCoord' classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE="coord.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#CCFFFF>
<EMBED NAME='FlashCoord' src="coord.swf" quality=high bgcolor=#CCFFFF
WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" swLiveconnect=true></EMBED>
</OBJECT>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|