2 Replies Latest reply on Mar 19, 2008 5:14 AM by MughalShahzad

    Passing Values

    MughalShahzad Level 1
      As we send varable values from flash to director file can we send the from vb.net to director file if yes then how

      Very best regards
      shahzad
        • 1. Re: Passing Values
          Lukewig Level 1
          Hi,

          Typically you would use NetLingo to have shockwave send and receive data like this

          -- Lingo
          postNetText("/someurl.aspx" , ["job":"GiveMeSomeData")

          Your vb.net then would print out whatever data in response. See http://www.lingoworkshop.com/Articles/GET_and_POST.php (Down the bottom is a C# example that might get you started).

          The tricky thing about the NetLingo commands (such as postNetText and GetNetText) is that they are asynchronous - meaning that you start the operation then have to wait for it to finish.
          • 2. Passing Values
            MughalShahzad Level 1
            postNetText & getNetText are work inside the director. I am sending value from VB.NET to director like
            Response.Redirect("Default3.aspx/?pStatus=1")

            and getting in lingo like

            ON PREPAREMOVIE ME
            theNetID = getNetText(" http://localhost:1606/WebSite1/Default3.aspx/?pStatus=1")
            if theNetID<>1 then
            quit
            end if
            END PREPAREMOVIE

            its not woring with vb
            but if I publish director file for web with .dcr file and I open the .html file director file responds correctly.
            what should I do so that it start working with vb may be I am not passing correct url to director file anyway please solv my query

            Regards

            Shahzad