
Welcome Guest
|
#1
|
|||
|
|||
|
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); } |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |





