Solved

subscript css and flash mx 2004

Posted on 2004-10-07
15
214 Views
Last Modified: 2012-08-14
Is there a way to use supscript with css or in the html code? I cant seem to get subscript to work.
0
Comment
Question by:joe232323
  • 7
  • 6
15 Comments
 
LVL 27

Expert Comment

by:negatyve
ID: 12249773
No, unless you use characters' codes like this:

text_txt.text = "test superscript \u00b3\u00b2\u00b9"

or

text_txt.text = unescape("test superscript %b3%b2%b9")


But it should depend on the font, and the unicode code for each character...
0
 

Author Comment

by:joe232323
ID: 12250013
well have the text in external html file. How would i use this \u00b3\u00b2\u00b9? I tried it and it just printed out \u00b3\u00b2\u00b9.
0
 
LVL 27

Expert Comment

by:negatyve
ID: 12250150
When using an external text, use: %b3%b2%b9 and unescape the data before setting it to a text. For example:

- create a text file, name it "myText.txt", and write in it "my text %b3%b2%b9" (without quotes);
- create a flash movie
- try this code:

data_var = new LoadVars();
data_var.onData = function(raw)
{
      trace(unescape(raw));
};
data_var.load("myText.txt")
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:joe232323
ID: 12250166
but i have it in a html file with my css tags can i still use it?
0
 
LVL 27

Expert Comment

by:negatyve
ID: 12250260
could you past here the text you are using?
0
 

Author Comment

by:joe232323
ID: 12250301
<body>
  <headline>Overview of Psoriasis Treatments Available or in Development</headline>
 

<bulletText><br><p><li>As the severity of psoriasis can range from mild to severe, available treatments range from minimally invasive with a low risk of systemic side effects to systemic therapy, which may be associated with potentially severe side effects

"NEED SUBSCRIPT 1 HERE"

</li></p><p><li>Topical treatments may also have significant side effects; for example, topical corticosteroids applied to large areas of the skin may result in substantial levels of systemic absorption and local toxicity (striae, acne,  etc). Acceptability and convenience of topical treatments may vary depending on the body surface area affected by psoriasis; for example, while coal tar is generally considered to be very safe, it may be unpleasant and inconvenient for many patients</li></p><p><li>Several conventional systemic treatments and phototherapy options have cumulative toxicity profiles. These include cyclosporine (CyA), methotrexate (MTX), and psoralen plus ultraviolet A (PUVA) light. As such, these therapies are inappropriate for long-term maintenance therapy </li></p><p><li>For patients with psoriasis disease severity requiring maintenance systemic therapy, acitretin is the most appropriate option. Additionally, biologic therapies either approved by the US Food and Drug Administration for psoriasis (alefacept, efalizumab, and etanercept) or in development for psoriasis (infliximab and adalimumab) may also be able to provide psoriasis patients with safe long-term control of their disease
</li></p></bulletText><br></body>
0
 
LVL 27

Expert Comment

by:negatyve
ID: 12250698
And how do you load it?
0
 

Author Comment

by:joe232323
ID: 12250763
threw a class file like this: Note the top of the class file not shown


notesXML = new XML();
    notesXML.ignoreWhite = true;
   loadNotes("com/libary/notes/slideNote" + num + ".html")

 



      }
      
      public function loadNotes(URL:String){
            var clip = container_mc.notesHolder
            
            

       notesXML.onLoad = function(success:Boolean):Void{
        if(success){
            
             
              clip.htmlText = this;
              clip.scroll =0;
              unescape(clip.htmlText);
            
          }else{
            trace("Could not load xml");
            }
        }
            notesXML.load(URL);
}
0
 
LVL 27

Accepted Solution

by:
negatyve earned 500 total points
ID: 12250895
which may be associated with potentially severe side effects

subscript%b3subscript%b2subscript%b9

</li></p><p><li>

and

notesXML.onLoad = function(success:Boolean):Void
{
      if(success){
            clip.html = true;
            clip.htmlText = unescape(this);
            clip.scroll = 0;
      }else{
            trace("Could not load xml");
      }
}
0
 

Author Comment

by:joe232323
ID: 12251020
Awsome it works!!
0
 

Author Comment

by:joe232323
ID: 12251070
One more question...How do i make the text larger and where can i find these codes for the symbols like "%" because all the % signs i have in my html dont show
0
 

Author Comment

by:joe232323
ID: 12251498
Oh your not answer my question unless you get points, thats sad. thanks alot. I get it take the points and run
0
 
LVL 27

Expert Comment

by:negatyve
ID: 12251616
wait wait wait, I was just outside to buy some food.. :)  (you see, I do not need points.. )

>How do i make the text larger

for example:

==========================================
systemic side effects to systemic therapy, which may be associated with potentially severe side effects

<font size="5">subscript</font>%b3<font size="30">subscript</font>%b2subscript%b9

</li></p><p><li>
==========================================

>where can i find these codes for the symbols like "%"

start from here: http://www.macromedia.com/support/flash/ts/documents/url_encoding.htm
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question