Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: case sensitivity |
From: | Robert Bleeker |
Date: | Sat, 24 Jun 2000 03:08:02 +0100 |
Hi Ted,
Gee, your lucky today, I have just made a script to do that very thing.
I needed to check if 2 variable "someVariable" & "anotherVariable" where the
same without the case sensitivity.
<snip>
Set Variable: "var1" = someVariable
Set Variable: "xx" = 1
Loop While (xx<Length(var1))
Set Variable: "char" = Ord(Substring(var1, xx,1))
If (char>64 AND char<91)
Set Variable: "firstVar" = firstVar & Chr(char+32)
Else
Set Variable: "firstVar" = firstVar & Chr(char)
End If
Set Variable: "xx" = xx+1
End Loop
Set Variable: "var2" = anotherVariable
Set Variable: "xx" = 1
Loop While (xx<Length(var2))
Set Variable: "char" = Ord(Substring(var2, xx,1))
If (char>64 AND char<91)
Set Variable: "secondVar" = secondVar & Chr(char+32)
Else
Set Variable: "secondVar" = secondVar & Chr(char)
End If
Set Variable: "xx" = xx+1
End Loop
If (firstVar eq secondVar)
comment: "they are the same code here"
Go to and Stop ("somewhere1")
Else
comment: "they are NOT the same code here"
Go to and Play ("somewhere2")
End If
</snip>
This code only changes the Case if the character is a letter. So special
characters stay the same.
Hope this helps.
Robert
Robert Bleeker
CADRE design
http://www.cadre.com.au
+61-2-96859889
-+-
on 24/6/00 9:29 AM, T.R. Henigson at ted3bits [dot] com wrote:
> Are there any functions/methods for converting lettercase
> or making case insensitive comparisons within Flash?
>
> Ted
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: case sensitivity, T.R. Henigson
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]