Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: more variables thankyouverymuch |
From: | Helen Triolo |
Date: | Fri, 7 Apr 2000 03:35:31 +0100 |
Just an aside about logical (true/false) variables: you shouldn't put
quotes around the "false" unless you want a string variable with 5
characters in it. Logical variables have only 2 values, true or false
(like 1 or 0), so they don't use quotes. In most programming languages,
you can test for a true variable by just saying *if x* (same meaning as
*if x=true*) or *if not x* (same meaning as *if x=false*), but I don't
know if Flash can do this. But I do know that you can say
Set Variable: "x" = true
and test it with
If x=true
and you don't need those quotes.
Regards,
Helen
----------------------------------------
helen triolo � http://i-technica.com
designeri-technica [dot] com � 301-424-6037
----------------------------------------
Robert Bleeker wrote:
>
> try this:
>
> Set Variable: Eval (Substring (b,1,3) & current) = "false"
>
> on 7/4/00 7:02 AM, mhoganuclick [dot] com at mhoganuclick [dot] com wrote:
>
> > new question folks....
> > I need to change a variable's value from "true" to "false" (quotes for
> > strings of course) here's the script I've used:
> > Set Variable: Eval (Substring ("b",0,3) & current) = "false"
> > basically, i want flash to return the number of this variable "b" which is
> > part of an array loaded from a text file (there is b1-b103 and all are set
> > to true, I need to set them to false as the game progresses, since they are
> > generated randomly, i need to have flash return the current one, and then
> > change it's value to "false" if the question is answered correctly. any
> > thoughts?
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 helpchinwag [dot] com
Replies
FLASH: Variables in Movie clips Question, John Graham
Replies
Re: FLASH: more variables thankyouverymu, Robert Bleeker
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]