|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Flash MX - Dynamic Text with color stroke
Using Flash MX, I am looking for an actionscript / flash option that will let me set the text color and then set a second color for a text stroke. Nike has done it on there site with what they call their uniform builder URL You can view there text by selecting the "Test Drive" option. I am trying to mimic how they do their 2 color text but am not having much luck. Does anyone have any ideas on how I can do it??? Here is an example of what I am trying to do URL
Thanks, Vande Last edited by vande29 : January 28th, 2004 at 04:44 PM. |
|
#2
|
|||
|
|||
|
well i suppose you could make a textbox with size 20 text of lets say "20" and then a text box of size 10 and center it over the text box below, and use desired colors
![]() |
|
#3
|
|||
|
|||
|
RE:ZATRiX
I have tried that and it doesn't look that great. Thanks for the thought though.
|
|
#4
|
|||
|
|||
|
Hi, I've done that before. You can use the setTextFormat function to do that.
Code:
myTextFormat = new TextFormat(); myTextFormat.bold = true; myTextFormat2 = new Textformat(); myTextFormat2.bold = false; myTextField.text = "Oh la la..."; beginIndex = 0; endIndex = 2; //Set the default text format up myTextField.setTextFormat(myTextFormat2); //Now change the first few characters to be bold myTextField.setTextFormat (beginIndex, endIndex, myTextFormat ); |
|
#5
|
|||
|
|||
|
That's cool however I don't think it tells me how to change the color of the outline. Here is where you can see what I am trying to do URL
|
|
#6
|
|||
|
|||
|
Hi, I'm guessing they manually drew each number on the shirt. I skimmed through so I didnt see if you can change the text on the shirt image. I did see the bit to do with coloring. I think they just drew each image as a seperate movie and then use the color box to change the color of that sub movie...just a guess though.
You might be able to do a trick and have a larger version of the text behing the smaller one. That might work ok with some fonts, doesnt with all...why not just pick a certain text to use in the example and then draw some fonts to use. |
|
#7
|
|||
|
|||
|
The text is a dynamic text box that is a movie playing over another movie (small text over large text). With all the fonts I want to use, it doesn't always look so great. Nike's looks awesome and I would love to know how they did it to look so good. However, I can't find anything besides what I currently have to give the 2 color effect. Thanks for the thoughts though.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Flash MX - Dynamic Text with color stroke |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|