Assuming the name of your submit background is called "submitBg"
Assuming that you have a text field with the name "submitLabel" that is
attached to "submitBg"


var bgCenterW = this.submitBg._width/2;
var tfCenterW = this.submitBg.submitLabel._width/2;
this.submitBg.submitLabel._x = bgCenterW-tfCenterW;

var bgCenterH = this.submitBg._height/2;
var tfCenterH = this.submitBg.submitLabel._height/2;
this.submitBg.submitLabel._y = bgCenterH-tfCenterH;



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edward
Hotchkiss
Sent: Wednesday, March 22, 2006 12:16 PM
To: Flashcoders mailing list
Subject: [Flashcoders] centering/padding dynamic text

heres my site: http://www.murderdesign.com/
i am trying to pad the forms "submit" text, and align it into the
center, and vertically align it into the center also ... any ideas?
because the clear/submit look ugly like they are now. also, the input
text fields, the same issue: the text is vertically aligned to the top
and looks ugly also...

-edward
_______________________________________________
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

Reply via email to