Ask a Question related to Macromedia Director Lingo, Design and Development.
-
Sorre webforumsuser@macromedia.com #1
New to Director! Help with Highscore saving on server.
Hi to everyone out there
I'm kind of new to Director lingo and I've been searching the web since 2 days and I figured why not join a forum maybe they can help me. This is my problem:
I designed a Game in Director and it works great, at the end of the game you get a score. Now I would reeeeeally like to have the user Type in his name and telephone Number and this should be stored online on my webserver (the score, name and number). I have webspace wich can handle perl and cgi scripts but I don't know how to write those Does anyone know or have an idea how to solve my problem ? That would be like Christmas and Birthday at the same time
Thanks Guys
bye
Does anyone recommend a book for director and "databases" or such ?
Sorre webforumsuser@macromedia.com Guest
-
Saving for Previous Versions of Director
I have only done it once before, and now have gone crazy. Does anyone know how to save a Director MX movie for Director 8 or previous versions.... -
Saving w3d castmembers with Lingo BUT now with Director MX!
Dear Group, I am currently working on a master thesis project called 'Developemt of a 3D configurator based on Macromedia Director Shockwave3D... -
game highscore table problems
Hi I've created a game that keeps a highscore table, this is just a text file on the server. I'm using asp to write to the text file. This works... -
Saving 3D cast member from director
I'm working on a app that will let the user build layouts by cloning various models into a 3d world. I need to be able to save the various new... -
Saving a Director 8.5 project as Director 8.0
I think you should tell them to sort their act out! Installing the latest shockwave plugin is a task for the IT department? Not much of an IT... -
Robert Tweed #2
Re: New to Director! Help with Highscore saving on server.
"Sorre" <webforumsuser@macromedia.com> wrote in message
news:bqcaq6$fv3$1@forums.macromedia.com...[url]http://www.shocknet.org.uk/[/url]>
> I designed a Game in Director and it works great, at the end of the game
> you get a score. Now I would reeeeeally like to have the user Type in his
> name and telephone Number and this should be stored online on my webserver
- Robert
Robert Tweed Guest
-
Sorre webforumsuser@macromedia.com #3
Re: New to Director! Help with Highscore saving on server.
Hey Thx Robert :) That's everything I was looking for :)
bye
Sorre webforumsuser@macromedia.com Guest
-
Sorre webforumsuser@macromedia.com #4
Re: New to Director! Help with Highscore saving on server.
Hi !
I'm still having trouble in getting my script to work... I applied this behaviour to my Send Button
on mouseUp me
thePath = "\bin\database"
theFile = "highscore.txt"
myString = member("name").text && member("tele").text
theMode = 2
netID = postNetText ("http://www.sorre.iadttampa.org/bin/hscore.asp",["path":thePath,"filename":theFile,"filestring":myS tring,"mode":theMode])
go "Result"
end
and my ASP Script looks like this:
<%@ LANGUAGE = "VBScript" %>
<%
On Error Resume Next
' Constants for FileSystemObject
Const ForReading = 1, ForWriting = 2, ForAppending = 8
'Form Variables
Dim fPath, fName, fString, fMode
fPath = Request.Form("path")
fName = Request.Form("filename")
fString = Request.Form("filestring")
fMode = Request.Form("mode")
'Test form variables
If fPath = "" Then
Response.Write "File path name is not specified"
Response.End
End If
If fName = "" Then
Response.Write "File name is not specified"
Response.End
End If
If fMode = "" Then
fMode = 8
Else
fMode = CInt(fMode)
End If
'Start processing
' Lock the application
Application.Lock
' Create a file system object and open the count file for reading
Set Fs = CreateObject ("Scripting.FileSystemObject")
'Check folder exists
If Not Fs.FolderExists(Server.MapPath(fPath)) Then
Fs.CreateFolder(Server.MapPath(fPath))
End If
'Check file exists
If Not Fs.FileExists(Server.MapPath(fPath & fName)) Then
Fs.CreateTextFile(Server.MapPath(fPath & fName))
End If
'map the path
sPath = Server.MapPath(fPath & fName)
' Open the file
Set theFile = Fs.OpenTextFile(sPath, fMode)
'Check the mode
If fMode = 1 Then
'opened as read only
Response.Write theFile.ReadAll()
Else
' Write the string to the file
theFile.Writeline(fString)
' Close the counter file
theFile.Close
Response.Write "Done"
End If
' Unlock the application object
Application.Unlock
' Release File system object and file
Set Fs = Nothing
Set theFile = Nothing
%>
And I put all my files in the right directories but if I push the button to send nothing happens... >(
nothing is written and no error is displayed... >(
does anyone know anthing about Director and ASP ?
Can it really be so hard to save the score, Name and Telphone number in one single txt file ? I just can't believe it spend my whole weekend on this :(
Please anyone a suggestion ?
Sorre webforumsuser@macromedia.com Guest



Reply With Quote

