Создайте свой собственный компонент (вы можете поместить его на ScrollPane позже) и нарисовать изображения самостоятельно -
MyComp.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:ViewNavigatorApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
firstView="views.MyCompHomeView">
</s:ViewNavigatorApplication>
вид \ MyCompHomeView.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:comps="comps.*" title="HomeView">
<comps:MyRect width="100%" height="100%"/>
</s:View>
comps \ MyRect.mxml (рисует красный прямоугольник с тенью внизу):
<?xml version="1.0" encoding="utf-8"?>
<mx:UIComponent xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="100%" height="100%">
<fx:Script>
<![CDATA[
import flash.filters.*;
public static const SHADOW:Array = [
new DropShadowFilter(10, 80, 0x000000,
0.5, 32, 32, 1, 1, false, false, false) ];
public static const GLOW:Array = [
new GlowFilter(0xFFFF00, 0.5,
36, 36, 1, 1, false, false) ];
private var rect:Shape = new Shape();
override protected function createChildren():void {
super.createChildren();
rect.graphics.beginFill(0xFF0000);
rect.graphics.drawRect(0, 0, 20, 20);
rect.filters = SHADOW;
addChild(rect);
}
override protected function updateDisplayList(
unscaledWidth:Number,
unscaledHeight:Number):void {
super.updateDisplayList(
unscaledWidth, unscaledHeight);
rect.x = unscaledWidth / 2;
rect.y = unscaledHeight / 2;
}
]]>
</fx:Script>
</mx:UIComponent>