This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 518ac164ca6c63d6f8f555e57542080150a3f3b8 Author: Alex Harui <[email protected]> AuthorDate: Thu Mar 8 17:51:48 2018 -0800 get MXRoyale App to be a valid container like it was in Flex --- .../src/main/royale/org/apache/royale/core/Application.as | 7 +++++-- .../MXRoyale/src/main/royale/mx/core/Application.as | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as index 39fbee9..c8d9e47 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as @@ -18,6 +18,7 @@ //////////////////////////////////////////////////////////////////////////////// package org.apache.royale.core { + import org.apache.royale.core.IParent; import org.apache.royale.events.Event; import org.apache.royale.events.IEventDispatcher; import org.apache.royale.events.MouseEvent; @@ -134,6 +135,8 @@ package org.apache.royale.core element.className = 'Application'; } } + + protected var instanceParent:IParent = null; COMPILE::SWF private function initHandler(event:flash.events.Event):void @@ -178,7 +181,7 @@ package org.apache.royale.core protected function initialize():void { - MXMLDataInterpreter.generateMXMLInstances(this, null, MXMLDescriptor); + MXMLDataInterpreter.generateMXMLInstances(this, instanceParent, MXMLDescriptor); dispatchEvent(new org.apache.royale.events.Event("initialize")); @@ -648,7 +651,7 @@ package org.apache.royale.core COMPILE::JS protected function initialize():void { - MXMLDataInterpreter.generateMXMLInstances(this, null, MXMLDescriptor); + MXMLDataInterpreter.generateMXMLInstances(this, instanceParent, MXMLDescriptor); dispatchEvent('initialize'); diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Application.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Application.as index 93ca558..6136bec3 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Application.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Application.as @@ -109,6 +109,8 @@ import org.apache.royale.express.Application; */ [Frame(factoryClass="mx.managers.SystemManager")] +[DefaultProperty("mxmlContent")] + /** * Flex defines a default, or Application, container that lets you start * adding content to your application without explicitly defining @@ -263,6 +265,7 @@ public class Application extends org.apache.royale.express.Application super(); + instanceParent = this; } //-------------------------------------------------------------------------- @@ -277,6 +280,7 @@ public class Application extends org.apache.royale.express.Application override protected function initialize():void { initManagers(); + super.initialize(); } /** @@ -287,6 +291,17 @@ public class Application extends org.apache.royale.express.Application // install FocusManager } + /** + * @copy org.apache.royale.core.ItemRendererClassFactory#mxmlContent + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.8 + * + * @royalesuppresspublicvarwarning + */ + public var mxmlContent:Array; } -- To stop receiving notification emails like this one, please contact [email protected].
