Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 9:38 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ]  Bookmark and Share
Author Message
 Post subject: FLASH to PHP and BACK
PostPosted: Sun Jun 15, 2008 11:17 pm 
Offline

Joined: Sat Apr 21, 2007 12:03 am
Posts: 31
I cannot get my var to send to php, then return.
The oncomplete listener reports back this for the following:
event.target.data: me=%24me
while eLoader.data.me = $me,
[php]<?php
$me = $_REQUEST["me"];
echo 'me=$me';
?>[/php]
var requestMe:URLRequest = new URLRequest();
var sendMail_lv:URLVariables = new URLVariables();
var eLoader:URLLoader = new URLLoader();
eLoader.addEventListener(Event.COMPLETE, handleResponse);
eLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
requestMe.method = URLRequestMethod.POST;
function launchClick(event:MouseEvent):void {
sendMail_lv.me = "working";
requestMe.url = sendConfirmEmailFile;

requestMe.data = sendMail_lv;
// send the data in the URLRequest to the server
eLoader.load(requestMe);
trace('request = ' + requestMe.data);

}
function handleResponse(event:Event):void {
trace(event.target.data);
senderBody_txt.text = event.target.data;
bubble_mc.confirm_txt.text = eLoader.data.me;}

_________________
best
siege


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley