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 ~~