Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: how to avoid posting all variables to a cgi
From: Damien Morton
Date: Mon, 25 Sep 2000 02:40:41 +0100

I think the best way to do this is to have a 'sender' movieclip. You
duplicate this movieclip, put the variables you want into it, and then have
it send the variables and possibly also recieve the results.

I usually have my server side stuff add a 'dataloaded=1' variable at the end
of all the other variables its returning. This tells flash when the load
variables has completed.

I also have a notfication function, which is a variable holding the target
path to a call script to be called when the load has finished. e.g.
notification="/a/b/c:dosomething"

Sender Clip
Frame 1 - nothing - (gives us a chance to put variables in the movieclip)
Frame 2 - load movie + send variables
Frame 3 - if dataloaded=1 then call notification; stop; endif
Frame 4 - goto and play frame 3


In Flash 5, the other way to do this is to use "sendAndLoad" to send XML to
the server and get results back. Its not the same as the normal cgi-like
protocol, but probably closer to what you are looking for.

> -----Original Message-----
> From: Gangmeng Ji [g [dot] jiatmeu [dot] unimelb [dot] edu [dot] au (mailto:g [dot] jiatmeu [dot] unimelb [dot] edu [dot] au)]
> Sent: Sunday, September 24, 2000 8:43 PM
> To: flasheratchinwag [dot] com; FLASHmacromediaategroups [dot] com
> Subject: FLASH: how to avoid posting all variables to a cgi
>
>
> Hi all,
>
> I am trying to use Flash to post forms data to a cgi
> application. What I
> have found is annoying. All variables (so called variables in Flash
> terminology) are posted to the server including every
> possible variables in
> the processing scripts. My question is "is it possible to
> post variables
> selectively?"
>
> I just bought Flash 5 hoping this version could solve this
> problem. No, it
> doesn't. I could use "object" to wrap variables and local
> variables only to
> solve this problem partially. All functions and objects are in
> fact variables. They are all posted unless they are deleted
> before the
> posting happens.
>
> I am pretty much new to Flash. Have I missed something? Any
> help would be
> appreciated.
>
>
> By the way, I have to use "post" method since the amount of
> data posted
> can be big and I need some security although "get" method
> allows me to send
> variables selectively.
>
> Thanks in advance.
>
> Gangmeng
> The University of Melbourne
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> NudeGuru.com is proud to sponsor the Flasher list
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> IT'S THE ART OF MONEY, HONEY!
> Tips and Advice from some of the most popular Flash
> artists + industry power-brokers on how to hold onto
> your rights, negotiate contracts and get full value
> for your work.http://www.nudeguru.com from Franke James
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]