StyleSheet Problem

Hi,

I have this code here in Flash where I am dynamically populating a text component…


var styles = new TextField.StyleSheet();
var css_url="efarmasi.css";
styles.load(css_url);
styles.onLoad = function(ok) {
  if (ok) {
    // If the style sheet loaded without error, 
    // then assign it to the text object, 
    // and assign the HTML text to the text field.
    disptext.styleSheet = styles;
 disptext.text = storyText;
  }
};

Now, in the actual text is in a

  • form. But the problem is that Flash displays the text with a lot of line space in between. Is there a way to control this ?

    This is the code for the CSS

    
     
    ul { 
    list-style-type: none;
    padding-left:0px;
    margin-left:0px;
    } 
     
    li { 
    padding-left:0px;
    margin-bottom:0px;
    margin-left:0px;
    } 
    
    

    and the text I display is just this

    
    <ul>
    <li>This is my first line</li>
    <li>This is my second line</li>
    </ul>
    
    

    But this displays as

    
    This is my first line
     
    This is my second line
    
    

    I don’t know how the space comes in. Does Flash have a default.css that I must disable ?