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

input/display generator using symbols, not fonts.

Status
Not open for further replies.

Flashoid

Technical User
Dec 11, 2002
163
US
Anyone have suggestions on creating something like the NBA personalized jerseys? I'd like to create a personalized flash movie in which you key in your name and it appears but not using fonts but symbols. I know you can use input and display fields using fonts, any feedback on using symbols instead would be appreciated. Heres a link to the nba site, which is what I am talking about - I think they use symbols, because I doubt they are using a lakers font.


thanks!
 
I would bet they are using a dynamic text box if this is Flash... all you need to do is embed the font... that would be a lot easier than doing symbols... but you could just make a movie with all the letters of the alphabet in a separate frame... then count the letters someone has type in (Ex:Conie) duplicate that many movies (Ex:5) Then simply movie to a frame based on substringing the text (Ex "C" go to frame 3, O go to frame 15, ......)


using a dynamic textfield would be better in my opinion...

[conehead]
 
Conehead. thanks for the reply. I think your right that the dynamic field is the way to go. I was not able to figure out how to make the display appear on a curved line like they do on the NBA uniform, can you think of a way to display on a curved line or know if its possible?

thanks!
Flashoid
 
one way would be to dynamically create a textbox for each letter then simply place and rotate it based on how many letters there are...

[conehead]
 
Conehead:

Would you still be able to only have one enter data field if you have multiple display text fields (arranged in a curve or other way), if for example you have a field that
says

Enter name here: ________

would it then display their name in those individual boxes character by character?
 
yeah... what you could do is turn the name into a string, split into the individual characters (including spaces), build an array using the characters and then use that array to create the textfields...

[conehead]
 
Yowza! You just lost me. I don't suppose you have an existing model sort of representing what you're explaining?

 
ok say someone does:

Name: ConieBoy

grab the name from your form and import it into your flash movie. Then within flash do:

nameArray = name.split("");

you will then have an array of:

nameArray[0] = "C"
nameArray[1] = "o"
nameArray[2] = "n"
nameArray[3] = "i"
nameArray[4] = "e"
and so on

you can then count this array to find out how many textfields to create and you use each member of the array to populate your dynamically created textfields...



[conehead]
 
Actually the entire thing would be within flash.
 
cool then all the easier.... just make the name variable from the textfield someone types it into, then go from there...

[conehead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top