Flasher Archive

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


Subject: FLASH: more variable issues
From: mhoganatuclick [dot] com
Date: Mon, 10 Apr 2000 14:48:03 +0100

ok, I need this to work in this order....when a user clicks a button, it
should set a variable w/in the variables movieclip, then that variable
should be compared w/ a variable w/in the movie clip...here's the
code...help please
button action
On (Press)
Trace ("correctanswer=?")
Call ("/variables:checkquestion")
Call ("/variables:answerquestion")
End On
On (Release)
Set Variable: "/variables:correctanswer" = "mike"
End On
check question frame action
Comment: this is working
Set Variable: "count" = Random(103)
Trace ("count")
Set Variable: "current" = count
Trace ("current")
Set Variable: "currentanswer" = Eval ( "a" & current)
Trace ("currentanswer")
Set Variable: "Randomquestion" = Eval ( "q" & current)
Trace ("randomquestion")
Set Variable: "currentstatus" = "b" & Int(current)
answer question frame action
Trace ("is this working")
Set Variable: "/:text" = Randomquestion
If (currentanswer eq correctanswer)
Trace ("checking for correct answer")
Set Variable: (MBSubstring(("b" & Int(current)),0,5)) = "false"
Trace ("setting b to false")
Set Variable: "answerquestion" = Eval ("b" & current)
Else
Set Variable: "answerquestion" = "true"
Trace ("answerquestion=true")
End If
Trace ("/text")
Set Variable: "i" = "1"
Loop While (i<104)
If (answerquestion eq "true")
Trace ("checking")
Set Variable: "../:text" = Substring(Randomquestion,1,50)
Trace ("get the question")
Set Variable: "a" = Eval("b"&"i")
Trace ("evaluating true/false statement")
End If
Set Variable: "i" = i+1
End Loop
Stop


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


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