2 Replies Latest reply on Jun 3, 2006 8:21 AM by Newsgroup_User

    loadvars problem

    josh23gb
      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]
        • 1. Re: loadvars problem
          blemmo Level 1
          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: http://livedocs.macromedia.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET.htm.
          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: http://fluorine.thesilentgroup.com/fluorine/index.html.

          greets,
          blemmo
          • 2. Re: loadvars problem
            Level 7
            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!
            "blemmo" <webforumsuser@macromedia.com> wrote in message
            news:e5qbnk$spp$1@forums.macromedia.com...
            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