Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > AIR (Apollo)

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-24-2007, 09:13 PM   #1
Elias_Maluco
Registered User
 
Join Date: May 2005
Posts: 38
Default Sending variables through POST in Air

Hi all. I have an apllication I was building in AS3 and I decided to port it to Air.

Well, the problem is: it connects to a php script sending some parameters through POST In the browser, this is working perfectlly. But when I compile it as an Air application, it dont. The application does connects to the php script, but the script is not receiving any of the POST parameters.

That means I cant use POST unless Im running the swf from a brownser?
Elias_Maluco is offline   Reply With Quote
Old 10-25-2007, 10:32 AM   #2
panel
AS3
 
panel's Avatar
 
Join Date: Mar 2007
Location: Warsaw
Posts: 1,761
Send a message via Skype™ to panel
Default

Are you sending like this? (this works for me)

ActionScript Code:
var urlVariables:URLVariables = new URLVariables(); urlVariables.score = "256"; urlVariables.name = "Igor"                         var urlRequest:URLRequest = new URLRequest("http://www.actionscript.org/send.php"); urlRequest.method = URLRequestMethod.POST; urlRequest.data = urlVariables; sendToURL(urlRequest);
panel is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing variables to movie loaded with loadmovie() via POST twicerisen ActionScript 2.0 5 02-22-2006 07:23 PM
limitation in length for sending variables? betamakz ActionScript 1.0 (and below) 21 07-22-2004 02:15 PM
problem with sending variables mihasik78 ActionScript 1.0 (and below) 1 06-11-2004 09:12 AM
Sending only local variables with loadVariables zymsys Server-Side Scripting 12 04-20-2004 09:00 AM
sending variables locally? alpineedge3 Server-Side Scripting 2 03-27-2004 01:59 AM


All times are GMT. The time now is 06:21 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.