adding example for 03e1
This commit is contained in:
parent
d76652d16f
commit
ea59d56758
107
03e1-accordion/Recipe.mxml
Normal file
107
03e1-accordion/Recipe.mxml
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
|
||||||
|
backgroundColor="#FFFFFF"
|
||||||
|
backgroundAlpha="0"
|
||||||
|
horizontalAlign="left"
|
||||||
|
verticalGap="15" horizontalGap="15">
|
||||||
|
|
||||||
|
<mx:Panel title="Chocolate Cake">
|
||||||
|
|
||||||
|
<mx:Accordion id="ac"
|
||||||
|
width="335"
|
||||||
|
selectedIndex="0"
|
||||||
|
historyManagementEnabled="false">
|
||||||
|
|
||||||
|
<mx:VBox label="Yummy!"
|
||||||
|
horizontalAlign="center"
|
||||||
|
verticalAlign="middle"
|
||||||
|
width="300" height="300">
|
||||||
|
<mx:Image source="assets/dessert_decadent_cake.jpg" />
|
||||||
|
<mx:Button label="Order - $5.00"
|
||||||
|
click="ac.selectedIndex=5" />
|
||||||
|
</mx:VBox>
|
||||||
|
|
||||||
|
<mx:VBox label="Equipment Needed"
|
||||||
|
height="300">
|
||||||
|
<mx:TextArea width="300" height="100%"
|
||||||
|
borderThickness="0">
|
||||||
|
<mx:htmlText>
|
||||||
|
<![CDATA[
|
||||||
|
- Mixer
|
||||||
|
- Measuring cups
|
||||||
|
- Measuring spoons
|
||||||
|
- Mixing Bowls
|
||||||
|
- Mixing spoons
|
||||||
|
- Cake pans
|
||||||
|
]]>
|
||||||
|
</mx:htmlText>
|
||||||
|
</mx:TextArea>
|
||||||
|
</mx:VBox>
|
||||||
|
|
||||||
|
<mx:VBox label="Ingredients"
|
||||||
|
height="300">
|
||||||
|
<mx:TextArea width="300" height="100%"
|
||||||
|
borderThickness="0">
|
||||||
|
<mx:htmlText>
|
||||||
|
<![CDATA[
|
||||||
|
- Eggs
|
||||||
|
- Butter
|
||||||
|
- Flour
|
||||||
|
- Salt
|
||||||
|
- Chocolate
|
||||||
|
- Vanilla
|
||||||
|
- Baking Powder
|
||||||
|
- Milk
|
||||||
|
]]>
|
||||||
|
</mx:htmlText>
|
||||||
|
</mx:TextArea>
|
||||||
|
</mx:VBox>
|
||||||
|
|
||||||
|
<mx:VBox label="Instructions"
|
||||||
|
height="300">
|
||||||
|
<mx:Text text="1. Mix all dry ingredients in mixing bowl" />
|
||||||
|
<mx:Text text="2. Mix all wet ingredients in another mixing bowl" />
|
||||||
|
<mx:Text text="3. Mix wet and dry ingredients with mixer until smooth." />
|
||||||
|
<mx:Text text="4. Melt chocolate, add to mixture and mix until even." />
|
||||||
|
<mx:Text text="5. Pour into cake pan and bake at 350 for 40 minutes." />
|
||||||
|
<mx:Text text="6. Let cool then frost." />
|
||||||
|
</mx:VBox>
|
||||||
|
|
||||||
|
<mx:VBox label="Nutritional Information"
|
||||||
|
height="300">
|
||||||
|
<mx:Text text="Servings: 1" />
|
||||||
|
<mx:Text text="Calories: 10,000" />
|
||||||
|
<mx:Text text="Fat: 10 grams" />
|
||||||
|
</mx:VBox>
|
||||||
|
|
||||||
|
<mx:VBox label="Order Form">
|
||||||
|
<mx:Form>
|
||||||
|
<mx:FormItem label="Name">
|
||||||
|
<mx:TextInput id="customer" />
|
||||||
|
</mx:FormItem>
|
||||||
|
<mx:FormItem label="Address">
|
||||||
|
<mx:TextInput id="address" />
|
||||||
|
</mx:FormItem>
|
||||||
|
<mx:FormItem label="City">
|
||||||
|
<mx:TextInput id="city" />
|
||||||
|
</mx:FormItem>
|
||||||
|
<mx:FormItem label="State">
|
||||||
|
<mx:TextInput id="state" />
|
||||||
|
</mx:FormItem>
|
||||||
|
<mx:FormItem label="Zip">
|
||||||
|
<mx:TextInput id="zip" />
|
||||||
|
</mx:FormItem>
|
||||||
|
<mx:FormItem label="Credit Card">
|
||||||
|
<mx:TextInput id="cc" />
|
||||||
|
</mx:FormItem>
|
||||||
|
<mx:FormItem>
|
||||||
|
<mx:Button label="submit" />
|
||||||
|
</mx:FormItem>
|
||||||
|
</mx:Form>
|
||||||
|
</mx:VBox>
|
||||||
|
|
||||||
|
</mx:Accordion>
|
||||||
|
|
||||||
|
</mx:Panel>
|
||||||
|
|
||||||
|
</mx:Application>
|
1
03e1-accordion/assets
Symbolic link
1
03e1-accordion/assets
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../_assets
|
BIN
_assets/dessert_decadent_cake.jpg
Normal file
BIN
_assets/dessert_decadent_cake.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.9 KiB |
@ -131,6 +131,10 @@
|
|||||||
$(MXMLC) 03d4-tilelist/TileListExample.mxml -warnings -l+=03d4-tilelist -output 03d4-tilelist/TileListExample.swf
|
$(MXMLC) 03d4-tilelist/TileListExample.mxml -warnings -l+=03d4-tilelist -output 03d4-tilelist/TileListExample.swf
|
||||||
|
|
||||||
|
|
||||||
|
03e1-accordion/Recipe.swf: 03e1-accordion/Recipe.mxml
|
||||||
|
$(MXMLC) 03e1-accordion/Recipe.mxml -warnings -l+=03e1-accordion -output 03e1-accordion/Recipe.swf
|
||||||
|
|
||||||
|
|
||||||
custom-03d1-datagrid/Snarf.swf: custom-03d1-datagrid/Snarf.mxml custom-03d1-datagrid/CustomApp.as
|
custom-03d1-datagrid/Snarf.swf: custom-03d1-datagrid/Snarf.mxml custom-03d1-datagrid/CustomApp.as
|
||||||
$(MXMLC) custom-03d1-datagrid/Snarf.mxml -warnings -l+=custom-03d1-datagrid -output custom-03d1-datagrid/Snarf.swf
|
$(MXMLC) custom-03d1-datagrid/Snarf.mxml -warnings -l+=custom-03d1-datagrid -output custom-03d1-datagrid/Snarf.swf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user