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/12/10 21:41:35 UTC
[1/3] git commit: [flex-examples] [refs/heads/develop] - some bug
fixes
Repository: flex-examples
Updated Branches:
refs/heads/develop 991e206f9 -> ce401d566
some bug fixes
Project: http://git-wip-us.apache.org/repos/asf/flex-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-examples/commit/67a2807b
Tree: http://git-wip-us.apache.org/repos/asf/flex-examples/tree/67a2807b
Diff: http://git-wip-us.apache.org/repos/asf/flex-examples/diff/67a2807b
Branch: refs/heads/develop
Commit: 67a2807bd4c1dbfc2829b38d29aed0e316773c19
Parents: 991e206
Author: nasha001 <na...@DM-DT-NASH.hartford.gov>
Authored: Wed Nov 12 10:54:50 2014 -0500
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Wed Dec 10 12:24:19 2014 -0800
----------------------------------------------------------------------
tourdeflexmobile/.project | 11 +++++++++++
.../src/LayoutViews/AccordionLayoutView.mxml | 6 +++---
tourdeflexmobile/src/LayoutViews/CarouselLayoutView.mxml | 6 +++---
.../src/LayoutViews/CoverFlowLayoutView.mxml | 6 +++---
.../src/LayoutViews/HorizontalLayoutView.mxml | 6 +++---
tourdeflexmobile/src/LayoutViews/RolodexLayoutView.mxml | 6 +++---
tourdeflexmobile/src/LayoutViews/StackLayoutView.mxml | 6 +++---
tourdeflexmobile/src/LayoutViews/TileLayoutView.mxml | 6 +++---
.../src/LayoutViews/TimeMachineLayoutView.mxml | 6 +++---
tourdeflexmobile/src/LayoutViews/VerticalLayoutView.mxml | 6 +++---
tourdeflexmobile/src/TourDeFlexMobile.mxml | 4 ++--
11 files changed, 40 insertions(+), 29 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/67a2807b/tourdeflexmobile/.project
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/.project b/tourdeflexmobile/.project
new file mode 100644
index 0000000..12acfdb
--- /dev/null
+++ b/tourdeflexmobile/.project
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>tourdeflexmobileApache</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/67a2807b/tourdeflexmobile/src/LayoutViews/AccordionLayoutView.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/LayoutViews/AccordionLayoutView.mxml b/tourdeflexmobile/src/LayoutViews/AccordionLayoutView.mxml
index 87f344f..66a0b5c 100644
--- a/tourdeflexmobile/src/LayoutViews/AccordionLayoutView.mxml
+++ b/tourdeflexmobile/src/LayoutViews/AccordionLayoutView.mxml
@@ -48,15 +48,15 @@ limitations under the License.
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/1.png')"
source240dpi="@Embed('assets/icons/240/1.png')"
source320dpi="@Embed('assets/icons/320/1.png')"
- source480dpi="@Embed('assets/icons/480/1.png" id="box1"/>
+ source480dpi="@Embed('assets/icons/480/1.png')" id="box1"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/2.png')"
source240dpi="@Embed('assets/icons/240/2.png')"
source320dpi="@Embed('assets/icons/320/2.png')"
- source480dpi="@Embed('assets/icons/480/2.png" id="box2"/>
+ source480dpi="@Embed('assets/icons/480/2.png')" id="box2"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/3.png')"
source240dpi="@Embed('assets/icons/240/3.png')"
source320dpi="@Embed('assets/icons/320/3.png')"
- source480dpi="@Embed('assets/icons/480/3.png" id="box3"/>
+ source480dpi="@Embed('assets/icons/480/3.png')" id="box3"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/about.png')" id="aboutIcon"
source240dpi="@Embed('assets/icons/240/about.png')"
source320dpi="@Embed('assets/icons/320/about.png')"
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/67a2807b/tourdeflexmobile/src/LayoutViews/CarouselLayoutView.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/LayoutViews/CarouselLayoutView.mxml b/tourdeflexmobile/src/LayoutViews/CarouselLayoutView.mxml
index 46c0ab8..daa4ad5 100644
--- a/tourdeflexmobile/src/LayoutViews/CarouselLayoutView.mxml
+++ b/tourdeflexmobile/src/LayoutViews/CarouselLayoutView.mxml
@@ -47,15 +47,15 @@ limitations under the License.
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/1.png')"
source240dpi="@Embed('assets/icons/240/1.png')"
source320dpi="@Embed('assets/icons/320/1.png')"
- source480dpi="@Embed('assets/icons/480/1.png" id="box1"/>
+ source480dpi="@Embed('assets/icons/480/1.png')" id="box1"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/2.png')"
source240dpi="@Embed('assets/icons/240/2.png')"
source320dpi="@Embed('assets/icons/320/2.png')"
- source480dpi="@Embed('assets/icons/480/2.png" id="box2"/>
+ source480dpi="@Embed('assets/icons/480/2.png')" id="box2"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/3.png')"
source240dpi="@Embed('assets/icons/240/3.png')"
source320dpi="@Embed('assets/icons/320/3.png')"
- source480dpi="@Embed('assets/icons/480/3.png" id="box3"/>
+ source480dpi="@Embed('assets/icons/480/3.png')" id="box3"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/about.png')" id="aboutIcon"
source240dpi="@Embed('assets/icons/240/about.png')"
source320dpi="@Embed('assets/icons/320/about.png')"
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/67a2807b/tourdeflexmobile/src/LayoutViews/CoverFlowLayoutView.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/LayoutViews/CoverFlowLayoutView.mxml b/tourdeflexmobile/src/LayoutViews/CoverFlowLayoutView.mxml
index f24fc3c..cea5439 100644
--- a/tourdeflexmobile/src/LayoutViews/CoverFlowLayoutView.mxml
+++ b/tourdeflexmobile/src/LayoutViews/CoverFlowLayoutView.mxml
@@ -47,15 +47,15 @@ limitations under the License.
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/1.png')"
source240dpi="@Embed('assets/icons/240/1.png')"
source320dpi="@Embed('assets/icons/320/1.png')"
- source480dpi="@Embed('assets/icons/480/1.png" id="box1"/>
+ source480dpi="@Embed('assets/icons/480/1.png')" id="box1"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/2.png')"
source240dpi="@Embed('assets/icons/240/2.png')"
source320dpi="@Embed('assets/icons/320/2.png')"
- source480dpi="@Embed('assets/icons/480/2.png" id="box2"/>
+ source480dpi="@Embed('assets/icons/480/2.png')" id="box2"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/3.png')"
source240dpi="@Embed('assets/icons/240/3.png')"
source320dpi="@Embed('assets/icons/320/3.png')"
- source480dpi="@Embed('assets/icons/480/3.png" id="box3"/>
+ source480dpi="@Embed('assets/icons/480/3.png')" id="box3"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/about.png')" id="aboutIcon"
source240dpi="@Embed('assets/icons/240/about.png')"
source320dpi="@Embed('assets/icons/320/about.png')"
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/67a2807b/tourdeflexmobile/src/LayoutViews/HorizontalLayoutView.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/LayoutViews/HorizontalLayoutView.mxml b/tourdeflexmobile/src/LayoutViews/HorizontalLayoutView.mxml
index d7c1b2f..d8befda 100644
--- a/tourdeflexmobile/src/LayoutViews/HorizontalLayoutView.mxml
+++ b/tourdeflexmobile/src/LayoutViews/HorizontalLayoutView.mxml
@@ -46,15 +46,15 @@ limitations under the License.
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/1.png')"
source240dpi="@Embed('assets/icons/240/1.png')"
source320dpi="@Embed('assets/icons/320/1.png')"
- source480dpi="@Embed('assets/icons/480/1.png" id="box1"/>
+ source480dpi="@Embed('assets/icons/480/1.png')" id="box1"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/2.png')"
source240dpi="@Embed('assets/icons/240/2.png')"
source320dpi="@Embed('assets/icons/320/2.png')"
- source480dpi="@Embed('assets/icons/480/2.png" id="box2"/>
+ source480dpi="@Embed('assets/icons/480/2.png')" id="box2"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/3.png')"
source240dpi="@Embed('assets/icons/240/3.png')"
source320dpi="@Embed('assets/icons/320/3.png')"
- source480dpi="@Embed('assets/icons/480/3.png" id="box3"/>
+ source480dpi="@Embed('assets/icons/480/3.png')" id="box3"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/about.png')" id="aboutIcon"
source240dpi="@Embed('assets/icons/240/about.png')"
source320dpi="@Embed('assets/icons/320/about.png')"
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/67a2807b/tourdeflexmobile/src/LayoutViews/RolodexLayoutView.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/LayoutViews/RolodexLayoutView.mxml b/tourdeflexmobile/src/LayoutViews/RolodexLayoutView.mxml
index c6f675e..6c38535 100644
--- a/tourdeflexmobile/src/LayoutViews/RolodexLayoutView.mxml
+++ b/tourdeflexmobile/src/LayoutViews/RolodexLayoutView.mxml
@@ -47,15 +47,15 @@ limitations under the License.
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/1.png')"
source240dpi="@Embed('assets/icons/240/1.png')"
source320dpi="@Embed('assets/icons/320/1.png')"
- source480dpi="@Embed('assets/icons/480/1.png" id="box1"/>
+ source480dpi="@Embed('assets/icons/480/1.png')" id="box1"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/2.png')"
source240dpi="@Embed('assets/icons/240/2.png')"
source320dpi="@Embed('assets/icons/320/2.png')"
- source480dpi="@Embed('assets/icons/480/2.png" id="box2"/>
+ source480dpi="@Embed('assets/icons/480/2.png')" id="box2"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/3.png')"
source240dpi="@Embed('assets/icons/240/3.png')"
source320dpi="@Embed('assets/icons/320/3.png')"
- source480dpi="@Embed('assets/icons/480/3.png" id="box3"/>
+ source480dpi="@Embed('assets/icons/480/3.png')" id="box3"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/about.png')" id="aboutIcon"
source240dpi="@Embed('assets/icons/240/about.png')"
source320dpi="@Embed('assets/icons/320/about.png')"
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/67a2807b/tourdeflexmobile/src/LayoutViews/StackLayoutView.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/LayoutViews/StackLayoutView.mxml b/tourdeflexmobile/src/LayoutViews/StackLayoutView.mxml
index 3c0f41f..fc6be6b 100644
--- a/tourdeflexmobile/src/LayoutViews/StackLayoutView.mxml
+++ b/tourdeflexmobile/src/LayoutViews/StackLayoutView.mxml
@@ -47,15 +47,15 @@ limitations under the License.
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/1.png')"
source240dpi="@Embed('assets/icons/240/1.png')"
source320dpi="@Embed('assets/icons/320/1.png')"
- source480dpi="@Embed('assets/icons/480/1.png" id="box1"/>
+ source480dpi="@Embed('assets/icons/480/1.png')" id="box1"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/2.png')"
source240dpi="@Embed('assets/icons/240/2.png')"
source320dpi="@Embed('assets/icons/320/2.png')"
- source480dpi="@Embed('assets/icons/480/2.png" id="box2"/>
+ source480dpi="@Embed('assets/icons/480/2.png')" id="box2"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/3.png')"
source240dpi="@Embed('assets/icons/240/3.png')"
source320dpi="@Embed('assets/icons/320/3.png')"
- source480dpi="@Embed('assets/icons/480/3.png" id="box3"/>
+ source480dpi="@Embed('assets/icons/480/3.png')" id="box3"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/about.png')" id="aboutIcon"
source240dpi="@Embed('assets/icons/240/about.png')"
source320dpi="@Embed('assets/icons/320/about.png')"
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/67a2807b/tourdeflexmobile/src/LayoutViews/TileLayoutView.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/LayoutViews/TileLayoutView.mxml b/tourdeflexmobile/src/LayoutViews/TileLayoutView.mxml
index 6dc48eb..a030aae 100644
--- a/tourdeflexmobile/src/LayoutViews/TileLayoutView.mxml
+++ b/tourdeflexmobile/src/LayoutViews/TileLayoutView.mxml
@@ -46,15 +46,15 @@ limitations under the License.
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/1.png')"
source240dpi="@Embed('assets/icons/240/1.png')"
source320dpi="@Embed('assets/icons/320/1.png')"
- source480dpi="@Embed('assets/icons/480/1.png" id="box1"/>
+ source480dpi="@Embed('assets/icons/480/1.png')" id="box1"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/2.png')"
source240dpi="@Embed('assets/icons/240/2.png')"
source320dpi="@Embed('assets/icons/320/2.png')"
- source480dpi="@Embed('assets/icons/480/2.png" id="box2"/>
+ source480dpi="@Embed('assets/icons/480/2.png')" id="box2"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/3.png')"
source240dpi="@Embed('assets/icons/240/3.png')"
source320dpi="@Embed('assets/icons/320/3.png')"
- source480dpi="@Embed('assets/icons/480/3.png" id="box3"/>
+ source480dpi="@Embed('assets/icons/480/3.png')" id="box3"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/about.png')" id="aboutIcon"
source240dpi="@Embed('assets/icons/240/about.png')"
source320dpi="@Embed('assets/icons/320/about.png')"
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/67a2807b/tourdeflexmobile/src/LayoutViews/TimeMachineLayoutView.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/LayoutViews/TimeMachineLayoutView.mxml b/tourdeflexmobile/src/LayoutViews/TimeMachineLayoutView.mxml
index d3f644c..91d277c 100644
--- a/tourdeflexmobile/src/LayoutViews/TimeMachineLayoutView.mxml
+++ b/tourdeflexmobile/src/LayoutViews/TimeMachineLayoutView.mxml
@@ -47,15 +47,15 @@ limitations under the License.
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/1.png')"
source240dpi="@Embed('assets/icons/240/1.png')"
source320dpi="@Embed('assets/icons/320/1.png')"
- source480dpi="@Embed('assets/icons/480/1.png" id="box1"/>
+ source480dpi="@Embed('assets/icons/480/1.png')" id="box1"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/2.png')"
source240dpi="@Embed('assets/icons/240/2.png')"
source320dpi="@Embed('assets/icons/320/2.png')"
- source480dpi="@Embed('assets/icons/480/2.png" id="box2"/>
+ source480dpi="@Embed('assets/icons/480/2.png')" id="box2"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/3.png')"
source240dpi="@Embed('assets/icons/240/3.png')"
source320dpi="@Embed('assets/icons/320/3.png')"
- source480dpi="@Embed('assets/icons/480/3.png" id="box3"/>
+ source480dpi="@Embed('assets/icons/480/3.png')" id="box3"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/about.png')" id="aboutIcon"
source240dpi="@Embed('assets/icons/240/about.png')"
source320dpi="@Embed('assets/icons/320/about.png')"
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/67a2807b/tourdeflexmobile/src/LayoutViews/VerticalLayoutView.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/LayoutViews/VerticalLayoutView.mxml b/tourdeflexmobile/src/LayoutViews/VerticalLayoutView.mxml
index 3df28e8..efec7e0 100644
--- a/tourdeflexmobile/src/LayoutViews/VerticalLayoutView.mxml
+++ b/tourdeflexmobile/src/LayoutViews/VerticalLayoutView.mxml
@@ -46,15 +46,15 @@ limitations under the License.
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/1.png')"
source240dpi="@Embed('assets/icons/240/1.png')"
source320dpi="@Embed('assets/icons/320/1.png')"
- source480dpi="@Embed('assets/icons/480/1.png" id="box1"/>
+ source480dpi="@Embed('assets/icons/480/1.png')" id="box1"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/2.png')"
source240dpi="@Embed('assets/icons/240/2.png')"
source320dpi="@Embed('assets/icons/320/2.png')"
- source480dpi="@Embed('assets/icons/480/2.png" id="box2"/>
+ source480dpi="@Embed('assets/icons/480/2.png')" id="box2"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/3.png')"
source240dpi="@Embed('assets/icons/240/3.png')"
source320dpi="@Embed('assets/icons/320/3.png')"
- source480dpi="@Embed('assets/icons/480/3.png" id="box3"/>
+ source480dpi="@Embed('assets/icons/480/3.png')" id="box3"/>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/icons/160/about.png')" id="aboutIcon"
source240dpi="@Embed('assets/icons/240/about.png')"
source320dpi="@Embed('assets/icons/320/about.png')"
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/67a2807b/tourdeflexmobile/src/TourDeFlexMobile.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/TourDeFlexMobile.mxml b/tourdeflexmobile/src/TourDeFlexMobile.mxml
index 21a8f0e..bab2d37 100644
--- a/tourdeflexmobile/src/TourDeFlexMobile.mxml
+++ b/tourdeflexmobile/src/TourDeFlexMobile.mxml
@@ -143,8 +143,6 @@ limitations under the License.
if (lateralMenu.x > -115)
{
lateralMenu.stopDrag();
- stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpIn);
- stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseDownIn);
moveIn.play();
isOpen == true;
currentState = "closed";
@@ -158,6 +156,8 @@ limitations under the License.
currentState = "open";
}
lateralMenu.stopDrag();
+ stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpIn);
+ stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseDownIn);
}
protected function menuHandler():void
[2/3] git commit: [flex-examples] [refs/heads/develop] - added
another air feature
Posted by bi...@apache.org.
added another air feature
Project: http://git-wip-us.apache.org/repos/asf/flex-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-examples/commit/fec2c3b6
Tree: http://git-wip-us.apache.org/repos/asf/flex-examples/tree/fec2c3b6
Diff: http://git-wip-us.apache.org/repos/asf/flex-examples/diff/fec2c3b6
Branch: refs/heads/develop
Commit: fec2c3b6b85b4e3f4d0aa0537f59170e2325f713
Parents: 67a2807
Author: nasha001 <na...@DM-DT-NASH.hartford.gov>
Authored: Wed Nov 12 10:58:00 2014 -0500
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Wed Dec 10 12:24:21 2014 -0800
----------------------------------------------------------------------
.../src/AIRViews/NativeAppView.mxml | 73 ++++++++++++++++++++
tourdeflexmobile/src/TourDeFlexMobile.mxml | 46 ++++++------
2 files changed, 97 insertions(+), 22 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/fec2c3b6/tourdeflexmobile/src/AIRViews/NativeAppView.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/AIRViews/NativeAppView.mxml b/tourdeflexmobile/src/AIRViews/NativeAppView.mxml
new file mode 100644
index 0000000..bee6e54
--- /dev/null
+++ b/tourdeflexmobile/src/AIRViews/NativeAppView.mxml
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ title="Native App">
+
+ <fx:Script>
+ <![CDATA[
+
+
+ protected function buttonHandler(event:MouseEvent):void
+ {
+ if(currentState == "DemoState")
+ {
+ currentState = "InfoState";
+ }
+ else if(currentState == "InfoState")
+ {
+ currentState = "DemoState";
+ }
+ }
+
+ ]]>
+ </fx:Script>
+
+ <s:states>
+ <s:State name="DemoState"/>
+ <s:State name="InfoState"/>
+ </s:states>
+
+ <fx:Declarations>
+ <s:MultiDPIBitmapSource id="aboutIcon"
+ source160dpi="@Embed('assets/icons/160/about.png')"
+ source240dpi="@Embed('assets/icons/240/about.png')"
+ source320dpi="@Embed('assets/icons/320/about.png')"
+ source480dpi="assets/icons/480/about.png"/>
+ <s:MultiDPIBitmapSource id="demoIcon"
+ source160dpi="@Embed('assets/icons/160/dock.png')"
+ source240dpi="@Embed('assets/icons/240/dock.png')"
+ source320dpi="@Embed('assets/icons/320/dock.png')"
+ source480dpi="assets/icons/480/dock.png"/>
+ <s:ArrayCollection id="itemsCollection"/>
+ </fx:Declarations>
+ <s:VGroup width="100%" height="100%" includeIn="DemoState" horizontalAlign="center" verticalAlign="middle">
+ <s:Button label="Email" click="navigateToURL(new URLRequest ('mailto:email@email.com'))"/>
+ <s:Button label="Browser" click="navigateToURL(new URLRequest ('http://flex.apache.org/'))"/>
+ <s:Button label="Maps" click="navigateToURL(new URLRequest ('http://maps.google.com/'))"/>
+ <s:Button label="SMS" click="navigateToURL(new URLRequest ('sms:1234567890'))"/>
+ <s:Button label="Phone" click="navigateToURL(new URLRequest ('tel:1234567890'))"/>
+ </s:VGroup>
+ <s:TextArea includeIn="InfoState" selectable="false" left="10" right="10" top="10" bottom="10" editable="false"
+ text="In AIR, on mobile platforms, the sms: and tel: URI schemes are supported. On Android, vipaccess:, connectpro:, and market: URI schemes are supported. The URL syntax is subject to the platform conventions. For example, on Android, the URI scheme must be lower case. When you navigate to a URL using one of these schemes, the runtime opens the URL in the default application for handling the scheme. Thus, navigating to tel:+5555555555 opens the phone dialer with the specified number already entered. A separate application or utility, such as a phone dialer must be available to process the URL. "/>
+ <s:actionContent>
+ <s:Button click="buttonHandler(event)" icon.DemoState="{aboutIcon}" icon.InfoState="{demoIcon}"/>
+ </s:actionContent>
+</s:View>
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/fec2c3b6/tourdeflexmobile/src/TourDeFlexMobile.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/TourDeFlexMobile.mxml b/tourdeflexmobile/src/TourDeFlexMobile.mxml
index bab2d37..9d71bb4 100644
--- a/tourdeflexmobile/src/TourDeFlexMobile.mxml
+++ b/tourdeflexmobile/src/TourDeFlexMobile.mxml
@@ -27,6 +27,7 @@ limitations under the License.
<fx:Style source="styles.css"/>
<fx:Script>
<![CDATA[
+ import AIRViews.NativeAppView;
import flash.events.Event;
import flash.events.MouseEvent;
@@ -41,6 +42,7 @@ limitations under the License.
import AIRViews.AccelerometerView;
import AIRViews.CameraView;
import AIRViews.GeolocationView;
+ import AIRViews.NativeAppView;
import AIRViews.SQLiteView;
import LayoutViews.AccordionLayoutView;
@@ -96,34 +98,33 @@ limitations under the License.
}
}
- /* protected function mouseMove(event:MouseEvent):void
+ /*protected function mouseMove(event:MouseEvent):void
{
- navigator.mouseEnabled = false;
- var myRectangle:Rectangle = new Rectangle(-215, 42, 215, 0);
- lateralMenu.startDrag(false, myRectangle );
- trace(lateralMenu.x)
- //lateralMenu.addEventListener(MouseEvent.CLICK,suppressClick,true,9999,true);
-
+ navigator.mouseEnabled = false;
+ var myRectangle:Rectangle = new Rectangle(-215, 42, 215, 0);
+ lateralMenu.startDrag(false, myRectangle );
+ trace(lateralMenu.x)
+ //lateralMenu.addEventListener(MouseEvent.CLICK,suppressClick,true,9999,true);
}
protected function mouseUp(event:MouseEvent):void
{
+ if (lateralMenu.x < -65)
+ {
+ lateralMenu.stopDrag();
- if (lateralMenu.x < -65)
- {
- lateralMenu.stopDrag();
- lateralMenu.removeEventListener(MouseEvent.MOUSE_UP, mouseUp);
- lateralMenu.removeEventListener(MouseEvent.MOUSE_DOWN, mouseMove);
- moveOut.play();
- isOpen == false;
- }
- if (lateralMenu.x > -65)
- {
- lateralMenu.stopDrag();
- moveIn.play();
- isOpen == true;
- }
- lateralMenu.stopDrag();
+ moveOut.play();
+ isOpen == false;
+ }
+ if (lateralMenu.x > -65)
+ {
+ lateralMenu.stopDrag();
+ moveIn.play();
+ isOpen == true;
+ }
+ lateralMenu.stopDrag();
+ lateralMenu.removeEventListener(MouseEvent.MOUSE_UP, mouseUp);
+ lateralMenu.removeEventListener(MouseEvent.MOUSE_DOWN, mouseMove);
} */
@@ -251,6 +252,7 @@ limitations under the License.
<fx:Object label="Accelerometer" type="view" view="{AccelerometerView}"/>
<!--fx:Object label="Camera" type="view" view="{CameraView}"/-->
<fx:Object label="Geolocation" type="view" view="{GeolocationView}"/>
+ <fx:Object label="Native App Integration" type="view" view="{NativeAppView}"/>
<fx:Object label="SQLite" type="view" view="{SQLiteView}"/>
<fx:Object label="DATA ACCESS" type="separator"/>
[3/3] git commit: [flex-examples] [refs/heads/develop] - updated
slide to close
Posted by bi...@apache.org.
updated slide to close
Project: http://git-wip-us.apache.org/repos/asf/flex-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-examples/commit/ce401d56
Tree: http://git-wip-us.apache.org/repos/asf/flex-examples/tree/ce401d56
Diff: http://git-wip-us.apache.org/repos/asf/flex-examples/diff/ce401d56
Branch: refs/heads/develop
Commit: ce401d56605bb210cc8a054f7fe42d4bab616cc4
Parents: fec2c3b
Author: anash13 <an...@gmail.com>
Authored: Wed Nov 12 15:32:48 2014 -0500
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Wed Dec 10 12:24:22 2014 -0800
----------------------------------------------------------------------
tourdeflexmobile/src/TourDeFlexMobile.mxml | 112 +++++++++++-------------
1 file changed, 51 insertions(+), 61 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-examples/blob/ce401d56/tourdeflexmobile/src/TourDeFlexMobile.mxml
----------------------------------------------------------------------
diff --git a/tourdeflexmobile/src/TourDeFlexMobile.mxml b/tourdeflexmobile/src/TourDeFlexMobile.mxml
index 9d71bb4..223b14f 100644
--- a/tourdeflexmobile/src/TourDeFlexMobile.mxml
+++ b/tourdeflexmobile/src/TourDeFlexMobile.mxml
@@ -20,19 +20,14 @@ limitations under the License.
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
- applicationDPI="160" frameRate="60"
+ applicationDPI="160" frameRate="60" currentState="closed"
applicationComplete="init(event)"
splashScreenImage="@Embed('assets/images/poweredby.png')"
splashScreenScaleMode="letterbox">
<fx:Style source="styles.css"/>
<fx:Script>
<![CDATA[
- import AIRViews.NativeAppView;
-
- import flash.events.Event;
import flash.events.MouseEvent;
- import flash.events.TimerEvent;
- import flash.utils.Timer;
import mx.core.FlexGlobals;
import mx.events.FlexEvent;
@@ -50,10 +45,10 @@ limitations under the License.
import LayoutViews.CoverFlowLayoutView;
import LayoutViews.HorizontalLayoutView;
import LayoutViews.RolodexLayoutView;
+ import LayoutViews.StackLayoutView;
import LayoutViews.TileLayoutView;
import LayoutViews.TimeMachineLayoutView;
import LayoutViews.VerticalLayoutView;
- import LayoutViews.StackLayoutView;
import UIViews.ButtonBarView;
import UIViews.CalloutButtonView;
@@ -67,14 +62,16 @@ limitations under the License.
import UIViews.TextInputView;
import UIViews.ToggleSwitchView;
- import views.HttpServiceView;
+ import flashx.textLayout.container.ScrollPolicy;
- private var isOpen:Boolean;
+ import views.HttpServiceView;
+ private var prevX:int = 0;
+ private var curX:int = 0;
protected function init(event:FlexEvent):void
{
- stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
+ stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
lateralMenu.x = lateralMenu.width * -1;
}
@@ -86,75 +83,72 @@ limitations under the License.
protected function mouseDown(event:MouseEvent):void
{
- // if (!navigator.mouseEnabled && mouseX < 210 && mouseY > 45 && mouseY < navigator.height - 50)
- // {
- // lateralMenu.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
- // lateralMenu.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
- // }
- if (navigator.mouseEnabled && mouseX < 20 && mouseY > 45 && mouseY < navigator.height - 50)
+ if (currentState == "open" && mouseX < 210 && mouseY > 45)
+ {
+ stage.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
+ stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
+ }
+ if (currentState == "closed" && mouseX < 20 && mouseY > 45 && mouseY < navigator.height - 50)
{
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpIn);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseDownIn);
- }
+ }
+ prevX = event.stageX;
}
- /*protected function mouseMove(event:MouseEvent):void
- {
- navigator.mouseEnabled = false;
- var myRectangle:Rectangle = new Rectangle(-215, 42, 215, 0);
- lateralMenu.startDrag(false, myRectangle );
- trace(lateralMenu.x)
- //lateralMenu.addEventListener(MouseEvent.CLICK,suppressClick,true,9999,true);
+ protected function mouseMove(event:MouseEvent):void
+ {
+ curX = stage.mouseX;
+ if (prevX - curX > 20)
+ {
+ lateralMenu.mouseChildren = false;
+ componentsList.setStyle('verticalScrollPolicy', ScrollPolicy.OFF);
+ var myRectangle:Rectangle = new Rectangle(-215, 42, 215, 0);
+ lateralMenu.startDrag(false, myRectangle );
+ }
}
protected function mouseUp(event:MouseEvent):void
{
- if (lateralMenu.x < -65)
- {
- lateralMenu.stopDrag();
-
- moveOut.play();
- isOpen == false;
+ if (lateralMenu.x <= -65)
+ {
+ moveOut.play();
+ currentState = "closed";
+ obfuscationGroup.visible = false;
}
if (lateralMenu.x > -65)
- {
- lateralMenu.stopDrag();
+ {
moveIn.play();
- isOpen == true;
+ currentState = "open";
}
lateralMenu.stopDrag();
- lateralMenu.removeEventListener(MouseEvent.MOUSE_UP, mouseUp);
- lateralMenu.removeEventListener(MouseEvent.MOUSE_DOWN, mouseMove);
- } */
-
-
+ lateralMenu.mouseChildren = true;
+ componentsList.setStyle('verticalScrollPolicy', ScrollPolicy.ON);
+ stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUp);
+ stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
+ }
protected function mouseDownIn(event:MouseEvent):void
{
//define area for lateralMenu to travel
var myRectangle:Rectangle = new Rectangle(-215, 42, 215, 0);
- lateralMenu.startDrag(false, myRectangle );
+ lateralMenu.startDrag(false, myRectangle);
obfuscationGroup.visible = true;
obfuscationLayer.alpha = (lateralMenu.x + 216) * .47 / 200
- trace(obfuscationLayer.alpha);
}
protected function mouseUpIn(event:MouseEvent):void
- {
- if (lateralMenu.x > -115)
+ {
+ if (lateralMenu.x >= -115)
{
- lateralMenu.stopDrag();
moveIn.play();
- isOpen == true;
- currentState = "closed";
+ currentState = "open";
}
if (lateralMenu.x < -115)
- {
- lateralMenu.stopDrag();
+ {
moveOut.play();
- isOpen == false;
- obfuscationGroup.visible = false;
- currentState = "open";
+ currentState = "closed";
+ obfuscationGroup.visible = false;
}
lateralMenu.stopDrag();
stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpIn);
@@ -162,21 +156,18 @@ limitations under the License.
}
protected function menuHandler():void
- {
-
+ {
if(lateralMenu.x == 0)
{
obfuscationGroup.visible = false;
parallelOut.play();
- isOpen = false;
- currentState = "open";
+ currentState = "closed";
}
else if(lateralMenu.x == -215)
{
obfuscationGroup.visible = true;
parallelIn.play();
- isOpen = true;
- currentState = "closed";
+ currentState = "open";
}
}
@@ -195,12 +186,12 @@ limitations under the License.
<s:Fade id="fadeOut" target="{obfuscationLayer}" alphaFrom=".5" alphaTo="0" duration="300"/>
<s:Move id="moveOut" duration="300" target="{lateralMenu}" xTo="-215"/>
</s:Parallel>
- <s:MultiDPIBitmapSource source640dpi="@Embed('assets/icons/640/icon.png')" id="iconOpen"
+ <s:MultiDPIBitmapSource source640dpi="@Embed('assets/icons/640/icon.png')" id="iconClose"
source480dpi="@Embed('assets/icons/480/icon.png')"
source320dpi="@Embed('assets/icons/320/icon.png')"
source240dpi="@Embed('assets/icons/240/icon.png')"
source160dpi="@Embed('assets/icons/160/icon.png')"/>
- <s:MultiDPIBitmapSource source640dpi="@Embed('assets/icons/640/icon1.png')" id="iconClose"
+ <s:MultiDPIBitmapSource source640dpi="@Embed('assets/icons/640/icon1.png')" id="iconOpen"
source480dpi="@Embed('assets/icons/480/icon1.png')"
source320dpi="@Embed('assets/icons/320/icon1.png')"
source240dpi="@Embed('assets/icons/240/icon1.png')"
@@ -259,6 +250,5 @@ limitations under the License.
<fx:Object label="HTTPService" type="view" view="{HttpServiceView}"/>
</s:ArrayList>
</s:List>
- </s:Group>
-
-</s:Application>
+ </s:Group>
+</s:Application>
\ No newline at end of file