Flash xml + textArea component + CSS

Source: Internet
Author: User

Flash xml + textArea component + CSS

Code:
Stage. scaleMode = "noscale"; // system. useCodepage = "true"; // set the format of the component mytext.html = true; myText. wordWrap = true; myText. multiline = true; myText. label. condenseWhite = true; trace (myText. label); // create a style sheet object var myCss = new TextField. styleSheet (); // load cssmyCss. load ("content.css"); myText. styleSheet = myCss; // load XML to the text component var myXML = new XML (); myXML. onLoad = function (success) {if (success) {myText. text = myXML;} else {myText. text = "content cannot be loaded. xml ";}}; myXML. load ("content. xml ");

You may have seen the key points here. I found some problems during the production process. I wonder if it is a TEXTFIELD BUG. if you set the font width in the CSS style sheet, you must set all the content to bold or normal. If the content is thick or fine, in the text, an error is displayed. if you have solved the problem, leave a message.

Uploaded attachment
Xmlcss.zip (147.4 KB, 505 views)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.