View Full Version : HOw to get value post from flash MX in asp
SBUH
August 11th, 2003, 04:37 AM
Hello, I want to post variable from flash to asp. I have added on one button the action like
on (release) {
getURL("variable.asp?screenx=_root.scx&screeny=_root.scy",'''_blank");
}
where scx and scy is the position of the textfield on the stage. And I can trace the value of scx and scy without any problem.
Then I have in the asp page for receiving the value
<%
dim xpos,ypos
xpos=Request.querystring("screenx");
ypos=Request.querystring("screeny");
%>
But when I use response.write to show the xpos and ypos, it only show _root.scx and _root.scy but not the values of them.
How should I modify the code then? THanks!
kode
August 11th, 2003, 04:41 AM
getURL("variable.asp?screenx="+_root.scx+"&screeny="+_root.scy, "_blank");
Try that...
Although I'd use the LoadVars object. It's more fun... :P
var lv = new LoadVars();
lv.screenx = _root.scx;
lv.screeny = _root.scy;
lv.send("variable.asp", "_blank", "POST");
And please do NOT crosspost. :-\
SBUH
August 11th, 2003, 05:49 AM
IF using loadVars.
What should I write in asp to receive those variables and save them to database. Thanks!
kode
August 11th, 2003, 06:00 AM
<%
Dim xpos, ypos
Set xpos = Request.Form("screenx");
Set ypos = Request.Form("screeny");
%>
SBUH
August 11th, 2003, 06:05 AM
Thanks and I got it now, but how can I send the variables' values to database(MS SQL 2K) using ASP?
ahmed
August 11th, 2003, 06:14 AM
wow kax, didn't know you're into ASP too.. just another reason to hate you :trout:
kode
August 11th, 2003, 06:25 AM
- SBUH
Usually, I'd learn how to do it and tell you, but this time I'm really busy here. :-\
You could try your luck in the Server-Side forum and/or run a search on google.com (http://www.google.com).
There's also a list of tutorials and resources in the sticky thread in the Server-Side section.
- ahmed
Haha - I'm not. Well, I know a little bit (I repeat, just a little bit) of everything (ASP, ASP.NET, PHP, JavaScript, VB, C++ and Java), but ActionScript is my passion. =)
ahmed
August 11th, 2003, 06:30 AM
wow.. so many reasons to hate kax.. :P
sorry for spamming the thread.. :)
SBUH
August 11th, 2003, 06:37 AM
Many thanks to Kax!
kode
August 11th, 2003, 06:37 AM
You SSAS genious... I hate you more!! :hair:
I've been wanting to learn SSAS, but I have no money to buy my licenses right now... :(
and sorry for spamming up this thread even more.. :whistle:
You're welcome, SBUH. Hope you can figure it out. =)
ahmed
August 11th, 2003, 06:41 AM
lol.. im not an SSAS genius, i just got started :P
The developer license is free, only draw back is that it supports 5 connections only (which is still not bad when you're merely building apps :))
kode
August 11th, 2003, 06:48 AM
I must have missed that part... I did not know that!! :!:
I guess I will get a chance to learn after all. YAY!! =)
gak gak gak
August 11th, 2003, 08:58 PM
SBUH
Do you know how to open the connection and recordset for writing in asp? I can help you tomorrow if you get stuck.
Cheers
SBUH
August 12th, 2003, 01:12 AM
gak gak gak,
Thanks and I know how to connect with database, but not clear with recordset. so, can you tell me more things about that and how to use during saving process?
prstudio
August 12th, 2003, 09:18 AM
www.asp101.com
look under the samples section
SBUH
August 15th, 2003, 06:38 AM
Thank you all !
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.