Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help Please ON FLASH - PHP - MYSQL

Status
Not open for further replies.

esurge

Programmer
Jun 15, 2004
8
NL
Hello all

I have use PHP Object to allow Flash to obtain information from a MYSQL database. No problem, It all works very well.

The problem I am having is "how do i get flas to recall a image LOCATION from flah. I do not wish to store a image in flash rather redirect it to a folder.

Here is the code recalling text.

+++++++++++++++++++++
#include "PHPObject.as"
tmp = new PHPObject();
tmp.setDefaultGatewayKey("secret");
// CHANGE THIS TO
// WHATEVER SECRET KEY YOU SET IN Gateway.php
tmp.setDefaultGatewayUrl("// CHANGE THIS
// TO WHERE YOU PLACE Gateway.php
delete tmp;
myFoo = new PHPObject("cards");
// declare a new object and link it to a remote PHP class
// set up responder
myFoo.getcard_onResult = function(result) {
id.text = result[0];
id1.text = result[1];
image.text = result[2];
};
// invoke method
myFoo.getcard("1");
++++++++++++++++


can any one help please or point me in the right direction
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top