A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Sending variables - Please help!

  1. #1
    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="clsid27CDB6E-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>

  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    189

    try

    try posting this is the flash 5 actionscripting forum.

  3. #3

    Smile I just fixed the problem

    When I made flash movie in two frames the problem was solved I still dont know what cause the problem and how two frames help to solve it but any way I am happy that it is solved)))))))))))))))))))))

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center