Well, I had to do the same thing a month or so back.  I needed a flash form 
for our unitedway project.  I could not find any way to do it in AS.  That 
does not mean there is not away, just after spending a few hours on it I 
thought of a an easier way that would work.

I used flash remote to fix the problem.  I pass the number to coldfusion use 
it's dollarformat function to format the value and return it back to form. 
Works great and very fast.

David
----- Original Message ----- 
From: "Simeon Bateman" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Tuesday, August 30, 2005 5:49 PM
Subject: Re: URGENT - Flash CFForm and Global functions


> Well there are a couple ways I thought about approaching this problem,
> however I am not in a spot to try either of them out.
>
> The first would be to see if you can create and instance of
> mx.formatters.CurrencyFormatter via AS and then use the format() method of
> that to output your formatted string.
>
> If you cant create an instance the CurrencyFormatter, you might be able to
> trick cf into giving you one to play with. You might play with the 
> validator
> on a cfinput to see if it uses formatter objects to do the mask and such. 
> If
> you can get cf to output a formatter you could use as to manipulate it to
> validate your data for you.
>
> Sorry if this information is off base, I cant test it just yet, but it 
> might
> give you something to go with.
>
> simeon
>
>
> On 8/30/05, Stephen Moretti <[EMAIL PROTECTED]> wrote:
>>
>> Mike Nimer wrote:
>>
>> >This isn't supported in Flash Forms in 7.0 - However, it is in the
>> upcoming Merrimack release.
>> ><cfform onload="#variables.onload#"
>> >
>> >Which would explain why it isn't working.
>> >
>> >
>> ah... doh.... yes that would explain it. :-/
>>
>> So ok - I found the ASFusion work around for this and that triggered off
>> the code to define the function. However, there are a number of Flash AS
>> functions in there that, from looking at the error messages and a quick
>> browse through the Flex AS Math functions, don't exists.
>>
>> To be honest, I'm kinda stuck now... Is there a sensible way to format
>> some numbers into a currency format?
>>
>> Sorry to be a pain...
>>
>> Regards
>>
>> Stephen
>>
>>
>>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216948
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to