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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating text styles

Status
Not open for further replies.

rubychyld

Programmer
Mar 22, 2001
76
US
Does anyone have a method for creating a font style that can be applied to all text boxes. Possibly calling a function on load clip or something like that?

I am looking for a way to create something similiar to a css class, like font-size, color, font-family, and then apply it to all the text boxes in my project.

has anyone done something similiar?

thanks for sharing if you have any suggestions, Liz
 
don't think you can..not the way your thinking..
e.gif


carlsatterwhite@endangeredgraphics.com
 
Personally, I have done a LITTLE with this...(and I mean VERY little)

What I ended up doing was just playing around, and getting certian properties from things passed to and from an ASP page...it worked OK, but not great. There is some limited functionality in flash for this type of use. ----------------------------------------
The Learning process is just a way to get rid of all the stupids in your head.

Now where's that cute little kitten? :-X
 
Ideally...
I'm trying to apply a similiar font-size and font color to a dynamic text field, or even regular text box.

I done this yet, but there must be a way, so I thought I'd get a little opinion from my favorite forum before I pull my hair out about it... ;)

what if I have a text box that calls a global function that changes the default font properties of a text box, possibly even the width and height of the text box.

why? to give consistency to a very large project, and be able to make minor font-color changes mid-way through if necessary...

why? because some of the text boxes are dynamic and the html text doesn't allow much control as far as I can see.

has anyone done anything like this? any ideas?
 
You should be able to do this...say, using CSS in an ASP page, and using geturl or fscommand to pass things back and forth...Have it call the ASP page...have the ASP page with just some style properties, then take those properties and throw them to flash...flash then reads it, and applies the styles/colors etc...that way you can use a style.css to change things in your flash page...

Say, background = document.bgcolor (whatever property that is)

then pass background to the flash page, and have flash change like, the color/tint of a background square or something...dont know how it would work for dynamic text etc...but it will take come coding. ----------------------------------------
The Learning process is just a way to get rid of all the stupids in your head.

Now where's that cute little kitten? :-X
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top