| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
wilburrrrrrrr
Join Date: Sep 2006
Posts: 21
|
does anyone know of a font for mac that includes true superscript characters? actually smaller and lined up high?
or any good tricks in faking superscript within dynamic text created at runtime from xml? AS2 thanks, |
|
|
|
| Sponsored Links |
|
|
#2 |
|
it's all about patience
Join Date: Jun 2005
Location: istanbul
Posts: 5,847
|
I could never do that, and I'm not sure if Flash supports or accepts super/subscripts.
|
|
|
|
|
|
#3 |
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,596
|
You could do what's provided like power or 2 and such...
ActionScript Code:
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer http://CyanBlue.FlashVacuum.com http://www.FlashVacuum.com http://tutorials.FlashVacuum.com Do NOT PM, Email or Call me... Your question belongs right in this forum...
|
|
|
|
|
|
#4 |
|
it's all about patience
Join Date: Jun 2005
Location: istanbul
Posts: 5,847
|
Oh I didn't know that. Thanks, CyanBlue
![]() |
|
|
|
|
|
#5 |
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,596
|
Don't mention it...
![]() It'd be good if this can be a built-in feature... Oh well... We've got what we've got...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer http://CyanBlue.FlashVacuum.com http://www.FlashVacuum.com http://tutorials.FlashVacuum.com Do NOT PM, Email or Call me... Your question belongs right in this forum...
|
|
|
|
|
|
#6 |
|
it's all about patience
Join Date: Jun 2005
Location: istanbul
Posts: 5,847
|
Let's extend the String class
|
|
|
|
|
|
#7 |
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,596
|
Man... You ARE enjoying it way too much...
![]()
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer http://CyanBlue.FlashVacuum.com http://www.FlashVacuum.com http://tutorials.FlashVacuum.com Do NOT PM, Email or Call me... Your question belongs right in this forum...
|
|
|
|
|
|
#8 |
|
it's all about patience
Join Date: Jun 2005
Location: istanbul
Posts: 5,847
|
Hehehe
|
|
|
|
|
|
#9 |
|
wilburrrrrrrr
Join Date: Sep 2006
Posts: 21
|
I got this from the flashCodersNY forum (it worked perfectly - i'm going to include it in my MyTextField Class which i'll post online as soon as some of the functionalities are improved and it's fully commented):
http://blog.ggshow.com/index.php/reference?cat=112 There are also some basic instructions there. Also, unless you are using AS3, you can use the following function for string replacement: String.prototype.replace = function(find, replace) { return this.split(find).join(replace); }; Then, when you want to assign dynamic htmlText to a textfield, you can just do: var str = originalString.replace("<sup>", "<font face='GG Superscript'>"); str = str.replace("</sup>", "</font>"); textField.htmlText = str; |
|
|
|
|
|
#10 |
|
it's all about patience
Join Date: Jun 2005
Location: istanbul
Posts: 5,847
|
Thanks for the link, Wilbur.
|
|
|
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Optimizing Flash Web Sites for Search Engines | rockcoastmedia | General Chat | 19 | 03-29-2009 09:31 PM |
| flash, html hrefs, z-level, wmode and more... | kracko | HTML and JavaScript | 56 | 12-16-2008 03:24 AM |
| Flash Remoting using CS3 and AS2 | mallen | Flash Remoting | 9 | 12-08-2007 12:09 PM |
| Open source Flash billiard game (AS2) | tomazws | ActionScript 2.0 | 2 | 08-06-2007 08:08 PM |
| [Q] Do we need those forums??? | CyanBlue | General Chat | 59 | 07-27-2004 11:13 AM |