As3 Summary (3)

Source: Internet
Author: User

1. It is useless to listen on the keyboard, or the probability of being useful is very small. Later I found that
Select "Disable shortcut key" in.
2. Use as3 to generate a ComboBox, but do not know how to modify the style of the displayed text.
Find the cause and find the solution,CodeAs follows:
VaR TF: textformat = new textformat ("", 16, 0xff0000 );
// Set the style of the prompt in the first line of ComboBox
CB. textfield. setstyle ("textformat", TF );
// Set the text style in the ComboBox list
CB. dropdown. setrendererstyle ("textformat", TF );
3. An error has been reported since the ComboBox was generated. later it was found that it was a ComboBox style and scrollbar
Style conflict. You can re-add them in the library once.
4. Modify the component style in ComboBox. There are two parts: one is to change the style and change some of its attributes through as; the other is to change the style.
Change the appearance, import the component theme into the database, and change the resources in the theme to change the appearance (understanding is not clear)
.
5. The problem with drawing with as3 is that the post-drawn image will cover the previously drawn image.
To solve this problem, we can set the graphic hierarchy. Layer 0 is the lowest layer, that is, all
The bottom of the drawing. For example, if you have three sprite instances, you must set the layers to 0, 1, and 2, but not
It should be easy to understand that there are no 0th layers even on the 1st layer? However
Sprite. You have set 1 and 2. If the remaining one is not set, it will default to layer 0th.
Config. curui_arr [1]. setchildindex (minline, 1 );

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.