mostly busted custom version of 03d4

cat-town
Dan Buch 15 years ago
parent 111bf2c489
commit d76652d16f

@ -1,10 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<loc:TileListApp xmlns:mx="http://www.adobe.com/2006/mxml" <loc:TileListApp xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:loc="*" styleName="basic-app" xmlns:loc="*">
backgroundColor="#FFFFFF" <mx:Style source="tilelist.css" />
backgroundAlpha="0"
horizontalAlign="left"
verticalGap="15" horizontalGap="15">
<!-- photo service --> <!-- photo service -->
<mx:HTTPService id="photoService" <mx:HTTPService id="photoService"
@ -13,35 +10,29 @@
<!-- search --> <!-- search -->
<mx:Form> <mx:Form>
<mx:FormItem label="Search Term" <mx:FormItem label="Search Term" direction="horizontal">
direction="horizontal">
<mx:TextInput id="searchTerms" /> <mx:TextInput id="searchTerms" />
<mx:Button label="Search" <mx:Button label="Search" click="requestPhotos()" />
click="requestPhotos()" />
</mx:FormItem> </mx:FormItem>
</mx:Form> </mx:Form>
<!-- result, data is passed to the itemRenderer by Flex <!-- result, data is passed to the itemRenderer by Flex
through the data property --> through the data property -->
<mx:TileList id="mylist" <mx:TileList id="mylist"
styleName="basic-style-list"
labelField="thumbnail" labelField="thumbnail"
dataProvider="{photoFeed}" dataProvider="{photoFeed}"
width="600" height="200"
paddingTop="25" left="5"
itemClick="showMessage(event)"> itemClick="showMessage(event)">
<mx:itemRenderer> <mx:itemRenderer>
<mx:Component> <mx:Component>
<mx:VBox width="125" height="125" <mx:VBox styleName="basic-vbox">
paddingRight="5" paddingLeft="5" <mx:Image styleName="basic-image"
horizontalAlign="center">
<mx:Image
height="75" width="75"
source="{data.thumbnail.url}"/> source="{data.thumbnail.url}"/>
</mx:VBox> </mx:VBox>
</mx:Component> </mx:Component>
</mx:itemRenderer> </mx:itemRenderer>
</mx:TileList> </mx:TileList>
<mx:Text id="textMessage" paddingTop="20" /> <mx:Text id="textMessage" styleName="basic-text" />
</loc:TileListApp> </loc:TileListApp>

@ -0,0 +1,39 @@
.basic-app {
backgroundColor: #ffffff;
backgroundAlpha: 0;
horizontalAlign: left;
verticalGap: 15;
horizontalGap: 15;
}
.basic-style-list {
width: 600;
height: 200;
paddingTop: 25;
left: 5;
}
.basic-form-item {
direction: horizontal;
}
.basic-vbox {
width: 125;
height: 125;
paddingRight: 5;
paddingLeft: 5;
horizontalAlign: center;
}
.basic-image {
height: 75;
width: 75;
}
.basic-text {
paddingTop: 20;
}

@ -147,3 +147,7 @@ custom-03d3-lists/ListControl.swf: custom-03d3-lists/ListControl.mxml custom-03d
$(MXMLC) custom-03d3-lists/ListControl.mxml -warnings -l+=custom-03d3-lists -output custom-03d3-lists/ListControl.swf $(MXMLC) custom-03d3-lists/ListControl.mxml -warnings -l+=custom-03d3-lists -output custom-03d3-lists/ListControl.swf
custom-03d4-tilelist/TileListExample.swf: custom-03d4-tilelist/TileListExample.mxml custom-03d4-tilelist/tilelist.css custom-03d4-tilelist/TileListApp.as
$(MXMLC) custom-03d4-tilelist/TileListExample.mxml -warnings -l+=custom-03d4-tilelist -output custom-03d4-tilelist/TileListExample.swf

Loading…
Cancel
Save