You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by bi...@apache.org on 2014/11/04 20:15:58 UTC

[08/22] git commit: [flex-examples] [refs/heads/develop] - updated readme, code clean up

updated readme, code clean up

Signed-off-by: OmPrakash Muppirala <bi...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/flex-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-examples/commit/af437fd0
Tree: http://git-wip-us.apache.org/repos/asf/flex-examples/tree/af437fd0
Diff: http://git-wip-us.apache.org/repos/asf/flex-examples/diff/af437fd0

Branch: refs/heads/develop
Commit: af437fd0cf412157e0a02d49cba51a6bdfb96965
Parents: 1edb570
Author: nasha001 <na...@DM-DT-NASH.hartford.gov>
Authored: Thu Jan 16 14:43:14 2014 -0500
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Tue Nov 4 11:07:34 2014 -0800

----------------------------------------------------------------------
 README.md                                  | 1 +
 tourdeflexmobile/src/TourDeFlexMobile.mxml | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-examples/blob/af437fd0/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 843d52e..7ff5b4c 100644
--- a/README.md
+++ b/README.md
@@ -9,3 +9,4 @@ Some Additional code was added to mirror the behavior of the Android Facebook ap
 
 The code used to slide off the navigator and slide it back was used from the Madcomponents source code. I modified it to work in a flex environment. It is not as smooth as a pure Madcomonent app, because it does not use Stage3D.
 
+***Just added a new mousedown event to slide the top navigator off.***
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-examples/blob/af437fd0/tourdeflexmobile/src/TourDeFlexMobile.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/TourDeFlexMobile.mxml b/tourdeflexmobile/src/TourDeFlexMobile.mxml
index f73ba31..ab09404 100644
--- a/tourdeflexmobile/src/TourDeFlexMobile.mxml
+++ b/tourdeflexmobile/src/TourDeFlexMobile.mxml
@@ -150,8 +150,8 @@ limitations under the License.
 				if (navigators.mouseEnabled && mouseX < 20)
 				{
 					_startX = mouseX;	
-					stage.addEventListener(MouseEvent.MOUSE_UP, mouseUp1);	
-					stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove1);
+					stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpOpen);	
+					stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveOpen);
 				}
 			} 			
 			
@@ -190,13 +190,13 @@ limitations under the License.
 				
 			}
 			
-			protected function mouseMove1(event:MouseEvent):void 
+			protected function mouseMoveOpen(event:MouseEvent):void 
 			{				
 				navigators.mouseEnabled = navigators.mouseChildren = false;		
 				navigators.x = Math.max(Math.min(mouseX + _startX, lateralMenu.width), 0);				
 			} 
 			
-			protected function mouseUp1(event:MouseEvent):void 
+			protected function mouseUpOpen(event:MouseEvent):void 
 			{		
 				stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUp1);
 				stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMove1);