writern98
03-12-2007, 01:49 AM
I'm creating a Flash-based ordering movie, and I have a combobox for the credit card number that will take numbers only, length 16 and the variable is CardNo
At the order verification frame, I want to show 12 asterisks and only the last 4 of CardNo
I'm using a variable CardNoHide = "************" + CardNo.substr(12,4);
However, this returns:
************FT">
If I change to CardNoHide = CardNo;
Then it shows the entire card number properly. It's only when I try to slice or substring that it starts giving FORMATLEADING type stuff.
Can anyone lend some advice?
Thanks in advance!
Brad
At the order verification frame, I want to show 12 asterisks and only the last 4 of CardNo
I'm using a variable CardNoHide = "************" + CardNo.substr(12,4);
However, this returns:
************FT">
If I change to CardNoHide = CardNo;
Then it shows the entire card number properly. It's only when I try to slice or substring that it starts giving FORMATLEADING type stuff.
Can anyone lend some advice?
Thanks in advance!
Brad