Switched to cordova:Application.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d626525d Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d626525d Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d626525d Branch: refs/heads/refactor-sprite Commit: d626525da445917175c8b7adc74b2858e6ef5c0b Parents: bf0ec84 Author: Peter Ent <p...@apache.org> Authored: Thu Oct 6 16:35:46 2016 -0400 Committer: Peter Ent <p...@apache.org> Committed: Thu Oct 6 16:35:46 2016 -0400 ---------------------------------------------------------------------- .../flexjs/MobileStocks/src/MobileStocks.mxml | 52 ++++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d626525d/examples/flexjs/MobileStocks/src/MobileStocks.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/MobileStocks/src/MobileStocks.mxml b/examples/flexjs/MobileStocks/src/MobileStocks.mxml old mode 100755 new mode 100644 index 5b208ba..15c983e --- a/examples/flexjs/MobileStocks/src/MobileStocks.mxml +++ b/examples/flexjs/MobileStocks/src/MobileStocks.mxml @@ -1,28 +1,23 @@ <?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. -// -//////////////////////////////////////////////////////////////////////////////// ---> -<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:local="*" - xmlns:models="models.*" - xmlns:js="library://ns.apache.org/flexjs/basic" - > +<cordova:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:local="*" + xmlns:models="models.*" + xmlns:views="views.*" + xmlns:js="library://ns.apache.org/flexjs/basic" + xmlns:cordova="library://ns.apache.org/flexjs/cordova" + xmlns:controller="controller.*" + applicationComplete="showDetails()"> + <fx:Declarations> + <!-- Place non-visual elements (e.g., services, value objects) here --> + </fx:Declarations> + <fx:Script> + <![CDATA[ + private function showDetails():void + { + trace("Size is "+width+" x "+height); + } + ]]> + </fx:Script> <js:valuesImpl> <js:SimpleCSSValuesImpl /> @@ -33,11 +28,16 @@ </js:model> <js:initialView> - <local:MyInitialView width="100%" height="100%" /> + <local:MyInitialView width="100%" height="100%" className="InitalView" /> </js:initialView> <js:beads> + <cordova:Weinre guid="aharui" /> <js:MixinManager /> + <js:DeviceSizeBead /> + //native application and compile with air global airbeads. + //need orientation beads, size beads. </js:beads> -</js:Application> + +</cordova:Application>