Jump to content

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!";
}
}

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.