View Full Version : Flash and Passing Variables
ianhull
07-07-2005, 07:40 AM
Hi Guys,
Does anyone here know how to getURL ("http://localhost/myfile.php") and add the text from my instance (thecompany)?
Any help will be greatly appreciated.
Thanks in advance.
Corey
07-07-2005, 07:48 AM
Hi. Sure you can easily do that using the get method, i.e.
getURL("http://www.yoursite.com/yourpage.php?variablename=value");
You can pass as many values as you need like this:
getURL("http://www.yoursite.com/yourpage.php?var1=val1&var2=val2&var3=val3");
Hope that helps. :)
ianhull
07-07-2005, 08:41 AM
Thanks Corey,
Unfortunatly the value is loaded dynamically from php so I do not know what it is going to be.
I need to pass the value of the instance somehow but I am not sure how it is done in actonscript.
Thanks for your help.
Corey
07-07-2005, 09:07 AM
No problem, just use $HTTP_GET_VARS, here's an article for that:
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=500&lngWId=8
:)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.