Flasher Archive

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


Subject: Re: FLASH: case sensitivity
From: T.R. Henigson
Date: Sat, 24 Jun 2000 18:48:06 +0100

Thank you both, very much. For anyone following this thread,
these techniques are essentially the same. The implementation
behind the first one is for converting letter case, the second
one for comparing although they each can be easily modified.
This would probably be a good post to add to "Sockman" or
whatever it's called now ;-)

Ted


> Date: Fri, 23 Jun 2000 21:09:58 -0300
> From: "David Doggett" <daveatfunmark [dot] com>
> Subject: Re: FLASH: case sensitivity
>
> I made one for www.were-here.com
>
> http://www.were-here.com/cgi-bin/dbman/db.cgi?db=fla&uid=default&v
> iew_record
> s=Search&title=case
>
> Good luck,
>
> Dave
>
> - ----- Original Message -----
> From: T.R. Henigson <tedat3bits [dot] com>
> To: <flasheratchinwag [dot] com>
> Sent: Friday, June 23, 2000 8:29 PM
> Subject: FLASH: case sensitivity
>
>
> > Are there any functions/methods for converting lettercase
> > or making case insensitive comparisons within Flash?
> >
> > Ted


> Date: Sat, 24 Jun 2000 11:54:15 +1000
> From: Robert Bleeker <rbleekeratcadre [dot] com [dot] au>
> Subject: Re: FLASH: case sensitivity
>
> 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 tedat3bits [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 helpatchinwag [dot] com


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