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
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