code clean up 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/47e410b4 Tree: http://git-wip-us.apache.org/repos/asf/flex-examples/tree/47e410b4 Diff: http://git-wip-us.apache.org/repos/asf/flex-examples/diff/47e410b4 Branch: refs/heads/develop Commit: 47e410b4542e9220d5cf7e9cfbe59bc5bb4b11e9 Parents: 7a933e2 Author: nasha001 <[email protected]> Authored: Tue Jan 7 16:33:23 2014 -0500 Committer: OmPrakash Muppirala <[email protected]> Committed: Tue Nov 4 11:07:24 2014 -0800 ---------------------------------------------------------------------- tourdeflexmobile/src/TourDeFlexMobile.mxml | 31 +------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-examples/blob/47e410b4/tourdeflexmobile/src/TourDeFlexMobile.mxml ---------------------------------------------------------------------- diff --git a/tourdeflexmobile/src/TourDeFlexMobile.mxml b/tourdeflexmobile/src/TourDeFlexMobile.mxml index e49714c..9f7e9a3 100644 --- a/tourdeflexmobile/src/TourDeFlexMobile.mxml +++ b/tourdeflexmobile/src/TourDeFlexMobile.mxml @@ -78,7 +78,6 @@ limitations under the License. protected function init(event:FlexEvent):void { btn.addEventListener(MouseEvent.CLICK, slideButtonHandler); - //btn.addEventListener(UIButton.CLICKED, slideButtonHandler); _slideTimer.addEventListener(TimerEvent.TIMER, doSlide); _slideTimer.addEventListener(TimerEvent.TIMER_COMPLETE, slideComplete); @@ -96,8 +95,6 @@ limitations under the License. _slideTimer.repeatCount = Math.max(Math.floor(STEPS * (1 - navigators.x / lateralMenu.width)), 1); _slideTimer.reset(); _slideTimer.start(); - //moveIn.play(); - //moveOut.play(); } else { @@ -119,32 +116,10 @@ limitations under the License. navigators.x = 0; } } - - - - /* protected function menuHandler(event:MouseEvent):void - { - if(isOpen == true) - { - moveOut.play(); - stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown); - //navigators.mouseEnabled = navigators.mouseChildren = false; - navigators.includeInLayout = false; - isOpen = false; - } - else if(isOpen == false) - { - moveIn.play(); - stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDown); - //navigators.mouseEnabled = navigators.mouseChildren = true; - isOpen = true; - } - }*/ + protected function changeHandler(event:IndexChangeEvent):void { - //isOpen = false; - //moveIn.play(); close(); stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDown); navigator.pushView(componentsList.selectedItem.view); @@ -232,9 +207,6 @@ limitations under the License. <s:Group id="lateralMenu" width="225" y="0" height="100%"> - <!--s:Graphic width="100%" height="100%" click="menuBackgroundHandler(event)"> - <s:BitmapImage width="100%" height="100%" scaleMode="zoom" source="@Embed('assets/images/bg.png')"/> - </s:Graphic--> <s:List id="componentsList" itemRenderer="renderers.MenuRenderer" width="225" height="100%" change="changeHandler(event)" contentBackgroundColor="#000000"> @@ -260,7 +232,6 @@ limitations under the License. <fx:Object label="RolodexLayout" type="view" view="{RolodexLayoutView}"/> <fx:Object label="CarouselLayout" type="view" view="{CarouselLayoutView}"/> <fx:Object label="AccordionLayout" type="view" view="{AccordionLayoutView}"/> - <!-- <fx:Object label="StackLayout" type="view" view="{StackLayoutView}"/> --> <fx:Object label="AIR APIs" type="separator"/> <fx:Object label="SQLite" type="view" view="{SQLiteView}"/>
