Solved

subscript css and flash mx 2004

Posted on 2004-10-07
15
213 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

910 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now