restrict is wrong. you are right. but that didn't really effect it.
but this truely did.
mytext.setNewTextFormat(format1);
nevertheless, thanks for the link.
On Aug 6, 2007, at 6:39 PM, Palmer, Jim wrote:
Your mytext.restrict is wrong...
should be mytext.restrict = "0-9 ";
read: http://www.adobe.com/support/flash/action_scripts/
actionscript_dictionary/actionscript_dictionary762.html
--
Jim Palmer ! Mammoth Web Operations
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
ilteris
kaplan
Sent: Monday, August 06, 2007 3:33 PM
To: Flashcoders mailing list
Subject: [Flashcoders] textfield woes.
Hello List,
Very basic question.
Basically I created a new font in my flash library and put this code
in the timeline.
this.createTextField("mytext", this.getNextHighestDepth(), 10, 100,
300, 200);
mytext.multiline = false;
mytext.type = "input";
mytext.embedFonts = true;
mytext.restrict = "1,2,3,4,5,6,7,8,9,0";
mytext.border = true;
mytext.maxChars = 8;
var format1:TextFormat = new TextFormat();
format1.letterSpacing = 2;
format1.font = "HelveticaNeue";
mytext.text = " ";
mytext.setTextFormat(format1);
my question is, this code works fine, creates a textfield and I can
type numbers in that textfield without problems. Only problem
is I do
have a space in the textfield. So when I go ahead and change
the line
to mytext.text = ""; now it doesn't have any space at all. but flash
doesn't allow me to type anything on the text field.
Can someone confirm this for me? Please?
best,
ilteris
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com