Jump to content

MySQL Database Access (Flash)


Recommended Posts

  • 2 weeks later...

To my knowledge from my small amount of flash..ing, you need to parse a RSS or XML page, but I could be wrong.  I made a newsreader of sorts to show recent news from my site that would put the results, formatted, into a scrollbox that was inside a frame that looked like my site's layout.  I haven't done much flash so I could be incorrect, but that's what worked for me.  So what you should do is make a php page that outputs an xml doc (header: text/xml, I believe) and format it like a xml doc, and have the flash script parse that.  It's not as hard as it would seem, really, try it out.

  • 2 months later...

Here you go champ

public function postData() {
if(titleTxt.text != "" && descriptionTxt.text != "") {
	//Setup the Request and method (POST)
	var myData:URLRequest = new URLRequest("addEvent.php");
	myData.method = URLRequestMethod.POST;

	//Set up the POST variables
	var variables:URLVariables = new URLVariables();
	variables.title = titleTxt.text;
	variables.description = descriptionTxt.text;

	//Set the variables to the request
	myData.data = variables;

	var loader:URLLoader = new URLLoader();
	loader.dataFormat = URLLoaderDataFormat.TEXT;
	loader.load(myData);
} else {
	statusLabel.text = "Must enter Title and Description!";
}
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.