Flasher Archive

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


Subject: Re: FLASH: sending/receiving variables (repost)
From: Robert Bleeker
Date: Fri, 2 Jun 2000 03:50:22 +0100

HI OLGA,

You could do this:

1st frame:
Load Variables ("blah....)
Set Variable "returnVar"=""
play

2nd frame:
name the Label: "returnLoop"

3rd frame:
If ( Length(returnVar)=0)
Go to play "returnLoop"
Else
Comment: "what ever you want to do when variable received"
End If

The return variable needs time to come back from the server, so set up a
short loop while waiting for the variable to return before you do with it
what you want.
If you use a separate MC to to this trick the main timeline could still
animate as normal.

Robert

Robert Bleeker
CADRE design
http://www.cadre.com.au
+61-2-96859889

-+-



on 2/6/00 12:14 PM, Olga at olgaattwitchy [dot] com wrote:

> This is a repost.. sorry, I'm trying to get this project done (finally!)
> today, and this is one of two last problems I'm encountering.. please, help!
>
> I have some questions and I'm hoping someone can help... I need to send and
> receive variables to a CGI script for a form-- I send the contents of the
> fields, and then the CGI returns a variable that says the submission was
> successful. I have no problem sending the variables (Using Load Variables,
> vars=post) but that action doesn't seem to simultaneously receive the return
> variables from the CGI script. If I send variables using Get URL, the
> browser redirects to the CGI url and I can see the correct variables being
> returned (submission=successful) -- but I don't want Flash to redirect to
> another page, and the get URL method doesn't seem to retrieve any variables
> for Flash's use.
>
> I tried putting in two Load Variables actions (one sending vars, one
> without, on the same CGI url) but that doesn't seem to work. Could anyone
> enlighten me as to how this works and what I'm doing wrong?
>
> thanks!
> olga


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
World Animation Celebration - Big Internet Animation Pow Wow Discount Offer

Register before May 25 mention flasher and save 25%!! www.wacfest.com

Be discovered, get a job or have your web series picked up. A big talent search for Shockwave
and Flash animators is happening May 30-June 4 in Hollywood. Featuring Rob Burgess, Matt
Groening, Brad Bird and more. www.wacfest.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: sending/receiving variables (repo, Olga

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