Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-16-2002, 03:47 PM   #1
funkykangaroo
Registered User
 
Join Date: May 2002
Posts: 2
Default Passing Variables from Flash to ASP

Hello,

Help! I am stuck! I have 4 variables in my flash movie that I would like to be passed along to an ASP script. The names of the variables are:

name
emaila
emailb
emailc

Unfortunately, something isn't not working. Can someone who has any expertise in this area please let me know what I should do in

a) the flash file
b) the asp script

so that the asp script simply receives the variables.

Thanks!!!!!
funkykangaroo is offline   Reply With Quote
Old 05-16-2002, 06:54 PM   #2
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

flash:
in order for this code to work here are some parameters.
1.your loadVariables() action is on the main timeline
2.your 4 vars are on the main timeline
(both can be in a mc if you like, but the point is they must be in the same path).
ActionScript Code:
this.loadVariables("myAspfile.asp","POST");
this will take all variables on the same timeline as the loadVariables action and send them to the asp page using 'POST'

asp:

name = request.form("name")
emaila =request.form("emaila")
emailb =request.form("emailb")
emailc =request.form("emailc")

you could also use 'GET' instead of 'POST' in your loadVariables() action, then in asp you would do: name=request.querystring("name")....
good luck.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 05-16-2002, 07:47 PM   #3
funkykangaroo
Registered User
 
Join Date: May 2002
Posts: 2
Talking THANKS

IT WORKED!!

THANK YOU SO MUCH!
funkykangaroo is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing variable to flash from ASP page using POST RichiLloyd ActionScript 1.0 (and below) 5 03-23-2003 05:57 PM
passing variables from Flash to .cfm file / help!! rolan ActionScript 1.0 (and below) 30 08-26-2002 10:31 PM
help! passing variables from flash to flash flyrod Server-Side Scripting 4 12-10-2001 05:59 PM
passing variables from flash through diector to an asp script k9kuma Server-Side Scripting 0 08-22-2001 04:28 PM


All times are GMT. The time now is 04:20 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.