all groups > flash actionscript > june 2006 >
You're in the

flash actionscript

group:

loadvars problem


loadvars problem josh23gb
6/2/2006 4:25:03 PM
flash actionscript:
Im useing this code to send a variable to an asp page but its not working. My
asp page adds the variable to the sql datbase. Any help would be great this is
my first attempt at this.

Im praballly going about it completely wrong are there any good tutorials
about remoting or adding to sql databases out there?


[CODE]
on (release) {
var mysend:LoadVars = new LoadVars();
mysend.FirstName = _root.Fname.text;
mysend.send("flashadd.asp", "_blank", "POST");
}
[/CODE]
Re: loadvars problem blemmo
6/2/2006 9:48:36 PM
This code should work fine; did you try it in a browser? Testing inside Flash
will always use the GET method, so a movie that uses POST must be tested
outside Flash.

If you are interested in Flash Remoting for .NET, check out this site: <a
target=_blank class=ftalternatingbarlinklarge
href="http://livedocs.macromedia.com/flashremoting/mx/Using_Flash_Remoting_MX/us
ingFRNET.htm">http://livedocs.macromedia.com/flashremoting/mx/Using_Flash_Remoti
ng_MX/usingFRNET.htm</a>.
Flash Remoting is a good way when you're dealing with lots of recordsets and
database stuff. Unfortunately, there's not so much information available, so it
might be a bit hard to get into it, but it's worth the effort though. There's
much more info out there regarding Flash Remoting with php, but it's the same
principle as with .NET, so these tutorials should be useful for other languages
besides php. Good sites are www.sephiroth.it, www.flash-db.com, and
www.amfphp.org. There are also examples on flashkit.com, I think.
A free Flash Remoting framework for .NET is available here: <a target=_blank
class=ftalternatingbarlinklarge
href="http://fluorine.thesilentgroup.com/fluorine/index.html">http://fluorine.th
esilentgroup.com/fluorine/index.html</a>.

greets,
blemmo
Re: loadvars problem Motion Maker
6/3/2006 11:21:08 AM
If you are sending data and not opening another page you should look at
sendAndLoad so you have a response to look at for success and failure.

--
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
[quoted text, click to view]
This code should work fine; did you try it in a browser? Testing inside
Flash
will always use the GET method, so a movie that uses POST must be tested
outside Flash.

If you are interested in Flash Remoting for .NET, check out this site: <a
target=_blank class=ftalternatingbarlinklarge
href="http://livedocs.macromedia.com/flashremoting/mx/Using_Flash_Remoting_MX/us
ingFRNET.htm">http://livedocs.macromedia.com/flashremoting/mx/Using_Flash_Remoti
ng_MX/usingFRNET.htm</a>.
Flash Remoting is a good way when you're dealing with lots of recordsets
and
database stuff. Unfortunately, there's not so much information available, so
it
might be a bit hard to get into it, but it's worth the effort though.
There's
much more info out there regarding Flash Remoting with php, but it's the
same
principle as with .NET, so these tutorials should be useful for other
languages
besides php. Good sites are www.sephiroth.it, www.flash-db.com, and
www.amfphp.org. There are also examples on flashkit.com, I think.
A free Flash Remoting framework for .NET is available here: <a
target=_blank
class=ftalternatingbarlinklarge
href="http://fluorine.thesilentgroup.com/fluorine/index.html">http://fluorine.th
esilentgroup.com/fluorine/index.html</a>.

greets,
blemmo

AddThis Social Bookmark Button