Flex application background color gradient

Source: Internet
Author: User

Today, I suddenly saw csdn a pretty tall handwritten little item, and found that the flex background color gradient looks pretty nice ~ As a result, I just wanted to see how to write it, and then I searched a lot like Google. I did not find any useful value in a circle. I also want to redefine skin... finally, I read flex3's API by myself. Actually, there is a function related to background color gradient. This estimation is too basic for others, but it should be posted. To tell my friends.

<? XML version = "1.0" encoding = "UTF-8"?> <Br/> <mx: Application backgroundgradientcolors = "{backgroundcolorfarearray}" xmlns: MX = "http://www.adobe.com/2006/mxml" layout = "absolute" width = "100%" Height = "100%"> <br/> <mx: SCRIPT> <br/> <! -- [CDATA [<br/> [Bindable] <br/> private var backgroundcolorfarearray: array = [0 xffffff, 0x003399]; <br/>] --> <br/> </MX: SCRIPT> <br/> <mx: panel borderalpha = "0.5" paddingtop = "100" paddingleft = "100" width = "90%" Height = "80%" horizontalscrollpolicy = "off" verticalscrollpolicy = "off" Title = "Photoes "> </P> <p> </MX: panel> <br/> </MX: Application> <br/> 

Defines an array. The two parameters in the array represent the start and end of the gradient color. Then use the backgroundgradientcolors in the application tag to reference this array .. That's simple .. It took me half an hour.

A friend asked me to send it, So I posted it ~ Laugh ~~

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.