<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!-- <!DOCTYPE Movie SYSTEM "dtd/RVML.dtd"> --> <Movie version='6' width='600' height='450' rate='12' backgroundColor='white' compressed='Yes' xmlns="http://www.kineticfusion.org/RVML/2.0"> <Title> Color Gradient Examples </Title> <Desc> Illustrates the definition of linear color gradients and radial color gradients. A simple mouse event handler will catch all mouseDown events to toggle between the two gradient types. </Desc> <Definitions> <FontDefinition id='Arial' fontName='Arial' fontStyle='(bold)' fontRange='defined' /> <EditField id='heading' bounds='bounds(-2, -2.0, 150, 14.0)' fieldName='' fontID='Arial' fontSize='12.0' alignment='left' charLimit='0' color='black' properties='(systemFont, autosize)'> <InitialText>Click to Change</InitialText> </EditField> <Shape id='linear' bounds='auto'> <FillStyles> <LinearGradient index='1' x='0' y='0' length='600' rotate='0'> <Stop offset='0' color='black' /> <Stop offset='100' color='white' /> </LinearGradient> <LinearGradient index='2' x='0.55' y='100.05' length='600' rotate='-27.32'> <Stop offset='0' color='black' /> <Stop offset='100' color='white' /> </LinearGradient> <LinearGradient index='3' x='-0.01' y='200.01' length='600' rotate='45'> <Stop offset='0' color='black' /> <Stop offset='100' color='white' /> </LinearGradient> <LinearGradient index='4' x='0.66' y='300.06' length='600' rotate='232.12'> <Stop offset='0' color='black' /> <Stop offset='100' color='white' /> </LinearGradient> </FillStyles> <LineStyles> <LineStyle index='1' width='1.0' color='rgb(4,4,4)' /> </LineStyles> <Edges> <Move x='600' y='81.9' /> <SetStyle line='1' rightFill='1' /> <Line x='0.0' y='81.9' /> <Line x='0.0' y='0.0' /> <Line x='600' y='0.0' /> <Line x='600' y='81.9' /> <Move x='600' y='181.9' /> <SetStyle rightFill='2' /> <Line x='0.0' y='181.9' /> <Line x='0.0' y='100.0' /> <Line x='600' y='100.0' /> <Line x='600' y='181.9' /> <Move x='600' y='281.9' /> <SetStyle rightFill='3' /> <Line x='0.0' y='281.9' /> <Line x='0.0' y='200.0' /> <Line x='600' y='200.0' /> <Line x='600' y='281.9' /> <Move x='600' y='381.9' /> <SetStyle rightFill='4' /> <Line x='0.0' y='381.9' /> <Line x='0.0' y='300.0' /> <Line x='600' y='300.0' /> <Line x='600' y='381.9' /> </Edges> </Shape> <Shape id='radial' bounds='auto'> <FillStyles> <RadialGradient index='1' cx='300' cy='40.95' rx='411.65' ry='411.65' rotate='0'> <Stop offset='0' color='black' /> <Stop offset='10' color='green' /> <Stop offset='10' color='yellow' /> <Stop offset='30' color='purple' /> <Stop offset='30' color='red' /> <Stop offset='72' color='black' /> <Stop offset='100' color='white' /> </RadialGradient> <RadialGradient index='2' cx='300' cy='138.9' rx='43.01' ry='371.15' rotate='89.83'> <Stop offset='0' color='black' /> <Stop offset='100' color='white' /> </RadialGradient> <RadialGradient index='3' cx='300' cy='240.95' rx='135.64' ry='411.65' rotate='0'> <Stop offset='0' color='black' /> <Stop offset='100' color='white' /> </RadialGradient> <RadialGradient index='4' cx='300' cy='340.95' rx='82.76' ry='82.76' rotate='-63.15'> <Stop offset='0' color='blue' /> <Stop offset='100' color='white' /> </RadialGradient> </FillStyles> <LineStyles> <LineStyle index='1' width='1.0' color='rgb(4,4,4)' /> </LineStyles> <Edges> <Move x='600' y='81.9' /> <SetStyle line='1' rightFill='1' /> <Line x='0.0' y='81.9' /> <Line x='0.0' y='0.0' /> <Line x='600' y='0.0' /> <Line x='600' y='81.9' /> <Move x='600' y='181.9' /> <SetStyle rightFill='2' /> <Line x='0.0' y='181.9' /> <Line x='0.0' y='100.0' /> <Line x='600' y='100.0' /> <Line x='600' y='181.9' /> <Move x='600' y='281.9' /> <SetStyle rightFill='3' /> <Line x='0.0' y='281.9' /> <Line x='0.0' y='200.0' /> <Line x='600' y='200.0' /> <Line x='600' y='281.9' /> <Move x='600' y='381.9' /> <SetStyle rightFill='4' /> <Line x='0.0' y='381.9' /> <Line x='0.0' y='300.0' /> <Line x='600' y='300.0' /> <Line x='600' y='381.9' /> </Edges> </Shape> <MovieClip id="Compare"> <Timeline> <Frame frameNo='1'> <Place name='linear' depth='1' /> <FrameActions>stop();</FrameActions> </Frame> <Frame frameNo='1'> <Replace name='radial' depth='1' /> <FrameActions>stop();</FrameActions> </Frame> </Timeline> </MovieClip> </Definitions> <Timeline> <Frame frameNo='1'> <Place name='heading' depth='1' x="250" y="15" /> <Place name='Compare' depth='2' x="0" y="50" > <MovieClipActions><![CDATA[ onClipEvent( load ) { normal= true; } onClipEvent( mouseDown ) { if ( normal) { gotoAndStop( 2); normal = false; } else { gotoAndStop( 1); normal = true; } } ]]></MovieClipActions> </Place> </Frame> </Timeline> </Movie>