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

How to use Subscript & Superscript in dynamic and input text field in Flash?

Issue: <sub> & <sup> tags are not supported by Flash. Here is example.swf:

Download Subscript & Superscript Fonts

Found the solution, it is &#8038;

It's at:

http://jroller.com/page/xueyunfeng/20050609#html_unicode_special_symbols
tsuji (TechnicalUser)
9 Jan 06 10:43
This too may furnish further info.
http://www.fileformat.info/info/unicode/category/No/list.htm
fawkes (TechnicalUser)
9 Jan 06 11:42
My original solution works when viewed in firefox but not ie so ignore it.

I've checked out jsuji's link and it gives me something similar.

It is the encoding in my xml that is causing the probelm?

CODE
<?xml version="1.0" encoding="UTF-8"?>
tsuji (TechnicalUser)
10 Jan 06 3:50
Could you show the concrete instance where it fails?
fawkes (TechnicalUser)
11 Jan 06 5:35
A sample of xml is:

CODE

<?xml version="1.0" encoding="UTF-8"?>
<fg:DimensionUnits xmlns="http://www.mysite.com/ns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:fg="http://www.mysite.com/ns" xsi:schemaLocation="http://www.mysite.com/ns DimensionUnits.xsd">
<fg:Type>Moment Of Inertia</fg:Type>
<fg:Units>
<fg:Unit>
<fg:Name>millimetre&#8308;</fg:Name>
<fg:Abbreviation>mm&#8308;</fg:Abbreviation>
<fg:Factor>1e-12</fg:Factor>
<fg:IsMetric>true</fg:IsMetric>
<fg:IsSIUnit>false</fg:IsSIUnit>
</fg:Unit>
</fg:Units>
</fg:DimensionUnits>

I haven't included the schema but I don't think you need it.

If you open this xml in firefox you see a subscript 4, if you open it in ie it doesn't show.
tsuji (TechnicalUser)
11 Jan 06 5:55
Thanks for the demo. But, it shows up all rights in ie as well on me, or am I missing something?
fawkes (TechnicalUser)
11 Jan 06 6:51
When I try and show it in ie6 I get square rectangles instead of the superscript 4.

I'm using windows xp pro. Is it something I've got on my machine? Or something I'm missing from my machine?

When I open the xml file in ie I get a blocked content message, could this be the problem?

I'm also reading from the xml file into a vb.net combo box and it isn't reading the superscript 4 character, again I just get a square rectangle instead.
tsuji (TechnicalUser)
11 Jan 06 9:23
Make sure you do not have your own stylesheet on the ie accessibility setting. Otherwise, I have no idea. It displays just fine for my archaic system with ie6, and I would be surprised xp be so intrusive in this aspect!
fawkes (TechnicalUser)
12 Jan 06 8:44
I don't understand the following

Quote:

Make sure you do not have your own stylesheet on the ie accessibility setting

tsuji (TechnicalUser)
12 Jan 06 9:11
I don't think you have it if you do not get it because it is a somewhat sophisticated tweak. It is in option-accessibility setting of ie.
fawkes (TechnicalUser)
13 Jan 06 3:56
I think it is a font issue.
tsuji (TechnicalUser)
13 Jan 06 5:27
I have nothing more to add...
Hi,

I am not able to use superscript tag in xml .
Kindly, let me know how to use the same .

Thanks,
Bhavana.

mhkay
Advanced Member

United Kingdom
3070 Posts

Posted - 02/28/2006 : 05:42:35 AM Show Profile Visit mhkay's Homepage Reply with Quote
I don't think you have understood XML. You can use any tags you like, for example

<superscript>2</superscript>

or

<sup>2</sup>

if you prefer.

What the tags mean is up to your application. If you want this to cause 2 to be rendered as a superscript, then you will need to convert the XML into something like XHTML or XSL-FO or SVG that is understood by your display or printing software. This transformation is usually done using XSLT.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Go to Top of Page

Bhavana.t
Starting Member

4 Posts

Posted - 02/28/2006 : 11:15:38 PM Show Profile Reply with Quote
I just know the basics of xml...

We have tried displaying registered trademark as superscript by placing sup tag as an attribute in DTD.
But it is showing Internal Server Error.

I dont know how to convert XML to XSLT.

Please reply ASAP.

FYI: we are using weblogic server 7.04 .

Go to Top of Page

joefawcett
Advanced Member

United Kingdom
2668 Posts

Posted - 03/01/2006 : 03:39:55 AM Show Profile Visit joefawcett's Homepage Reply with Quote
1) Show us a sample of your source XML.
2) Show a sample of what output you desire.
3) Show any efforts to date.
4) If you want replies ASAP pay for professional help, if you want pro bono help you take what you get at the responders own speed.

As Michael stated XML is a representation of data with NO display properties. If you want to show a superscript in HTML, which does display to users, then you use a standard HTML sup tag around the characters.

--

Joe (Microsoft MVP - XML)
Go to Top of Page

mhkay
Advanced Member

United Kingdom
3070 Posts

Posted - 03/01/2006 : 04:21:27 AM Show Profile Visit mhkay's Homepage Reply with Quote
I think you need to read some books and get an understanding of the basic concepts. I can't teach you that in replies to forum messages.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Go to Top of Page

Bhavana.t
Starting Member

4 Posts

Posted - 03/02/2006 : 02:01:21 AM Show Profile Reply with Quote
Thanks for your response.
As requested, I am sending the Code

I suppose to get the Superscript as "Perks® Overview"

***************** DTD File for the same **********************
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT NavigationModel (NavigationGroup+)>
<!-- the NavigationGroup represents a subset of the site that has a unique set of global navigation.
Currenty, this is expected to be one of the following
pacificare (includes SecureHorizons)
womenshealth
corporate (includes Investor Relations, Employment, Press Releases etc)
pacificare latino

isP13n : true or false - This indicates whether the Pages displayed in a NavigationGroup are filtered based on the NavigationP13nService

defaultPageGroupName - this indicates the "home" page Group within a NavigationGroup

-->
<!ELEMENT NavigationGroup (IsP13N, PageGroup+, DefaultPageGroupName?)>
<!ATTLIST NavigationGroup
name CDATA #REQUIRED
>
<!-- isP13n : true or false - This indicates whether the Pages displayed in a NavigationGroup are filtered based on the NavigationPersonalizationService -->
<!ELEMENT IsP13N (#PCDATA)>
<!-- the defaultPageGroupName indicates the "home" page Group within a NavigationGroup -->
<!ELEMENT DefaultPageGroupName (#PCDATA)>
<!-- The PageGroup defines a collection of pages that are rendered as menu items in the pull-down menu that appears when mouse-ing over a tab in the top-nav menu
-->
<!ELEMENT PageGroup (DisplayName, DisplayOrder, IsHidden?, DefaultImageURL?, SelectedImageURL?, RolloverImageURL?, ImageWidth?, Page+, DefaultPageName?)>
<!ATTLIST PageGroup
name CDATA #REQUIRED
>
<!-- The Page represents the logical Page that is displayed when the user selects a menu item from a pull-down menu from the top-nav menu.
PortalPageName - this is the name of the underlying WLP Portal Page - this is generallly it is 1-1 with the logical Page's name.
-->
<!ELEMENT Page (PortalPageName, DisplayName, DisplayOrder, IsHidden?, RootNavigationNode)>
<!ATTLIST Page
name CDATA #REQUIRED
>
<!-- The DefaultPageName indicates the Page within the PageGroup that will be navigated to when the PageGroup tab is selected in the top-nav bar -->
<!-- If this is not configured there will not be an action when the user clicks on the tab -->
<!ELEMENT DefaultPageName (#PCDATA)>
<!-- The RootNavigationNode represents the root of tree of NavigationNodes representing the left-nav menu.
The RootNavigationNode is not rendered in the left-nav menu.
The Action associated with the RootNavigationNode is the default Action for the logical Page to which the RootNavigationNode is related
-->
<!ELEMENT RootNavigationNode (Action?, NavigationNode*)>
<!-- The NavigationNode represents a item in the left-nav menu -->
<!ELEMENT NavigationNode (DisplayName, DisplayOrder, IsHidden?, Action?, NavigationNode*)>
<!ATTLIST NavigationNode
name CDATA #REQUIRED
>
<!-- Action represents the webflow event that is triggered when selecting a left-nav menu item.
For example, when performing a typical content query the action will be to invoke the generic content display portlet with the link.viewArticle event.

PortletName This is the name of the target portlet to which the PortletEvent is posted.
Typical values include
contentdisplay - the content display portlet handles rendering articles and handling IFRAME based functionality

PortletEvent This is the webflow event that will be posted to the Portlet named by PortletName.
Typical values include
link.viewArticle - this is the event that is posted into the contentdisplay portlet to trigger a article content query
link.iframe - this is the event that is posted into the contentdisplay portlet to trigger an iframe

The properties associated with an action provide a means of maintaining context informaiton that can be used by the target portlet.
Each property consists of a name and a value. The legal names and the expected values are determined by the portlet implementation.
However, in the DTD we have limited the name to the values expected by the implementation of the 'contentdisplay' portlet. This will need to be
modified later as new portlets are added that make use of these properties.


The Content Display Portlet - displaying an article
_______________________________________

The generic content display portlet supports the display of content based on a content query. The content query is driven by values maintained
in the PhsSession (defined in the EBCC) and to properties associated with the navigation node.

To invoke the contentdisplay portlet to perform a content query the action should be defined as follows
<Action>
<PortletName>contentdisplay</PortletName>
<PortletEvent>link.viewArticle</PortletEvent>
<Properties>
</Properties>
</Action>

Additionally, properties should be set-up in the following way

Property Name Description
____________ _________
ContentSelector This property is the name of the Content Selector defined in the Portal EBCC that will be used by when performing a content query.
The name of the content selector is a mnemonic which follows the content meta-data that should be supplied to the query.
The mnemonics are based on all of the permutations of CUPS where C = Contentdescriptor, U = Utility, p = Product, s = Segment, e.g.

contentdescriptor value description
___________________ _________
CContentSelector contentdescriptor only
CUContentSelector contentdescriptor and utility
CUPContentSelector contentdescriptor, utility and product
CUPSContentSelector contentdescriptor, utilty, product and segment
CPContentSelector contentdescriptor and product
ContentIDContentSelector content ID using the ContentID property
etc

In addition, to this explict query parameters the Content Display portlet will also add implicit parameters based on Product, Audience and Region of the
user executing the query. These are maintained in the HTTP Session and populated either by the Gateway page or after login from SiteMinder.

There are also content selector that disregard the "PAR" values. These are specifically for non-personalized navigation groups.

CorporateContentSelector This content selector expects the content descriptor to be defined on the navigation node but hardcodes the region
to '|Corporate|'

WHSContentSelector This retrieves content for the Women's Healtth Solutions site. The content selector is driven by the content descriptor
defined on the navigation node and hardcodes segment to 'Womens Health Solutions'.

ContentDescriptor This property defines the value of the "Content Descriptor" content meta-data attribute
Product This property defines the value of the "Property" content meta-data attribute
Utility This property defines the value of the "Utility" content meta-data attribute
Segment This property defines the value of the "Segment" content meta-data attribute
ContentID This property defines the value io the "id" content meta-data which holds the Vignette content id.
ContactUsType This is used be the Contact Us portlet to discriminate between different entry points.s
QIType This property identifies the type of QI Application - Core, Women, Hospital
MatrixType This property identifies the type of Selection Matrix displayed
OrderIDCardType This property identifies the type of Order ID card.
url The URL of an external web site - used by the popup portlet and contentdisplay portlet when generating
a pop-up frame or IFRAME respectively.
URLTransformer This property is the name of a class which will transform the 'url' property. Typically, this involves replacing
tokens in the 'url' property with literal values for product, audience and region. If the URLTransformer is not
supplied the popup and contentdisplay portlets use the URL directly.
URLTransformer class names include
com.phs.internet.cp.presentation.thirdparty.ConnectureURLTransformer
com.phs.internet.cp.presentation.thirdparty.GeoAccessURLTransformer
com.phs.internet.cp.presentation.thirdparty.MyHealth24URLTransformer
searchType Used by capitation search portlet
DefaultContentId This property is used for the generic content search portlet .
HideMenuFooter Property to decide whether to display menu bar and footer.
subsearchType Used by reports portlet
-->
<!ELEMENT Action (PortletName, PortletEvent?, Properties?)>
<!ELEMENT Properties (Property+)>
<!ELEMENT Property (#PCDATA)>
<!ATTLIST Property
name (ContentSelector | ContentDescriptor | Utility | Product | Segment | url | ContentID | ContactUsType | QIType | OrderIDCardType | URLTransformer | searchType | eventType | MatrixType | DefaultContentId | HideMenuFooter | subSearchType) #REQUIRED
value CDATA #REQUIRED
>
<!ELEMENT PortletEvent (#PCDATA)>
<!ELEMENT PortletName (#PCDATA)>
<!-- The DisplayName is used when rendering the UI components -->
<!ELEMENT DisplayName (#PCDATA)>
<!-- Display Order determines the left-right ordering of PageGroups, the top-bottom ordering of Pages within a PageGroup or top-bottom ordering of NavigationNode -->
<!ELEMENT DisplayOrder (#PCDATA)>
<!ELEMENT DefaultImageURL (#PCDATA)>
<!ELEMENT SelectedImageURL (#PCDATA)>
<!ELEMENT RolloverImageURL (#PCDATA)>
<!ELEMENT ImageWidth (#PCDATA)>
<!-- IsHidden is a flag that indicates whether the element should be appear in a navigation menu -->
<!ELEMENT IsHidden (#PCDATA)>
<!-- The Page represents the 2nd-level navigation. This is rendered as a menu item on a pull-down menu accessed from the tab in the top-nav -->
<!ELEMENT PortalPageName (#PCDATA)>
*********************** DTD File -End ******************************

XML File has the following Code :
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Brenda liu (PHS) -->
<PageGroup name="SpecialValues">
<Page name="SpecialValues.1">
<PortalPageName>WHSPerksContentDisplay</PortalPageName>
<DisplayName>Perks® Overview</DisplayName>
<DisplayOrder>1</DisplayOrder>
<RootNavigationNode>
<Action>
<PortletName>perkscontentdisplay</PortletName>
<PortletEvent>link.viewTeaserPage</PortletEvent>
<Properties>
<Property name="ContentSelector" value="CContentSelector"/>
<Property name="ContentDescriptor" value="Perks.Perks - Overview"/>
</Properties>
</Action>
</RootNavigationNode>
</Page>
<DefaultPageName>SpecialValues.1</DefaultPageName>
</PageGroup>
************************XML CODE END**********************

In the above XML Code, there is a field "<DisplayName>PacifiCare Perks® Overview</DisplayName>" where in we have to use the Superscript. ( to get Perks® Overview)

As you said we have used superscript tag around the charecters but it is showing "Internal server Error " in the application.

And I had project deadline I asked you to reply ASAP. Thats all.
This is the first time I have posted a query.

I really got hurt the way you both replied.

Hope you will get a solution for me.
Incomplete character set when embedding fonts in Flash MX on MacOS

I’m having problems displaying dynamic text in Flash MX. When I use an embedded (non device) font and publish the movie on a Macintosh, I lose some useful punctuation characters (curly quotes, en-dashes). If I publish the same file on Windows, it works okay. I’m guessing Flash on Macintosh isn’t embedding all the font outlines.

I’ve made a quick test flash source file. It’s a one-frame movie with a dynamic text field (with font embedded) which displays the variable “foo”, there’s a simple frame script:

foo = "this is an en dash: \u2013";
stop();

The \u2013 is a unicode escape for the en-dash character. The en-dash is available in the MacRoman codepage of my OS and is definitely available in the font (Verdana) I’m embedding.

I’ve been Googling to no avail and am now officially stumped. Someone posted a similar problem to the FlashCoders mailing list last October, which I find oddly reassuring.

It’s all massively frustrating because I’m now faced with the prospect of authoring on Windows for the duration of this project unless I can solve what’s going on! So now I’m soliciting for thoughts, advice, sympathy, tips, tricks, workarounds or guidance. Post them in my comments. Cheers!

Published at 12:05 pm on August 7th, 2003.
Topics: Flash
17 Comments

1.

More keywords for searchers: glyph, bug

Comment by Tim at 1:48 pm on August 11th, 2003 #link
2.

Still no solution. There’s more on fonts in MX here: http://www.waxpraxis.org/archives/000048.html. Someone in the comments was having problems getting bulleted lists to display on MacOS. Sounds like a similar problem.

Comment by Tim at 11:41 pm on September 8th, 2003 #link
3.

This has been fixed in Flash MX 2004. The problem seemed to be with the export to SWF from Flash 6, the same file exported from Flash 7 (as a Flash 6 SWF) plays fine in the old Flash 6 standalone player.

Comment by Tim at 12:26 am on September 11th, 2003 #link
4.

(Actually, I’m not totally sure this has been fully fixed). This sounds familiar: http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:89384

Comment by Tim at 10:56 pm on October 13th, 2003 #link
5.

Hi Tim, I have the same problem (macOs 9.2, flash MX) and it is a pain in the ass. I experience that it appears not with all fonts, and that the characters seem to be fine until the movie is exported for the first time. Also the characters are fine when writing into the textfield/in the working mode of the text. When you leave the Textfield the characters are distorted. i want to use the degree (�) and the german esszett (�), and both are displaying wrong. Macromedia posts this: http://www.macromedia.com/support/flash/ts/documents/macintosh_font.htm but after deleting all corrupt fonts on my system nothing changed in flash.

Does Flash MX 2004 solved this problem for you? If so, I will get it right now. It’s important for a job and I have to solve this…

Thank you and best wishes

Comment by martin at 1:37 pm on October 28th, 2003 #link
6.

Martin, Flash MX 2004 fixed the problem for the file I posted, although I haven’t done any extensive testing!

Comment by Tim at 3:14 pm on October 28th, 2003 #link
7.

Thank’s Tim, I’ll download the trial of Flash MX 2004 and test my file. The german version of MX isn’t ready, and I’m not working with X, yet. I just played around with MacOS X and tested some Apps, but I’m afraid that it will run far slower under production conditions. Flash MX is definitely faster on X than on 9. Can you recommend working with MacOs X?

All the Best

Comment by Martin at 4:26 pm on October 28th, 2003 #link
8.

I’m having a different, but similar problem. Let’s call it a codepage “interpretation” issue. This particular problem has NOT been fixed in Flash 2004.

I’m pulling XML data from database and certain characters get incorrectly interpreted. For instance, the “registered” glyph (R) is displayed as a “dieresis” (umlout.) And the “trademark” glyph appears as a “ordfeminine” (superscript a).

I “think” I know what the issue is…

Flash is embedding the font in “Latin 1252″ order. However, input is being interpreted as “MacRoman”. (Or vice versa…) Authoring the movie on windows fixes the incorrect interpretation.

By the way, the input format doesn’t matter (could be XML, HTML, text field.) The embedded Glyphs are in the wrong order.

Comment by Alex at 9:42 pm on April 6th, 2004 #link
9.

I’m going crazy over here. Flash 2004 is not showing special characters (Latin characters) for all my bitmap fonts. Even in static fields it doesnt interprete them correctly. I’m running out of ideas! Is there a way to work around that problem? I’m on Mac OSX

Comment by Arthur at 3:51 pm on July 21st, 2004 #link
10.

pain in the ass… but you could take a font, make all the uppercase characters superscript, and fill the lowercase characters with all the special symbols you need, embed the font, and in flash, change the font face to access superscript type and all the symbols you need. I was having problem not being able to get superscript text and symbols in dynamic text as well and is the only solution I could come up with.

Comment by devast at 3:15 am on October 13th, 2004 #link
11.

Hi, I have a problem with text in flash. Some of them looks good but some others looks blurry. How can i fix it ?

Comment by Gad at 1:13 am on December 18th, 2004 #link
12.

I have a similar problem with not being able to dynamically load special characters that are embedded.

If anyone has any clues to a solution. I am definatly embedding the characters, but when i load the textfile with the special characters, flash doesn’t load them at all and omits them.

:(

-tim s

Comment by Tim 2 at 7:17 pm on December 20th, 2004 #link
13.

We have problem in German language font display in Flash. All german text calling thru xml file some place it shows the characters but some place not. mostly special characters arae not display like two dots above ‘a’, ‘u’ etc..

How can i fix it ?

Comment by Parvez at 10:58 am on July 15th, 2005 #link
14.

I am using Flash 8 adn exporting to swf version 6. I’m embeeding all necessary flyphs and my output in German and French looks fine in IE but on Firefox all the special characters are not displaying. Is this problem fixed with MX 2004??

Comment by Greg at 9:29 am on May 4th, 2006 #link
15.

Helpful info for Windows users trying to embed foreign (to your OS) fonts in the library:

http://www.quasimondo.com/archives/000211.php

Comment by Mike at 1:20 am on November 2nd, 2006 #link
16.

System.useCodepage = true; solved the problem for me.

Comment by fibo at 12:54 am on August 3rd, 2007 #link
17.

Hey Tim, I have created a powerpoint on Windows XP in Microsoft Power Point 2007 and I am using an FTP interface to send the file to my boss whose computer is a Macintosh and when she opens the file it either says “power point cannot read main file” or it opens and all of the fonts are different on her computer. How can I embed the fonts to get them to show up on her computer?

Comment by Heather at 8:05 pm on August 31st, 2007 #link

 

Download Subscript & Superscript Fonts


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