Groups | Blog | Home
all groups > flash data integration > october 2005 >

flash data integration : execute var from PHP in FLA


pxit
10/28/2005 11:26:14 AM
Hi guys!

I've made a form from where a user can sign up. Now I want to tjeck in the
MySQL db if the email already exists.

How is this done? I understand I have to to the tjeck in the php file, but how
do I make the php file tell fla what to do or which frame to go to?

Any help is apreciated!
Motion Maker
11/5/2005 4:45:12 PM
PHP would return a variable that your code in AS would evaluate and
determine which frame to go to.

For AS side, if you are using LoadVars, the look at the sendAndLoad method
example.

For PHP you just echo the value(s) based on your PHP success or failure.



Here is a very simple example shoing the data communications to and from
using LoadVars:
http://www.hosfordusa.com/ClickSystems/courses/flash/examples/LoadVars/Ex01/LoadVarsEx01.php

Here is one showing the process of changing the Flash movie:

http://www.hosfordusa.com/ClickSystems/courses/flash/examples/GenerateFlashObjectsFromPHP/Ex01/GenerateFlashObjectsFromPHPEx01_Doc.php


--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
Hi guys!

I've made a form from where a user can sign up. Now I want to tjeck in the
MySQL db if the email already exists.

How is this done? I understand I have to to the tjeck in the php file, but
how
do I make the php file tell fla what to do or which frame to go to?

Any help is apreciated!

AddThis Social Bookmark Button