Solved

subscript css and flash mx 2004

Posted on 2004-10-07
15
211 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
but i have it in a html file with my css tags can i still use it?
0
 
LVL 27

Expert Comment

by:negatyve
Comment Utility
could you past here the text you are using?
0
 

Author Comment

by:joe232323
Comment Utility
<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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 27

Expert Comment

by:negatyve
Comment Utility
And how do you load it?
0
 

Author Comment

by:joe232323
Comment Utility
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
Comment Utility
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
Comment Utility
Awsome it works!!
0
 

Author Comment

by:joe232323
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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 live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

763 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

9 Experts available now in Live!

Get 1:1 Help Now