oversæt actionscript
Hej! jeg er igang med at følge en tutorial om en Flash/ASP gæstebog: http://www.tutorialized.com/tutorial/Flash-and-ASP/6003Jeg er absolut ikke en haj til actionscript, og skal derfor gerne have alt skåret ud i pap og stavet korrekt.
Når jeg indskriver de actions som tutorialen anviser, får jeg konstant script errors. Jeg tror tutorialen er baseret på flash 4 og jeg sidder med MX. Derfor kunne det være fedt hvis nogen kunne oversætte flg. actionscripts:
Set Variable: "name" = ""
Set Variable: "email" = ""
Set Variable: "mess" = ""
-----------------
Set Variable: "iSuccess" = 0
Load Variables ("GuestBookSendCode.asp", "", vars=GET)
Set Variable: "submit" = True
Set Variable: "y" = 0
Play
-----------------
Set Variable: "y" = y+1
If (iSuccess = 1)
Go to and Stop ("Success")
Else If (y > 100)
Go to and Stop ("Failed")
End If
------------------
Set Property ("/LoadNext", Visibility) = False
Stop
------------------
Load Variables ("GuestBookGetCode.asp", "")
Set Variable: "x" = "1"
Set Variable: "submit" = False
Set Variable: "load" = False
Set Variable: "loadNo" = 1
-------------------
Set Variable: "startE" = ""
If (load=True)
Set Variable: "startN" = ""
Set Variable: "startM" = ""
Set Variable: "startD" = ""
Load Variables ("GuestBookGetCode.asp?NAV=" & loadNo & "&submit=" & submit, "")
End If
Play
--------------------
If (startE ne "")
Set Variable: "upper_bound" = size*LoadNo
If (count-upper_bound<=0)
Set Variable: "upper_bound" = Count
Set Variable: "NoLoad" = True
Else
Set Variable: "NoLoad" = False
End If
Set Variable: "y" = count-((LoadNo-1)*size)
If (submit=True)
Set Variable: "y" = y-1
Set Variable: "x" = ((LoadNo-1)*size)+2
Else
Set Variable: "x" = ((LoadNo-1)*size)+1
Set Variable: "lower_bound" = 1
End If
Go to and Stop ("Main")
Else
Play
End If
------------------------------
