using LinearGradient in spark flex


<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:mx="library://ns.adobe.com/flex/mx"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   width="200" height="200"
			   left="20" right="20"
			   top="20" bottom="20">
		<s:Rect x="0" y="0"
				height="100%" width="100%">
			<s:fill>
				<s:LinearGradient>
					<s:entries>
						<mx:GradientEntry color="0xFF0000"/>
						<mx:GradientEntry color="0x00FF00"/>
						<mx:GradientEntry color="0x0000FF"/>
					</s:entries>
				</s:LinearGradient>
			</s:fill>
		</s:Rect>
</s:Application>

Tags: , , ,

Hi, Stranger! Leave Your Comment...

Name (required)
Email (required)
Website