You are here: Re: talking between flash and php « PHP Programming Language « IT news, forums, messages
Re: talking between flash and php

Posted by usenet on 11/24/94 11:28

On Tue, 4 Oct 2005 13:05:20 +1300, "windandwaves" <winandwaves@coldmail.com>
wrote:
>I have a flash file that I want to execute a short action script and then
>load a PHP file in the its own window, while posting some of the variables
>to this new script:
>
>e.g.
>A
>B
>C
>//below is where I get stuck
>post variables:
> x = 1;
> y = 2;
>open new url = 'test.php' with post variables
>//end
>
>in test.php I then want to be able to show those variables as follows:
>
><?php
> echo $_POST["x"];
> echo $_POST["y"];
>?>
>
>I have the ABC, but I need the correct syntax for the last few lines in
>flash.

If you're sending the values with no regard for server response, you can append
the values to the URL in Flash using GET syntax:
www.site.com/page.php?x=1&y=2

If you need bidirectional communication, look into the Flash LoadVars and
LoadVariables objects.
http://www.actionscripts.org/tutorials/beginner/loadVariables_and_loadVars/

HTH.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация