[thelist] Flash ActionScript dilema

Jeff Lucido jlucido at version4.com
Mon Aug 26 17:17:01 CDT 2002


Steve:

Oops, I forgot to mention that we are making this HTTP call to another
server, we do not care what the server responds with. We simply want the
Flash movie to make the call without "disrupting" the current page the
SWF is being called within (or launch another window for that matter).

Thanks for your help!
-JSLucido

-----Original Message-----
From: Steve Webster [mailto:steve at netbreed.co.uk]
Sent: Monday, August 26, 2002 4:30 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Flash ActionScript dilema


Hi Jeff,

Since you're using Flash MX, try this...


myLoader = new LoadVars();

myLoader.onLoad = function() {
  // This will be called when the CGI has finished
};

myLoader.sendAndLoad("/path/to/your.cgi", myLoader, "POST");


You can use the onLoad even handler set above to perform some action
when the CGI script has finished. Note that for this handler to be
invoked you need to return at least some information from your CGI
script.

I hope this helps!

Regards,

Steve

================================
 Steve Webster
 Freelance Web Developer
 steve at codejunkie.co.uk

 PHP, MySQL, Flash, Perl + more
 http://www.codejunkie.co.uk
================================

----- Original Message -----
From: "Jeff Lucido" <jlucido at version4.com>
To: <thelist at lists.evolt.org>
Sent: Monday, August 26, 2002 10:18 PM
Subject: [thelist] Flash ActionScript dilema


> For the Flash Guru's out there:
>
> I need to make an http call, but I don't want to go anywhere or open a

> new window.  This is how it works.
>
> We have a current process triggered by an anchor tag that points to a
> URL with a cgi call to perform a specific task.  The target of the
> anchor tag is set to a 1 pixel frame, therefore the user never leaves
> the screen yet the cgi performs its task.  I want to perform the same
> function sans the frame from a Flash movie.  All I need to do is make
> a http call and that is it. Currently we are using the getURL()
> function and it works except it opens another window with no document
> (but the CGI action works).
>
> I am using Flash MX on a Windows 2000 server.
>
> Let me know if any of this makes no sense or if you happen to have the

> answer.
>
> Thanks for your help!
> -JSLucido
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to: http://lists.evolt.org

> Workers of the Web, evolt !
>


--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !



More information about the thelist mailing list