Groups | Blog | Home
all groups > flash actionscript > june 2006 >

flash actionscript : getURL without opening a browser?


DMennenoh **AdobeCommunityExpert**
6/3/2006 6:40:08 PM
If you want to use getURL for this, target a hidden iFrame. This is how I've
handled click tracking when LoadVars didn't work.

--
Dave -
Adobe Community Expert
www.blurredistinction.com
http://www.adobe.com/communities/experts/

torchsquid7
6/3/2006 9:19:25 PM
:D
Hi
I have a Flash Pro 8 application that uses getURL to send a string back to a
web server that the server stores in a database
for tracking purposes. It's working but it opens a browser window each time -
i don't want that - i just want to send the string - the browser opening is
extraneous and interrupts the flash...how can i use getURL just to send with a
browser opening..or do I need to use another method?

As always, I'm working the weekend and need this done by tomorrow sunday...

Cheers,
Rob.
torchsquid7
6/3/2006 10:07:27 PM
I tried to use the loadvars class and send but couldn't get it to work.

getURL ("<a target=_blank class=ftalternatingbarlinklarge
href="http://192.168.2.12:8080/4DAction/iTMS_reg.4dp?Job=iTMS&ID=5&Ses=010101010
101&Loc=0","_self");


is">http://192.168.2.12:8080/4DAction/iTMS_reg.4dp?Job=iTMS&ID=5&Ses=01010101010
1&Loc=0","_self");

is</a> the getURL command that works. It works when I type it into a browser
window directly. My server gets and records the hit.

If you could show me the code that splits my string above into the proper
target URL and variables I'd really appreciate it. I tried several variations
but none worked.

Cheers,
Rob.
John Doe
6/3/2006 11:34:21 PM
use the LoadVars class, send() method

[quoted text, click to view]
torchsquid7
6/4/2006 1:16:32 AM
Hi,

Got loadvars to work --- courtesy of blemmo's help.
I'll keep your hidden iFrame idea in mind for future apps.

Thanks for your help.
Cheers,
AddThis Social Bookmark Button