Skip to content

Commit 1d3fae0

Browse files
author
as
committed
wip
1 parent 099e6e1 commit 1d3fae0

31 files changed

+166
-100
lines changed

bin/Falcon.swc

0 Bytes
Binary file not shown.

src/com/hendrix/feathers/controls/flex/ActionBar.as

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,27 @@ package com.hendrix.feathers.controls.flex
1212

1313
/**
1414
* <p>a very lite Action Bar component, requires a data provider</p>
15-
* <p><b>Example:</b><br>
16-
* <code>
17-
* this.dataProvier = Vector.Object([<br>
18-
* { id: "1", src: do1, align:"right"},<br>
19-
* { id: "2", src: do2, align:"center"},<br>
20-
* { id: "3", src: do3, align:"left"},<br>
21-
* { id: "4", src: do4, align:"left"}<br>
22-
* ]);</code><br>
15+
* <p><b>Example:</b>
16+
*
17+
* <pre>
18+
* this.dataProvier = Vector.Object([
19+
* { id: "1", src: do1, align:"right"},
20+
* { id: "2", src: do2, align:"center"},
21+
* { id: "3", src: do3, align:"left"},
22+
* { id: "4", src: do4, align:"left"}
23+
* ]);</pre><br>
24+
*
2325
* <b>Notes:</b>
26+
*
2427
* <ul>
25-
* <li>set <code>leftItemsPercentWidth/Height, rightItemsPercentWidth/Height, centerItemsPercentWidth/Height</code> to control layout</li>
26-
* <li>set <code>percentHeight</code> to control height of componenet relative to it's parent, or <code>height</code> to control pixel wise</li>
27-
* <li>set <code>bgSkinSource</code> to control background, it can be color, texture, class, bitmap etc..</li>
28-
* <li>set <code>onSelected</code> to listen to items being clicked, it will return an <code>id</code> string</li>
29-
* <li><code>src</code> can be any <code>DisplayObject</code></li>
30-
* <li>use <code>mrUpdateContent(id, src)</code> to update an exiting item</li>
28+
* <li>set <code>leftItemsPercentWidth/Height, rightItemsPercentWidth/Height, centerItemsPercentWidth/Height</code> to control layout</li>
29+
* <li>set <code>percentHeight</code> to control height of componenet relative to it's parent, or <code>height</code> to control pixel wise</li>
30+
* <li>set <code>bgSkinSource</code> to control background, it can be color, texture, class, bitmap etc..</li>
31+
* <li>set <code>onSelected</code> to listen to items being clicked, it will return an <code>id</code> string</li>
32+
* <li><code>src</code> can be any <code>DisplayObject</code></li>
33+
* <li>use <code>mrUpdateContent(id, src)</code> to update an exiting item</li>
3134
* </ul>
32-
* </p>
35+
*
3336
* @author Tomer Shalev
3437
*/
3538
public class ActionBar extends FlexComp

src/com/hendrix/feathers/controls/flex/AnimatedControl.as

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package com.hendrix.feathers.controls.flex
88

99
/**
1010
* animated control
11+
*
1112
* @author Tomer Shalev
1213
*
1314
*/

src/com/hendrix/feathers/controls/flex/Dialog.as

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ package com.hendrix.feathers.controls.flex
1919
import starling.events.Event;
2020

2121
/**
22-
* a Dialog control <br>
22+
* a Dialog control
23+
*
2324
* <li>use <code>this.dialogContent</code> to put a DisplayObject as the content of the dialog.
2425
* <li>use <code>this.textOK, this.textCANCEL, this.textHEADLINE</code> to alter the text.
2526
* <li>use <code>this.textCANCEL</code> to put a DisplayObject as the content of the dialog.
2627
* <li>use <code>this.tf_buttons, tf_headline</code> to control textFormat of buttons and headline respectively.
2728
* <li>use <code>this.embeddedFonts</code> to specify that the fonts are embedded or not.
2829
* <li>use <code>this.onAction</code> callback to listen to OK/CANCEL, callback will return ACTION_OK/ACTION_CANCEL respectively.
2930
* <li>use <code>this.show()/close()</code> to show/close the dialog.
31+
*
3032
* @author Tomer Shalev
3133
*
3234
*/

src/com/hendrix/feathers/controls/flex/FlexButton.as

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ package com.hendrix.feathers.controls.flex
1212

1313
/**
1414
* a responsive flex button, resizes both default icon and font's size.
15+
*
1516
* <li>use <code>this.fontPercentHeight</code>
1617
* <li>use <code>this.iconPercentHeight</code>
18+
*
1719
* @author Tomer Shalev
1820
*/
1921
public class FlexButton extends ToggleButton implements IFlexComp

src/com/hendrix/feathers/controls/flex/FlexComp.as

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@ package com.hendrix.feathers.controls.flex
1212
import starling.events.Event;
1313

1414
/**
15-
* flex comp implementation. extend this class to use it.
16-
* <p>
15+
* <p>flex comp implementation. extend this class to use it.
16+
* </p>
1717
* <b>Notes:</b>
18+
*
1819
* <ul>
19-
* <li>set <code>this.percentWidth/Height</code> to control sizing</li>
20-
* <li>set <code>this.top/bottom/left/right</code> to control layout</li>
21-
* <li>set <code>this.horizontalCenter, this.verticalCenter</code> to control position</li>
22-
* <li>set <code>this.relativeCalcWidthParent, this.relativeCalcHeightParent</code> override parent for <code>percentWidth/Height</code> calculations</li>
23-
* <li>set <code>onSelected</code> to listen to items being clicked, it will return an <code>id</code> string</li>
20+
* <li>set <code>this.percentWidth/Height</code> to control sizing</li>
21+
* <li>set <code>this.top/bottom/left/right</code> to control layout</li>
22+
* <li>set <code>this.horizontalCenter, this.verticalCenter</code> to control position</li>
23+
* <li>set <code>this.relativeCalcWidthParent, this.relativeCalcHeightParent</code> override parent for <code>percentWidth/Height</code> calculations</li>
24+
* <li>set <code>onSelected</code> to listen to items being clicked, it will return an <code>id</code> string</li>
2425
* </ul>
25-
* </p>
26+
*
2627
* @author Tomer Shalev
2728
*/
2829
public class FlexComp extends FeathersControl implements IFlexComp
@@ -53,7 +54,7 @@ package com.hendrix.feathers.controls.flex
5354
private var _horizontalAlign: String = null;
5455
private var _verticalAlign: String = null;
5556

56-
private var _isSensitiveToParent: Boolean = false;
57+
private var _isSensitiveToParent: Boolean = true;
5758

5859
private var _id: String = null;
5960

@@ -64,15 +65,16 @@ package com.hendrix.feathers.controls.flex
6465
/**
6566
* flex comp implementation. extend this class to use it.
6667
* <p>
67-
* <b>Notes:</b>
68-
* <ul>
69-
* <li>set <code>this.percentWidth/Height</code> to control sizing</li>
70-
* <li>set <code>this.top/bottom/left/right</code> to control layout</li>
71-
* <li>set <code>this.horizontalCenter, this.verticalCenter</code> to control position</li>
72-
* <li>set <code>this.relativeCalcWidthParent, this.relativeCalcHeightParent</code> override parent for <code>percentWidth/Height</code> calculations</li>
73-
* <li>set <code>onSelected</code> to listen to items being clicked, it will return an <code>id</code> string</li>
74-
* </ul>
75-
* </p>
68+
* <b>Notes:</b>
69+
* <ul>
70+
* <li>set <code>this.percentWidth/Height</code> to control sizing</li>
71+
* <li>set <code>this.top/bottom/left/right</code> to control layout</li>
72+
* <li>set <code>this.horizontalCenter, this.verticalCenter</code> to control position</li>
73+
* <li>set <code>this.relativeCalcWidthParent, this.relativeCalcHeightParent</code> override parent for <code>percentWidth/Height</code> calculations</li>
74+
* <li>set <code>onSelected</code> to listen to items being clicked, it will return an <code>id</code> string</li>
75+
* </ul>
76+
* </p>
77+
*
7678
* @author Tomer Shalev
7779
*/
7880
public function FlexComp()

src/com/hendrix/feathers/controls/flex/FlexImage.as

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ package com.hendrix.feathers.controls.flex
1212

1313
/**
1414
* <p>a Flex comp Image container</p>
15+
*
1516
* <ul>
16-
* <li>set <code>scaleMode</code> to <code>SCALEMODE_STRECTH, SCALEMODE_LETTERBOX, SCALEMODE_ZOOM, SCALEMODE_NONE</code></li>
17-
* <li>set <code>_forceDisposeConcreteTexture</code> to control disposal of concrete textures</li>
18-
* <li>set <code>source</code> to MrGfxManager package paths ala "packA::map", or disk path "../assets/a.png"</li>
19-
* </ul>
20-
* </p>
17+
* <li>set <code>scaleMode</code> to <code>SCALEMODE_STRECTH, SCALEMODE_LETTERBOX, SCALEMODE_ZOOM, SCALEMODE_NONE</code></li>
18+
* <li>set <code>_forceDisposeConcreteTexture</code> to control disposal of concrete textures</li>
19+
* <li>set <code>source</code> to MrGfxManager package paths ala "packA::map", or disk path "../assets/a.png"</li>
20+
* </ul>
21+
*
2122
* @author Tomer Shalev
2223
*/
2324
public class FlexImage extends FlexComp

src/com/hendrix/feathers/controls/flex/FlexList.as

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ package com.hendrix.feathers.controls.flex
1313
import starling.events.Event;
1414

1515
/**
16-
* a Feather list that implements IFlexComp
16+
* a Feather list that implements <code>IFlexComp</code>
17+
*
18+
* @see com.hendrix.feathers.controls.flex.interfaces.IFlexComp
19+
*
1720
* @author Tomer Shalev
1821
*/
1922
public class FlexList extends List implements IFlexComp

src/com/hendrix/feathers/controls/flex/FlexPageIndicator.as

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,22 @@ package com.hendrix.feathers.controls.flex
55
import feathers.events.FeathersEventType;
66

77
import starling.display.DisplayObject;
8-
import starling.events.Event;
98

109
/**
1110
* <p>a small extension for <code>PageIndicator</code> enabling the <code>gap</code> to be determined automatically with a max limit.
1211
* Extended only because <code>selectedSymbol</code> is protected.</p>
12+
*
1313
* <b>Notes</b>
14+
*
1415
* <li>use <code>maxSymbolWidth</code> for determining the max width for a symbol</li>
1516
* <li>use <code>maxGap</code> for determining the max Gap between symbols</li>
1617
* <li>use <code>typicalSymbol</code> for indicating a symbol, and thus make <code>arTypicalSymbol</code> available for sizing inside the symbol factories</li>
1718
* <li>use <code>arTypicalSymbol</code> if <code>typicalSymbol</code> was setup already to get the aspect ratio</li>
19+
*
1820
* <br><b>TODO:</b><br>
21+
*
1922
* currently only supports horizontal direction, extends to vertical.
23+
*
2024
* @author Tomer Shalev
2125
*/
2226
public class FlexPageIndicator extends PageIndicator

src/com/hendrix/feathers/controls/flex/FlexQuad.as

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ package com.hendrix.feathers.controls.flex
1212

1313
/**
1414
* a Flex Quad
15+
*
1516
* @author Tomer Shalev
1617
*/
1718
public class FlexQuad extends Quad implements IFlexComp

0 commit comments

Comments
 (0)