added a busyIndicator to the first page to signify loading Signed-off-by: OmPrakash Muppirala <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/flex-examples/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-examples/commit/7c9509bd Tree: http://git-wip-us.apache.org/repos/asf/flex-examples/tree/7c9509bd Diff: http://git-wip-us.apache.org/repos/asf/flex-examples/diff/7c9509bd Branch: refs/heads/develop Commit: 7c9509bd8fab0dff1beba06e3e5f8fbca0d3fb67 Parents: 8ef8de1 Author: nasha001 <[email protected]> Authored: Wed Jan 8 07:41:58 2014 -0500 Committer: OmPrakash Muppirala <[email protected]> Committed: Tue Nov 4 11:07:29 2014 -0800 ---------------------------------------------------------------------- tourdeflexmobile/src/TourDeFlexMobile.mxml | 3 +-- tourdeflexmobile/src/views/BlogView.mxml | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-examples/blob/7c9509bd/tourdeflexmobile/src/TourDeFlexMobile.mxml ---------------------------------------------------------------------- diff --git a/tourdeflexmobile/src/TourDeFlexMobile.mxml b/tourdeflexmobile/src/TourDeFlexMobile.mxml index 6233421..9a0e36a 100644 --- a/tourdeflexmobile/src/TourDeFlexMobile.mxml +++ b/tourdeflexmobile/src/TourDeFlexMobile.mxml @@ -191,8 +191,7 @@ limitations under the License. </fx:Script> <fx:Declarations> - <s:Move id="moveIn" duration="200" target="{navigators}" xTo="0"/> - <s:Move id="moveOut" duration="200" target="{navigators}" xTo="200"/> + </fx:Declarations> http://git-wip-us.apache.org/repos/asf/flex-examples/blob/7c9509bd/tourdeflexmobile/src/views/BlogView.mxml ---------------------------------------------------------------------- diff --git a/tourdeflexmobile/src/views/BlogView.mxml b/tourdeflexmobile/src/views/BlogView.mxml index 6e9f5b3..ba729e3 100644 --- a/tourdeflexmobile/src/views/BlogView.mxml +++ b/tourdeflexmobile/src/views/BlogView.mxml @@ -18,7 +18,8 @@ limitations under the License. --> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:s="library://ns.adobe.com/flex/spark" title="Apache Flex Blog" viewActivate="init(event)"> + xmlns:s="library://ns.adobe.com/flex/spark" + title="Apache Flex Blog" viewActivate="init(event)"> <fx:Script> <![CDATA[ import mx.rpc.events.ResultEvent; @@ -33,6 +34,7 @@ limitations under the License. protected function resultHandler(event:ResultEvent):void { + busyInc.visible= false; for(var i:uint = 0; i<=event.result.channel.item.length()-1; i++){ StyleableTextField(textArea.textDisplay).htmlText += "<b>" + event.result.channel.item[i].title + "</b>" + "\n" + "<i>" + event.result.channel.item[i].pubDate + "</i>" + "\n\n" + event.result.channel.item[i].description + "\n\n"; } @@ -48,5 +50,5 @@ limitations under the License. </fx:Declarations> <s:TextArea id="textArea" selectable="false" editable="false" skinClass="spark.skins.mobile.TextAreaSkin" left="5" right="5" top="5" bottom="5"/> - + <s:BusyIndicator id="busyInc" width="40" height="40" horizontalCenter="0" verticalCenter="0" symbolColor="0xFFFFFF"/> </s:View>
