Try this, (this is an AS data type issue)
alert(#variables.pc.apply(promo,'shippingValue.text')#.toString());
or add a string to the line
alert(' value=' +#variables.pc.apply(promo,'shippingValue.text')#);
or
alert('' +#variables.pc.apply(promo,'shippingValue.text')#);
hth,
---nimer
-----Original Message-----
From: Ken Ferguson [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 7:15 PM
To: CF-Talk
Subject: flash form AS troubles...
I have a function that returns a value like 5.98. When I try to alert it
in AS, I get the error below:
alert(#variables.pc.apply(promo,'shippingValue.text')#);
Error /shop/www/inde.mxml:758
Type mismatch. Number found where String was expected in parameter 1
That's expected, as it would really look like:
alert(5.98);
So I tried a couple of things. First off, I used:
alert('5.98')
That worked fine and alerted correctly. So I tried:
alert('#variables.pc.apply(promo,'shippingValue.text')#');
But then I got all kinds of errors like:
Error /shop/www/inde.mxml:758
String literal was not properly terminated
Error /shop/www/inde.mxml:768
')' or ',' expected
Error /shop/www/inde.mxml:758
The statement '' is incomplete.
So, I thought the single quotes were causing the trouble and messed
around with different formatting... I've had no luck though. Does
anybody see something that I'm just missing from staring into the
trees??? I've GOT to get this damn thing working.
Thanks,
Ferg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205139
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54