PDA

View Full Version : Flash expertise needed!


Yonderboy
04-29-2002, 10:30 AM
Need some Flash expertise here! We're trying to get a script running (a CGI file on our server) whenever a button is clicked in a Flash module. This is basically to track how many times the button is clicked. We've written the external script, and currently for testing it, what we do is use a getURL call to load the CGI file which has the script in it. This calls the script perfectly, but obviously pops up a browser window in which to load the URL. We don't want the window popping up, nor do we want this to show up - it should be totally non-invasive as far as the user is concerned.
*
Is there a way in which we can call an external file (an HTML or CGI file) whenever a flash button is clicked, in such a way that the user sees nothing? We've been busting our brains here, but there doesn't seem to be anything we can figure out :(

your help would be very much appreciated

jimburton
04-29-2002, 06:02 PM
yes, use loadvariables(url,method); - that calls up the url silently and attempts to load any variables available in it - if the script at the url start off with your cgi and the only output is something like

&ranScript=true&

then you're cooking with gas. The method attribute is optional - supply it (GET|POST) and all the variables from the main timeline are sent with the request and you can use them in your script.

Yonderboy
04-30-2002, 09:45 AM
thanks alot for your help :)