Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Flash 4.0 and database connections
From: Matt Walter
Date: Tue, 22 Jun 1999 22:00:53 +0100

Very cool. What's the syntax for pulling it from the URL generated by a
server side script?

+Matt

----- Original Message -----
From: Robert Koberg <rkobergatonepoint0 [dot] com>
To: <flasheratshocker [dot] com>
Sent: Tuesday, June 22, 1999 2:20 PM
Subject: Re: FLASH: Flash 4.0 and database connections


> I have just had a chance to try out some new flash 4 features which forces
> me to ask some questions.
>
> background: I am trying to do a Flash-->to ASP (access DB) --> back to
Flash
> piece. It is a simple login where you enter a username and password. The
> ASP check the database to see if the user and pword exist together
>
> The username field's variable name is nname. The password field's name is
> pword. The user would enter their info (rob, rob for both) and hit a
> button.
>
> the button's script looks like (is there any way to copy the contents of
the
> script window???):
>
> on (release)
> set variable: "nname" = nname
> set variable: "pword" = pword
> loadVariables: ("http://209.233.20.147/testweb/toTheDB_flash.asp"
> ,1, vars=POST)
> Go To and Play(10)
> end on
>
> The ASP:
> (see the end of the note for the source to the ASP) It returns (in plain
> text) just:
> result="?whatever?"
>
> Back in the flash movie, on Frame 10, I have a text field with the
variable
> name: result.
>
> It would be my understanding that when the query gets returned the
returned
> text value of the result textfield will get displayed.
>
> One problem I am having, which shows itself during testing mode says:
>
> Error opening URL "http://209.233.20.147/testweb/toTheDB_flash.asp": only
> local files supported in Test Movie
>
> I have tried using a relative path (just "toTheDB_flash.asp") where the
ASP
> was in the same directory as the .swf and it's html file. I can't author
> from that directory, however.
> -----
> What does local mean?
> Does it have to be in the same directory? - which means working out of the
> same directory where the cgi (ASP in my case) is located
>
> Anyway, my piece does not work. I will put the .fla file on the server
for
> you to check out if you are so inclined. It is at:
> http://209.233.20.147/testweb/logon.fla
>
> ----------------THE ASP--------------
> <%@ Language=VBScript %>
> <!-- #include file="Adovbs.inc" -->
> <%
>
> theNickName = Request.Form("nName")
> thePassword = Request.Form("pWord")
>
> cs = Application("cs_ConnectionString")
>
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> 'see if they are legit by nickname
> strSQL = "SELECT [nName] FROM chatter WHERE [nName] = '" & theNickName &
"'"
> Set rs = Server.CreateObject("ADODB.Recordset")
> rs.Open strSQL, cs, , , adCmdText
> '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> 'if the user name does not exist
> If rs.BOF AND rs.EOF Then
> response.write("result=noNickname")
> Else
> strSQL2 = "SELECT [pWord] FROM chatter WHERE [pWord] = '" & thePassword &
> "'"
> Set rs2 = Server.CreateObject("ADODB.Recordset")
> rs2.Open strSQL2, cs, , , adCmdText
> If rs2.BOF AND rs2.EOF Then
> Response.Write("result=noPassword")
> Else
> Response.write("result=yesboth")
> End if
> End If
> %>
>
>
>
>
> ------------------------------------------------------------------------
> To UNSUBSCRIBE send: unsubscribe flasher in the body of an
> email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
> N.B. Email address must be the same as the one you used to subscribe.
> For info on digest mode send: info flasher to list-manageratshocker [dot] com
>
>


------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: FLASH: Flash 4.0 and database connec, Robert Koberg

Replies
  RE: FLASH: Flash 4.0 and database connec, Mike S. Krischker
  Re: FLASH: Flash 4.0 and database connec, Robert Koberg

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]