Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: Formatting Numbers |
From: | jwoodw - Jeffrey Woodward |
Date: | Mon, 10 Jul 2000 21:32:57 +0100 |
Thanks Helen! Once again you've come through with a brilliant work-around.
I truly admire your ability to think "outside the box". I'd of never
thought of such an elegant solution. I need to pull out those old math
books and do some brushing up.
I guess the only problem left with this issue is to take care of numbers
that happen to come out as decimals, i.e. - .54321 - Would you use some more
"If" statements to handle this scenerio?
Thanks again for all your input!
Jeff
-----Original Message-----
From: Helen Triolo [designeri-technica [dot] com (mailto:designeri-technica [dot] com)]
Sent: Saturday, July 08, 2000 7:53 AM
To: flasherchinwag [dot] com
Subject: Re: FLASH: Formatting Numbers
Jeffrey et al,
Sorry for beating a dead horse, but I thought of a much better way to do
the formatting and posted it again at
http://i-technica.com/whitestuff/formatmillions.html It works for any
size number (tens, billions, whatever) and makes use of 2 things unique
to Flash:
1) there is no variable typing, so you can do string functions on a
number without converting back and forth between integer and character,
and
2) even though there is no mod function, you can find multiples of n by
checking for int(number/n)=number/n, because int always truncates
Regards,
Helen
---------------------------------------------------
helen triolo � http://i-technica.com � 301-424-6037
jwoodw - Jeffrey Woodward wrote:
>
> Hi all,
>
> I feel certain that there is a way to format large numbers in a variable
> text field with commas using ActionScript, but I can't seem to get my head
> around it.
>
> For example, I need the number 1000000 to read 1,000,000.
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
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
Re: FLASH: Formatting Numbers, decimals, Helen Triolo
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]