all groups > flash ad development > september 2005 >
You're in the

flash ad development

group:

Limiting variables passed in getURL


Limiting variables passed in getURL mjpawlowsky
9/20/2005 10:44:45 AM
flash ad development:
Is there a way to limit the variables that get passed into the URL when using
getURL?

Basically I have this:
getURL(_root.clickTAG, "_top", "GET");

that ends up being:

http://www.pricecanada.com/search.asp?clickTAG=http%3A%2F%2Fwww%2Epricecanada%2E
com%2Fsearch%2Easp&myReturnKey=%5Bobject+Object%5D&andor=AND&search=mp3

Even the clickTAG var is being passed! I do need to pass a value coming from
an inputBox in the SWF but that would be it.


Thanks,
Mike

Re: Limiting variables passed in getURL !lurk
10/3/2005 12:24:40 PM
I hate this too. Unfortunately, I don't think there is a way around
this. I haven't tried, but you might be able to get away with calling
geturl() from the movieclip that has all the variables. Of course this
means you'll have to move your input box there as well.

Otherwise, you've got to do it all by hand.

geturl(clickTAG + "?inputbox=" + textbox, "_top");

It's not pretty, but if you don't have a ton of variables, it's not too
tough.
Re: Limiting variables passed in getURL jht1900
10/5/2005 8:36:01 PM
Create an empty movie clip, add the variables you want to pass to it, and issue a getURL on it.
Re: Limiting variables passed in getURL David Stiller
10/12/2005 4:51:52 PM
jht1900,

[quoted text, click to view]

Well said. Alternatively, use the LoadVars class, which requires
instantiation (and therefore a pristine object of its own).


David
stiller (at) quip (dot) net
"Luck is the residue of good design."

Re: Limiting variables passed in getURL stephan.k
10/17/2005 12:00:00 AM
David's suggestion works great. It took me a while to figure it out. Here's
an example...

sendLV = new LoadVars();
sendLV.g = "hello";
sendLV.send("phpfile.php","POST");

Good luck

stephan
AddThis Social Bookmark Button