GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   flash/php interaction (https://gfy.com/showthread.php?t=845815)

camgirlshide 08-04-2008 06:41 PM

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?

2012 08-04-2008 06:51 PM

Quote:

Originally Posted by camgirlshide (Post 14561257)
var request:URLRequest = new URLRequest("test.php");
var vars:URLVariables = new URLVariables();
var loader:URLLoader = new URLLoader();
request.data = vars;
loader.load(request);

var request:URLRequest = new URLRequest("test.php");
var vars:URLVariables = new URLVariables();
var loader:URLLoader = new URLLoader();
request.data = vars;
loader.load(request);
getURL("hi.php")

camgirlshide 08-04-2008 06:58 PM

I need the variables to be passed to the php script too - won't that just load hi.php without passing it any variables?

2012 08-04-2008 07:02 PM

Quote:

Originally Posted by camgirlshide (Post 14561410)
I need the variables to be passed to the php script too - won't that just load hi.php without passing it any variables?

yes.
(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

camgirlshide 08-04-2008 07:05 PM

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.

2012 08-04-2008 07:06 PM

Quote:

Originally Posted by camgirlshide (Post 14561449)
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.

actionscript is like sillypuddy ... you can real creative:thumbsup

camgirlshide 08-04-2008 07:39 PM

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

2012 08-04-2008 07:53 PM

Quote:

Originally Posted by camgirlshide (Post 14561673)
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

flex 3 eh? sweet, I'll have to check that out someday when I give a fuck.
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