blob: 977faf9cd185b9b5682d489c7a951af4e6591022 [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:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo">
<s:Panel width="100%" height="100%"
title="DropShadows with MXML Graphics Example"
x="0">
<s:Group horizontalCenter="0" y="5" width="117">
<s:Graphic id="ellipse1">
<s:filters>
<s:DropShadowFilter color="0x6080a0" alpha="0.6" distance="5" />
</s:filters>
<s:Ellipse x="30" y="20" width="60" height="60">
<s:fill>
<s:SolidColor color="0x60a0e0" />
</s:fill>
</s:Ellipse>
</s:Graphic>
<s:Graphic id="rect1" x="47" y="0" width="100">
<s:filters>
<s:DropShadowFilter color="0x002020" alpha="0.9" distance="8" angle="10"/>
</s:filters>
<s:Rect right="15" x="120" y="100" width="90" height="90">
<s:fill>
<s:SolidColor color="0x4060c0" />
</s:fill>
</s:Rect>
</s:Graphic>
<s:Graphic id="image1">
<s:filters>
<s:DropShadowFilter color="0xFF6600" alpha="0.7" distance="10" angle="-30"/>
</s:filters>
<s:BitmapImage source="@Embed('assets/ApacheFlexIcon.png')" x="180" y="20" />
</s:Graphic>
</s:Group>
<s:Label width="250" verticalAlign="justify" x="10" y="30"
text="The DropShadowFilter class lets you add a drop shadow to display
objects. The shadow algorithm is based on the same box filter that the blur filter uses. You have
several options for the style of the drop shadow, including inner or outer shadow and knockout mode.
You can apply the filter to any display object (that is, objects that inherit from the DisplayObject
class), such as MovieClip, SimpleButton, TextField, and Video objects, as well as to BitmapData objects."/>
</s:Panel>
</s:Module>