blob: 30e84bfc61f7806c124e200aa7909755dd04896b [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<s:Application height="375" width="500" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" >
<s:layout>
<s:VerticalLayout />
</s:layout>
<fx:Script>
<![CDATA[
import mx.graphics.GradientEntry;
public var entries1:Array = [new GradientEntry(0xFFFFFF, 0, 1), new GradientEntry(0x00FF00, 128, 0), new GradientEntry(0xFF0000, 2, 1)];
public var entries2:Array = [new GradientEntry(0xFFCCFF0,1), new GradientEntry(0x0000FF,32,1),
new GradientEntry(0x9900FF,64, 1) , new GradientEntry(0xFF0000,128, 1) ,
new GradientEntry(0xFFFF00, 225, 1)];
[Bindable]
public var myMatrix:Array = [0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0];
[Bindable]
public var brightmatrix:Array = [-30, 30, 0, -30, 30, 0, -30, 30, 0];
]]>
</fx:Script>
<fx:Style source="../../../../../Assets/Fonts/myStyles.css" />
<mx:Box id="box1" paddingRight="5" paddingBottom="5">
<mx:MenuBar id="mb" >
<mx:filters>
<s:DropShadowFilter color="0xFF0000" distance="5" />
</mx:filters>
</mx:MenuBar>
</mx:Box>
<mx:Box id="box2" paddingRight="5" paddingBottom="5">
<mx:MenuBar id="mb2" >
<mx:filters>
<s:BevelFilter shadowColor="0xFF0000" distance="5"/>
</mx:filters>
</mx:MenuBar>
</mx:Box>
<mx:MenuBar id="mb3" >
<mx:filters>
<s:BlurFilter blurX="10" blurY="10" />
</mx:filters>
</mx:MenuBar>
<mx:MenuBar id="mb4" >
<mx:filters>
<s:ColorMatrixFilter matrix="{myMatrix}" />
</mx:filters>
</mx:MenuBar>
<mx:MenuBar id="mb5" >
<mx:filters>
<s:ConvolutionFilter matrixX="3" matrixY="3" matrix="{brightmatrix}"/>
</mx:filters>
</mx:MenuBar>
<mx:MenuBar id="mb7" >
<mx:filters>
<s:GlowFilter color="0x00FF00" />
</mx:filters>
</mx:MenuBar>
<mx:MenuBar id="mb8" >
<mx:filters>
<s:GradientBevelFilter
entries="{entries1}" blurX="8" blurY="8" distance="5"/>
</mx:filters>
</mx:MenuBar>
<mx:MenuBar id="mb9" >
<mx:filters>
<s:GradientGlowFilter entries="{entries2}" type="full" />
</mx:filters>
</mx:MenuBar>
</s:Application>