Jump to content
xisto Community
rigueira

Flash With Php

Recommended Posts

Yes it is. Flash has a function called loadvariables which can get and send data from a webpage (such as a php page).

Syntax is:

loadVariables ( " url " , level/ " target "   [ ,   variables  ])
The url is the url of the php file, the target is what symbol will be receiving the variables, and variables is an optional parameter if you want to send data.

For example if you wanted to send a username and password to the php page "login.php" you would use this code:
loadVariables("login.php","_root","username="+username+"&password="+password);
and on login.php have it output success=true if the login was valid and success=false if the login was invalid, then you can have flash access that info through the variable "_root.success"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.