Flasher Archive

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


Subject: Re: FLASH: Formatting Numbers #2
From: Helen Triolo
Date: Fri, 7 Jul 2000 00:26:41 +0100

jwoodw - Jeffrey Woodward wrote:
>
> Hi folks,
>
> Thanks to all that tried to help me out with the formatting question.
> Unfortunately, I couldn't get any mathmatical solution to work. Since
> ActionScript doesn't have a modulus operator, I'm not sure that a
> mathmatical solution is possible given that my number variable changes
> depending upon an input variable.

OK, this time I tried it before sending the answer. It works. I'll
post the swf later (when I get back from dinner) if you want. ;-)

On (Release)
Set Variable: "m" = int(input/1000000)
Set Variable: "k" = int((input - m*1000000)/1000)
Set Variable: "d" = input-(m*1000000+k*1000)
Set Variable: "formatted" = m & "," & k & "," & d
End On

Regards,
Helen
---------------------------------------------------
helen triolo � http://i-technica.com � 301-424-6037

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: Formatting Numbers #2, jwoodw - Jeffrey Woodward

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