Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

textfield formatting with actionscript 5

Status
Not open for further replies.

jefargrafx

Instructor
May 24, 2001
273
US
can this be done...

I've placed a textfield in a MC and can change the color, but can I change the font, size, format, etc? in actionscript 5?

I've found references on the web for doing this with MX,

But I'm not interested in upgrading right now?

any ideas
thanks jef
 
yes, you are right, but I'm setting up one textfield to define all the text labels on a application.

I'm using a string for the label like

youformMC.label01MC.labelTXT = "My Label 01"
youformMC.label02MC.labelTXT = "My Label 02"

where labelTXT is the textfield

I'd rather apply some formating to the parent MC to format the textfield

this will change the color to yellow

onClipEvent (load) {
cCircle = new Color(this);
cCircle.setRGB(0xFFFF00);
}


I guess this is really changing the parent clips color and not the textfield...the textfield changes just becuase it's in the MC

anu ideas
jef
 
Why not just set the text in the textfield manually? Are there different formatting styles for the text?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top