Flasher Archive

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


Subject: FLASH: Calculating string lengths of variables
From: Paul Willoughby
Date: Tue, 11 Jul 2000 12:22:46 +0100

Hi, I've subscribed to Flasher-l to get answers to questions I couldn't find
elsewhere. I'm trying to use the 'Length' operator to get the length of a
variable and set it as a new variable. I use this code: 'Set
Variable:"/:Length" = Length (/:A2A)', where /:A2A is a variable I've loaded
from a text file. Now, I know the word I loaded has only four letters, but
Flash keeps returning the /:Length variable as 6. So I changed the loaded
variable /:A2A to a 7 letter word, and Flash returns 9. Where's it getting
these extra 2 characters from? I can get round the problem by just
subtracting 2, but I'd like to know if anyone else has experienced this. Is
it a bug or what?

Cheers!

Paul


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


Replies
  Re: FLASH: Calculating string lengths of, Helen Triolo

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