Flasher Archive

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


Subject: Re: FLASH: text field numbers
From: Helen Triolo
Date: Sun, 12 Mar 2000 15:08:32 GMT

Christian Griffith wrote:
>
> when using numbers in a text box variable field, how can you include commas?
>
> (ie... 10000 = 10,000)
>
> i tried adding the commas manually and lost expression functionality (ie...i
> was no longer able to "add" the numbers)
>
> is there a way to qualify the data like cold fusion does? can i simply
> attach some sort of element that handles the formating of the numbers?
>
Christian,

This page at macromedia shows how to format a textfield to add decimal
places:

http://www.macromedia.com/support/flash/ts/documents/decimal_places.htm

Here's the code from that page, which you could modify to use commas
where needed:

Set Variable: "testString" = testValue*100
Set Variable: "testLength" = Length(testString)
Set Variable: "testValue" = Substring(testString,1,testLength-2) & "." &
Substring(testString,testLength-1,2)

Regards,
Helen
__________________________________________________________________
i-Technica: Innovative Internet Solutions (http://i-Technica.com)
designerati-technica [dot] com
301-424-6037

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 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
  FLASH: text field numbers, Christian Griffith

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