Flash Q. Inserting an image.

Out of context: Reply #6

  • Started
  • Last post
  • 6 Responses
  • pkmlta0

    this uses an XML file rather than HTML:

    var ss1:TextField.StyleSheet = new TextField.StyleSheet();
    ss1.load("css/myStyles.css");
    news = new XML();
    news.ignoreWhite = true;
    news.load("sometext.html");
    news.onLoad = function() {
    news_mc.createTextField("newsbox... 2, 15, 40, 240, 265);
    with (news_mc.newsbox) {
    styleSheet = ss1;
    html = true;
    multiline = true;
    wordWrap = true;
    selectable = true;
    htmlText = news;
    }
    };

View thread