GET YOUR SUBSCRIPT & SUPERSCRIPT FONTS HERE
Subscript and Superscript in Flash.html
SubscriptandSuperscriptinFlashActionscript.html
SubscriptandSuperscriptinFlashActionscriptHTML.html
flash-professional_subscript-numbers.html
index.html
repalce_subscript_superscript_flash.html
see a webcam girl.html
sitemap.html
subscript superscript in texatrea flash.html
subscript superscript in xml and flash.html
subscript superscript in xml.html
subscript tags superscript flash textarea actionscript.html
subscript_flash.html
subscript_flash_cs3_cs4.html
subscript_superscript in_xml_flash_actionscript.html
subscript_superscript in_xml_flash_actionscript_html.html
subscript_superscript.html
superscripd_subscript_in_actionscript_xml_flash.html
superscript flash actionscript adobe.html
webcam nude.html

GET YOUR SUBSCRIPT & SUPERSCRIPT FONTS HERE
Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-29-2008, 02:57 PM   #1
wilbur_b7
wilburrrrrrrr
 
Join Date: Sep 2006
Posts: 21
Red face Superscript in flash... AS2

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,
wilbur_b7 is offline   Reply With Quote
Sponsored Links
Old 02-29-2008, 03:15 PM   #2
inhan
it's all about patience
 
inhan's Avatar
 
Join Date: Jun 2005
Location: istanbul
Posts: 5,847
Default

I could never do that, and I'm not sure if Flash supports or accepts super/subscripts.
__________________
Ali Inhan
Turkish graphic and web designer
an Apple fan
www.aliinhan.com
inhan is offline   Reply With Quote
Old 02-29-2008, 04:06 PM   #3
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,596
Default

You could do what's provided like power or 2 and such...
ActionScript Code:
this.createTextField("test_txt", 100, 0, 0, 100, 20); this.test_txt.text = "E = MC " + unescape("%B2");
Other than that, you will need to actually size and locate the smaller text...
__________________
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...
CyanBlue is offline   Reply With Quote
Old 02-29-2008, 04:24 PM   #4
inhan
it's all about patience
 
inhan's Avatar
 
Join Date: Jun 2005
Location: istanbul
Posts: 5,847
Default

Oh I didn't know that. Thanks, CyanBlue
__________________
Ali Inhan
Turkish graphic and web designer
an Apple fan
www.aliinhan.com
inhan is offline   Reply With Quote
Old 02-29-2008, 05:09 PM   #5
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,596
Default

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...
CyanBlue is offline   Reply With Quote
Old 02-29-2008, 05:38 PM   #6
inhan
it's all about patience
 
inhan's Avatar
 
Join Date: Jun 2005
Location: istanbul
Posts: 5,847
Default

Let's extend the String class
__________________
Ali Inhan
Turkish graphic and web designer
an Apple fan
www.aliinhan.com
inhan is offline   Reply With Quote
Old 02-29-2008, 05:49 PM   #7
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,596
Default

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...
CyanBlue is offline   Reply With Quote
Old 02-29-2008, 07:01 PM   #8
inhan
it's all about patience
 
inhan's Avatar
 
Join Date: Jun 2005
Location: istanbul
Posts: 5,847
Default

Hehehe
__________________
Ali Inhan
Turkish graphic and web designer
an Apple fan
www.aliinhan.com
inhan is offline   Reply With Quote
Old 03-01-2008, 12:23 AM   #9
wilbur_b7
wilburrrrrrrr
 
Join Date: Sep 2006
Posts: 21
Default

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;
wilbur_b7 is offline   Reply With Quote
Old 03-01-2008, 01:16 AM   #10
inhan
it's all about patience
 
inhan's Avatar
 
Join Date: Jun 2005
Location: istanbul
Posts: 5,847
Default

Thanks for the link, Wilbur.
__________________
Ali Inhan
Turkish graphic and web designer
an Apple fan
www.aliinhan.com
inhan is offline   Reply With Quote
Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 07:11 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.