Well, since you're using ASP you can take advantage of the Session
object by storing the input from the flash movie in a session until the
user submits the form.
In your Flash movie you would POST your X,Y variables to an ASP script
which in turn stores them as Session("X") and Session("Y") or however
else you would like to name them. The ASP then returns to Flash a
response so that Flash knows the data was retrieved ok and can display
some sort of success response. I typically just do a
Response.Write("OK") or "NOTOK" or in more complex scripts an actual
error code.
Then on the HTML side your form submits it's data to your form handling
ASP script as normal and the ASP uses the Session("X") and Session("Y")
as normal. If the session vars are empty you could return the user back
to the form with a form incomplete message. Or if everything is ok,
processing the form, empty the session vars.
JOR
___________________________________
=== James O'Reilly
===
=== SynergyMedia, Inc.
=== www.synergymedia.net
Amanda Kuek wrote:
Hello everyone,
This is a question about Flash in an ASP form which communicates with an
MSSQL db. I'm not really sure how to phrase the question, so I'm afraid that
I'll just have to explain the story.
Imagine an ASP page about faulty garments. Let's just say that if you had a
hole in your T-shirt, you could visit this page to report it. The page would
have normal HTML fields for name and email, and it would also have a SWF
with a picture of a T-shirt. The disgruntled hole-y user clicks on the
T-shirt to leave an X representing where the hole is. The form information
(including that of the hole location, in the SWF) is then submitted using a
normal HTML submit button and stored in the MSSQL db.
I spose my question is, is this scenario possible? Is it only possible to
store user-submitted information (in this case, the X,Y coordinates of the
hole) by clicking on a "Send" button WITHIN flash, or is there another way?
I'd like to avoid making a user explicitly submit the SWF information AS
WELL AS the form information.
Any ideas and comments much appreciated,
Thanks muchly,
Amanda.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders