This content has been marked as final. Show 4 replies
use the LoadVars class, send() method
> 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...
I tried to use the loadvars class and send but couldn't get it to work.
getURL (" http://192.168.2.12:8080/4DAction/iTMS_reg.4dp?Job=iTMS&ID=5&Ses=010101010101&Loc=0","_sel f");
is 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.
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.
Adobe Community Expert
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.