Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Global text properties

Global text properties

2004-03-10       - By Russell Donders

 Back
Reply:     1     2     3  

Hi,

I have a project that it is highly possible I or someone else will want
to define and change the properties of text fields (ie font, size, color
etc) at a later stage.

What is the best way to set up my text fields so that this can be done.

I was thinking having global variables such as :

_global.textFont = "arial";
_global.textSize = "10";
Etc

And then somehow apply these to every text field I create. Then by
changing the values of the global variables would change the text
properties.

Is this feasible ? If so how to I apply the properties to the textfields
? Are these properties settable via text ? And if they are do the
properties set manually override the code, or does the code over ride
the properties (ie if for a specific text field font is set in the pull
down box to "courier" but my code is setting it to "arial" will it
actually show as courier or arial.

Is there an easier way ?

Russell


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106592
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)




Earn $52 per hosting referral at Lunarpages.