Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 28th, 2004, 11:49 AM
vande29 vande29 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 4 vande29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old January 28th, 2004, 02:49 PM
ZATRiX ZATRiX is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 ZATRiX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #3  
Old January 28th, 2004, 03:22 PM
vande29 vande29 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 4 vande29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE:ZATRiX

I have tried that and it doesn't look that great. Thanks for the thought though.

Reply With Quote
  #4  
Old January 28th, 2004, 04:09 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,713 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 9974 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 10 h 8 m 6 sec
Reputation Power: 580
Facebook MySpace
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 );
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #5  
Old January 28th, 2004, 04:40 PM
vande29 vande29 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 4 vande29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #6  
Old January 28th, 2004, 05:08 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,713 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 9974 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 10 h 8 m 6 sec
Reputation Power: 580
Facebook MySpace
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.

Reply With Quote
  #7  
Old January 28th, 2004, 05:53 PM
vande29 vande29 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 4 vande29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash MX - Dynamic Text with color stroke


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway