Skip to content

Commit

Permalink
Added display of progress icon into InputAssistSkin
Browse files Browse the repository at this point in the history
  • Loading branch information
JabbyPanda committed Oct 13, 2010
1 parent f5506d8 commit ed0234a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
Binary file added src/asset/hourglass.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/com/jabbypanda/assets/Icons.as
@@ -0,0 +1,9 @@
package com.jabbypanda.assets {

public final class Icons {

[Embed('/asset/hourglass.png')]
public static const Progress:Class;

}
}
3 changes: 3 additions & 0 deletions src/com/jabbypanda/controls/InputAssist.as
Expand Up @@ -50,6 +50,9 @@ package com.jabbypanda.controls {
[Bindable]
public var maxRows : Number = 6;

[Bindable]
public var processing : Boolean;

public var forceOpen : Boolean = true;

public var requireSelection : Boolean = false;
Expand Down
10 changes: 9 additions & 1 deletion src/com/jabbypanda/skins/InputAssistSkin.mxml
Expand Up @@ -14,6 +14,11 @@
[HostComponent("com.jabbypanda.controls.InputAssist")]
]]>
</fx:Metadata>
<fx:Script>
<![CDATA[
import com.jabbypanda.assets.Icons;
]]>
</fx:Script>
<s:states>
<s:State name="normal" />
<s:State name="disabled" />
Expand All @@ -37,5 +42,8 @@
</c:HighlightItemList>
</s:Group>
</s:PopUpAnchor>
<s:TextInput id="inputTxt" left="0" right="0" top="0" bottom="0"/>
<s:TextInput id="inputTxt" left="0" right="0" top="0" bottom="0"/>
<s:BitmapImage source="{Icons.Progress}"
visible="{hostComponent.processing}"
right="2" top="2" bottom="2"/>
</s:Skin>

0 comments on commit ed0234a

Please sign in to comment.