LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-08-2008, 04:00 PM
vivajimbo vivajimbo is offline
Registered User
 
Join Date: May 2008
Posts: 6
Rep Power: 0
vivajimbo is on a distinguished road
Importing text from php website

'm trying to import text from a php web page into action script. I've looked at some examples
in google, but they don't seem to work. Can anyone tell me what the process is? Here's what
I have so far:
and I get this error:
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables()
at flash.net::URLLoader/onComplete() Attach Code
function getPhp()
{
var request:URLRequest = new URLRequest("http://kgwcreative.com/flashtest.php");
request.method = URLRequestMethod.GET;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, completeHandler);
loader.load(request);

function completeHandler(evt:Event)
{
var username = evt.target.data.phptest;


trace ('PHP TEXT is ' + username);
}
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
add text to a variable in a txt file using php bobcooper Server Side 0 02-08-2008 01:05 PM
Dynamic Text - change text box variable on click kenisswell Flash MX ActionScript 10 11-01-2005 09:20 PM
XML Issue - Text Node Loading as "NULL" aura9 Flash MX ActionScript 10 04-29-2005 06:44 PM
Creting input textfield denizci2000 Flash MX 5 12-15-2004 08:58 PM
Problem importing HTML formatted text eye5 General Flash 1 04-17-2002 05:30 PM




All times are GMT. The time now is 09:04 AM.