![]() |
flash/php interaction
I am sending data from a flash program to a php script on a button push as follows:
var request:URLRequest = new URLRequest("test.php"); var vars:URLVariables = new URLVariables(); var loader:URLLoader = new URLLoader(); request.data = vars; loader.load(request); I would like to keep doing this, but I want the browser pointed to the php script instead of the page with the flash script after the button push. Can anyone help me out? |
Quote:
var vars:URLVariables = new URLVariables(); var loader:URLLoader = new URLLoader(); request.data = vars; loader.load(request); getURL("hi.php") |
I need the variables to be passed to the php script too - won't that just load hi.php without passing it any variables?
|
Quote:
(hi.php?var1=somevar&var2=somevar) I guess the trick in your case would be getting var1, var2 etc in there ? hit me up I'll help you out if you want |
not exactly - there is some binary picture data that can't be passed via the url. Maybe I should just stuff it in a mysql database and then pass an index to pull it back out on the subsequent page load.
|
Quote:
|
ok - figured it out
replaced: loader.load(request); with: navigateToURL(request, "_self"); this was flex 3 - getURL is not supported anymore Thanks for the help |
Quote:
glad you got it working homie:thumbsup |
| All times are GMT -7. The time now is 04:38 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123