You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Alex Harui <ah...@adobe.com.INVALID> on 2018/02/18 05:11:07 UTC
Re: [royale-asjs] 01/01: Not working yet
Yishay,
It should not be necessary to subclass Application to get this to work.
We would not want that to be a recommended practice. The AceEditor.as
file should be able to have the inject_html directive.
HTH,
-Alex
On 2/17/18, 8:51 AM, "yishayw@apache.org" <yi...@apache.org> wrote:
>This is an automated email from the ASF dual-hosted git repository.
>
>yishayw pushed a commit to branch ace-editor
>in repository
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.ap
>ache.org%2Frepos%2Fasf%2Froyale-asjs.git&data=02%7C01%7Caharui%40adobe.com
>%7Ce1410f2b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0
>%7C0%7C636544831018671036&sdata=FjbRU12kZ5pUQ3Wcf%2B0vA6SE2RJwFw1lCEwRc05S
>9OM%3D&reserved=0
>
>commit 7f16aa937fe99964754c2b5d226733350f9401ba
>Author: DESKTOP-RH4S838\Yishay <yi...@hotmail.com>
>AuthorDate: Sat Feb 17 18:51:12 2018 +0200
>
> Not working yet
>---
> examples/build.xml | 1 +
> examples/royale/Ace/asconfig.json | 31 +++++
> examples/royale/Ace/build.xml | 55 ++++++++
> examples/royale/Ace/pom.xml | 139
>+++++++++++++++++++++
> .../Ace/src/main/config/compile-app-config.xml | 28 +++++
> examples/royale/Ace/src/main/royale/ACEEditor.as | 46 +++++++
> examples/royale/Ace/src/main/royale/Ace.mxml | 35 ++++++
> examples/royale/Ace/src/main/royale/Application.as | 40 ++++++
> frameworks/build.xml | 1 +
> frameworks/projects/Ace/asconfig.json | 34 +++++
> frameworks/projects/Ace/build.xml | 130
>+++++++++++++++++++
> frameworks/projects/Ace/js/tests/MyController.js | 56 +++++++++
> frameworks/projects/Ace/js/tests/MyInitialView.js | 67 ++++++++++
> frameworks/projects/Ace/js/tests/MyModel.js | 60 +++++++++
> .../projects/Ace/js/tests/MySimpleValuesImpl.js | 45 +++++++
> frameworks/projects/Ace/js/tests/RoyaleTest.js | 63 ++++++++++
> frameworks/projects/Ace/js/tests/test.html | 62 +++++++++
> frameworks/projects/Ace/pom.xml | 105 ++++++++++++++++
> .../Ace/src/main/config/compile-swf-config.xml | 92 ++++++++++++++
> .../Ace/src/main/resources/ace-manifest.xml | 27 ++++
> .../projects/Ace/src/main/resources/defaults.css | 51 ++++++++
> .../projects/Ace/src/main/royale/JQueryClasses.as | 33 +++++
> .../main/royale/org/apache/royale/ace/ACEEditor.as | 45 +++++++
> .../royale/org/apache/royale/ace/Application.as | 40 ++++++
> 24 files changed, 1286 insertions(+)
>
>diff --git a/examples/build.xml b/examples/build.xml
>index 6ad69ea..57a9f9b 100644
>--- a/examples/build.xml
>+++ b/examples/build.xml
>@@ -74,6 +74,7 @@
> </target>
>
> <target name="compile" description="Compile Examples" >
>+ <!--ant dir="${basedir}/royale/Ace"--/>
> <ant dir="${basedir}/express/DataBindingExample"/>
> <ant dir="${basedir}/express/DataGridExample"/>
> <ant dir="${basedir}/royale/AccordionExample"/>
>diff --git a/examples/royale/Ace/asconfig.json
>b/examples/royale/Ace/asconfig.json
>new file mode 100644
>index 0000000..b82e00f
>--- /dev/null
>+++ b/examples/royale/Ace/asconfig.json
>@@ -0,0 +1,31 @@
>+/////////////////////////////////////////////////////////////////////////
>///////
>+//
>+// 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
>+//
>+//
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+//
>+/////////////////////////////////////////////////////////////////////////
>///////
>+{
>+ "config": "royale",
>+ "compilerOptions": {
>+ "debug": false,
>+ "targets": ["JSRoyale","SWF"],
>+ "source-map": true
>+ },
>+ "additionalOptions": "-remove-circulars
>-js-output-optimization=skipAsCoercions",
>+ "files":
>+ [
>+ "src/main/royale/Ace.mxml"
>+ ]
>+}
>diff --git a/examples/royale/Ace/build.xml b/examples/royale/Ace/build.xml
>new file mode 100644
>index 0000000..0227067
>--- /dev/null
>+++ b/examples/royale/Ace/build.xml
>@@ -0,0 +1,55 @@
>+<?xml version="1.0"?>
>+<!--
>+
>+ 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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+
>+
>+<project name="Ace" default="main" basedir=".">
>+ <property name="ROYALE_HOME" location="../../.."/>
>+ <property name="example" value="Ace" />
>+
>+ <property file="${ROYALE_HOME}/env.properties"/>
>+ <property environment="env"/>
>+ <property file="${ROYALE_HOME}/build.properties"/>
>+ <property name="ROYALE_HOME" value="${ROYALE_HOME}"/>
>+
>+ <include file="${basedir}/../../build_example.xml" />
>+
>+ <target name="main" depends="clean,build_example.compile"
>description="Clean build of ${example}">
>+ </target>
>+
>+ <target name="clean">
>+ <delete dir="${basedir}/bin" failonerror="false" />
>+ <delete dir="${basedir}/bin-debug" failonerror="false" />
>+ <delete dir="${basedir}/bin-release" failonerror="false" />
>+ <delete dir="${basedir}/target" failonerror="false" />
>+ </target>
>+
>+ <target name="examine" depends="build_example.get.browser">
>+ <property name="which" value="debug" />
>+ <echo message="Make sure label appears."/>
>+ <exec executable="${browser}" dir="${basedir}/bin-${which}"
>failonerror="true">
>+ <arg value="${basedir}/bin-${which}/${example}.html"/>
>+ </exec>
>+ <exec executable="${browser}" dir="${basedir}/bin/js-${which}"
>failonerror="true">
>+ <arg value="${basedir}/bin/js-${which}/index.html"/>
>+ </exec>
>+ </target>
>+
>+</project>
>+
>diff --git a/examples/royale/Ace/pom.xml b/examples/royale/Ace/pom.xml
>new file mode 100644
>index 0000000..bf66af1
>--- /dev/null
>+++ b/examples/royale/Ace/pom.xml
>@@ -0,0 +1,139 @@
>+<?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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+<project
>xmlns="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmav
>en.apache.org%2FPOM%2F4.0.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b23
>984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636544
>831018671036&sdata=rX4luaDgIlp4djaZgNV8IYCuk%2B%2F1aCwllX7HBsYi8ww%3D&rese
>rved=0"
>xmlns:xsi="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2
>Fwww.w3.org%2F2001%2FXMLSchema-instance&data=02%7C01%7Caharui%40adobe.com%
>7Ce1410f2b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>7C0%7C636544831018671036&sdata=MFa3hQgxwaWwTr2M7KHWIFjJ3vSmrabr3gKvtTsVzIw
>%3D&reserved=0"
>xsi:schemaLocation="https://na01.safelinks.protection.outlook.com/?url=htt
>p%3A%2F%2Fmaven.apache.org%2FPOM%2F4.0.0&data=02%7C01%7Caharui%40adobe.com
>%7Ce1410f2b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0
>%7C0%7C636544831018671036&sdata=rX4luaDgIlp4djaZgNV8IYCuk%2B%2F1aCwllX7HBs
>Yi8ww%3D&reserved=0
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmaven.apac
>he.org%2Fmaven-v4_0_0.xsd&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b2398
>4cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63654483
>1018671036&sdata=guq7ic8JeGye2Ear8%2B8tHmSZtEnBZuLIoXkAlKJQg1I%3D&reserved
>=0">
>+ <modelVersion>4.0.0</modelVersion>
>+
>+ <parent>
>+ <groupId>org.apache.royale.examples</groupId>
>+ <artifactId>examples-royale</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ </parent>
>+
>+ <artifactId>RoyaleStore_jquery</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <packaging>swf</packaging>
>+
>+ <name>Apache Royale: Examples: Royale: RoyaleStore_jquery</name>
>+
>+ <build>
>+ <plugins>
>+ <plugin>
>+ <groupId>org.apache.royale.compiler</groupId>
>+ <artifactId>royale-maven-plugin</artifactId>
>+ <extensions>true</extensions>
>+ <configuration>
>+ <mainClass>RoyaleStore.mxml</mainClass>
>+ <removeCirculars>true</removeCirculars>
>+ </configuration>
>+ </plugin>
>+ </plugins>
>+ </build>
>+
>+ <dependencies>
>+ <dependency>
>+ <groupId>com.adobe.flash.framework</groupId>
>+ <artifactId>playerglobal</artifactId>
>+ <version>${flash.version}</version>
>+ <type>swc</type>
>+ <scope>provided</scope>
>+ </dependency>
>+
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>DragDrop</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>DragDrop</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Effects</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Effects</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Formatters</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Formatters</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>JQuery</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>JQuery</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Network</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Network</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+
>+ <dependency>
>+ <groupId>org.apache.royale.typedefs</groupId>
>+ <artifactId>royale-typedefs-jquery</artifactId>
>+ <version>${royale.typedefs.version}</version>
>+ <type>swc</type>
>+ <classifier>typedefs</classifier>
>+ <scope>runtime</scope>
>+ </dependency>
>+ </dependencies>
>+
>+</project>
>diff --git a/examples/royale/Ace/src/main/config/compile-app-config.xml
>b/examples/royale/Ace/src/main/config/compile-app-config.xml
>new file mode 100644
>index 0000000..390e42b
>--- /dev/null
>+++ b/examples/royale/Ace/src/main/config/compile-app-config.xml
>@@ -0,0 +1,28 @@
>+<!--
>+
>+ 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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+<royale-config>
>+ <js-output-optimization>
>+ <optimization>skipFunctionCoercions</optimization>
>+ </js-output-optimization>
>+ <compiler>
>+ <js-external-library-path append="true">
>+
><path-element>../../../../../../js/libs/ace-1.2.3.swc</path-element>
>+ </js-external-library-path>
>+ </compiler>
>+</royale-config>
>diff --git a/examples/royale/Ace/src/main/royale/ACEEditor.as
>b/examples/royale/Ace/src/main/royale/ACEEditor.as
>new file mode 100644
>index 0000000..7c08f07
>--- /dev/null
>+++ b/examples/royale/Ace/src/main/royale/ACEEditor.as
>@@ -0,0 +1,46 @@
>+/////////////////////////////////////////////////////////////////////////
>///////
>+//
>+// 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
>+//
>+//
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+//
>+/////////////////////////////////////////////////////////////////////////
>///////
>+package
>+{
>+ import org.apache.royale.core.UIBase;
>+ import ace.Editor;
>+
>+ public class ACEEditor extends org.apache.royale.core.UIBase
>+ {
>+ private var editor:Editor;
>+
>+ override public function addedToParent():void
>+ {
>+ super.addedToParent();
>+ editor = ace.edit(id);
>+ }
>+
>+ private var _theme:String;
>+ public function get theme():String
>+ {
>+ return _theme;
>+ }
>+
>+ public function set theme(value:String):void
>+ {
>+ _theme = value;
>+ editor.setTheme(value);
>+ }
>+ }
>+}
>diff --git a/examples/royale/Ace/src/main/royale/Ace.mxml
>b/examples/royale/Ace/src/main/royale/Ace.mxml
>new file mode 100644
>index 0000000..e27a80e
>--- /dev/null
>+++ b/examples/royale/Ace/src/main/royale/Ace.mxml
>@@ -0,0 +1,35 @@
>+<?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
>+
>+https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apach
>e.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2
>b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636
>544831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&res
>erved=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.
>+
>+-->
>+<local:Application
>xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F
>ns.adobe.com%2Fmxml%2F2009&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b239
>84cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365448
>31018671036&sdata=GTFFrPSFMi6%2F%2Bz19AO%2B4WOGP52QyCjGxeuIrhkaZwWc%3D&res
>erved=0"
>+ xmlns:local="*"
>+ xmlns:js="library://ns.apache.org/royale/basic" >
>+ <js:valuesImpl>
>+ <js:SimpleCSSValuesImpl />
>+ </js:valuesImpl>
>+ <js:initialView>
>+ <js:View>
>+ <js:VContainer>
>+ <js:Label text="Hello World!" />
>+ <local:ACEEditor id="myEditor" width="400" height="400"/>
>+ </js:VContainer>
>+ </js:View>
>+ </js:initialView>
>+</local:Application>
>+
>diff --git a/examples/royale/Ace/src/main/royale/Application.as
>b/examples/royale/Ace/src/main/royale/Application.as
>new file mode 100644
>index 0000000..c9626f1
>--- /dev/null
>+++ b/examples/royale/Ace/src/main/royale/Application.as
>@@ -0,0 +1,40 @@
>+/////////////////////////////////////////////////////////////////////////
>///////
>+//
>+// 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
>+//
>+//
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+//
>+/////////////////////////////////////////////////////////////////////////
>///////
>+package
>+{
>+ import org.apache.royale.core.Application;
>+ import org.apache.royale.core.IFlexInfo;
>+
>+
>+ public class Application extends org.apache.royale.core.Application
>implements IFlexInfo
>+ {
>+ /**
>+ * The Royale Compiler will inject html into the index.html file.
>Surround with
>+ * "inject_html" tag as follows:
>+ *
>+ * <inject_html>
>+ * <script
>src="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.
>githubusercontent.com%2Fajaxorg%2Face-builds%2Fmaster%2Fsrc-min-noconflict
>%2Face.js&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b23984cdf31d908d57626
>b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636544831018671036&sdata
>=QuBSAKkkCLecSuMJd01UIH7IfcBSzbrKZbtCNVBwSzA%3D&reserved=0"></script>
>+ * </inject_html>
>+ */
>+ public function Application()
>+ {
>+ super();
>+ }
>+ }
>+}
>diff --git a/frameworks/build.xml b/frameworks/build.xml
>index e58c9dc..fb32221 100644
>--- a/frameworks/build.xml
>+++ b/frameworks/build.xml
>@@ -126,6 +126,7 @@
> <antcall target="CreateJS"/>
> <antcall target="HTML5"/>
> <antcall target="JQuery"/>
>+ <!--antcall target="Ace"/-->
> <antcall target="Mobile"/>
> <antcall target="Reflection"/>
> <antcall target="Network"/>
>diff --git a/frameworks/projects/Ace/asconfig.json
>b/frameworks/projects/Ace/asconfig.json
>new file mode 100644
>index 0000000..7efe580
>--- /dev/null
>+++ b/frameworks/projects/Ace/asconfig.json
>@@ -0,0 +1,34 @@
>+/*
>+ * 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ */
>+ {
>+ "config": "royale",
>+ "type": "lib",
>+ "compilerOptions": {
>+ "debug": true,
>+ "targets": [
>+ "SWF",
>+ "JSRoyale"
>+ ],
>+ "include-classes": [
>+ "JQueryClasses"
>+ ],
>+ "include-sources": [
>+ "src/main/royale"
>+ ],
>+ "output": "target/JQuery.swc"
>+ }
>+}
>diff --git a/frameworks/projects/Ace/build.xml
>b/frameworks/projects/Ace/build.xml
>new file mode 100644
>index 0000000..a5ec831
>--- /dev/null
>+++ b/frameworks/projects/Ace/build.xml
>@@ -0,0 +1,130 @@
>+<?xml version="1.0"?>
>+<!--
>+
>+ 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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+
>+
>+<project name="Ace" default="main" basedir=".">
>+ <property name="ROYALE_HOME" location="../../.."/>
>+
>+ <property file="${ROYALE_HOME}/env.properties"/>
>+ <property environment="env"/>
>+ <property file="${ROYALE_HOME}/build.properties"/>
>+ <property name="ROYALE_HOME" value="${ROYALE_HOME}"/>
>+
>+ <property name="target.name" value="${ant.project.name}.swc" />
>+
>+ <target name="main"
>depends="clean,check-compiler,compile,compile-js,copy-swc,test"
>description="Full build of ${ant.project.name}.swc">
>+ </target>
>+
>+ <target name="compile-js">
>+ <ant
>dir="${ROYALE_HOME}/frameworks/js/projects/${ant.project.name}JS/"
>inheritAll="false" >
>+ <property name="ROYALE_SWF_COMPILER_HOME"
>value="${ROYALE_SWF_COMPILER_HOME}"/>
>+ <property name="ROYALE_COMPILER_HOME"
>value="${ROYALE_COMPILER_HOME}"/>
>+ <property name="ROYALE_HOME" value="${ROYALE_HOME}"/>
>+ </ant>
>+ </target>
>+
>+ <target name="copy-swc" if="env.AIR_HOME">
>+ <copy file="${basedir}/target/${target.name}"
>tofile="${ROYALE_HOME}/frameworks/libs/${target.name}" />
>+ </target>
>+
>+ <target name="check-for-tests" >
>+ <condition property="skip-tests" >
>+ <not>
>+ <available file="${basedir}/src/test/royale/build.xml" />
>+ </not>
>+ </condition>
>+ </target>
>+
>+ <target name="test" depends="check-for-tests" unless="skip-tests">
>+ <ant dir="src/test/royale" />
>+ </target>
>+
>+ <target name="clean">
>+ <delete failonerror="false">
>+ <fileset dir="${ROYALE_HOME}/frameworks/libs">
>+ <include name="${target.name}"/>
>+ </fileset>
>+ </delete>
>+ <delete failonerror="false" includeemptydirs="true">
>+ <fileset dir="${basedir}/target">
>+ <include name="**/**"/>
>+ </fileset>
>+ </delete>
>+ <antcall target="clean-tests" />
>+ </target>
>+
>+ <target name="clean-tests" depends="check-for-tests"
>unless="skip-tests">
>+ <ant dir="src/test/royale" target="clean"/>
>+ </target>
>+
>+ <target name="compile" description="Compiles .as files into .swc"
>if="env.AIR_HOME">
>+ <echo message="Compiling libs/${ant.project.name}.swc"/>
>+ <echo message="ROYALE_HOME: ${ROYALE_HOME}"/>
>+ <echo message="ROYALE_SWF_COMPILER_HOME:
>${ROYALE_SWF_COMPILER_HOME}"/>
>+ <echo message="ROYALE_COMPILER_HOME: ${ROYALE_COMPILER_HOME}"/>
>+
>+ <java jar="${ROYALE_COMPILER_HOME}/lib/compc.jar" fork="true" >
>+ <jvmarg value="-Xmx384m" />
>+ <jvmarg value="-Dsun.io.useCanonCaches=false" />
>+ <jvmarg value="-Droyalelib=${ROYALE_HOME}/frameworks" />
>+ <arg value="+royalelib=${ROYALE_HOME}/frameworks" />
>+ <arg value="+playerglobal.version=${playerglobal.version}" />
>+ <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
>+ <arg value="-compiler.strict-xml=true" />
>+ <arg value="-compiler.targets=JSRoyale" />
>+ <arg value="-output=${basedir}/target/${target.name}" />
>+ <arg
>value="-load-config=${basedir}/src/main/config/compile-swf-config.xml" />
>+ <arg
>value="-js-load-config=${ROYALE_HOME}/frameworks/js-config.xml" />
>+ <arg
>value="-js-load-config+=${basedir}/../../js/projects/${ant.project.name}JS
>/src/main/config/compile-js-config.xml" />
>+ </java>
>+ </target>
>+
>+ <target name="check-compiler"
>depends="check-compiler-home,check-transpiler-home">
>+ <path id="lib.path">
>+ <fileset dir="${ROYALE_COMPILER_HOME}/lib"
>includes="compiler-royaleTasks.jar"/>
>+ </path>
>+ <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
>+ </target>
>+
>+ <target name="check-compiler-home"
>+ description="Set ROYALE_SWF_COMPILER_HOME to point at the
>compiler.">
>+
>+ <available file="${ROYALE_HOME}/lib/compiler-mxmlc.jar"
>+ type="file"
>+ property="ROYALE_SWF_COMPILER_HOME"
>+ value="${ROYALE_HOME}"/>
>+
>+ <fail message="ROYALE_SWF_COMPILER_HOME must be set to a folder
>with a lib sub-folder containing compiler-mxmlc.jar such as the compiler
>folder in royale-compiler repo or the root of a Royale SDK"
>+ unless="ROYALE_SWF_COMPILER_HOME"/>
>+ </target>
>+
>+ <target name="check-transpiler-home"
>+ description="Set ROYALE_COMPILER_HOME to point at the
>cross-compiler.">
>+
>+ <available file="${ROYALE_HOME}/js/lib/jsc.jar"
>+ type="file"
>+ property="ROYALE_COMPILER_HOME"
>+ value="${ROYALE_HOME}/js"/>
>+
>+ <fail message="ROYALE_COMPILER_HOME must be set to a folder with
>a lib sub-folder containing jsc.jar such as the compiler-jx folder in
>royale-compiler repo or the js folder of a Royale SDK"
>+ unless="ROYALE_COMPILER_HOME"/>
>+ </target>
>+
>+</project>
>diff --git a/frameworks/projects/Ace/js/tests/MyController.js
>b/frameworks/projects/Ace/js/tests/MyController.js
>new file mode 100644
>index 0000000..b15dc27
>--- /dev/null
>+++ b/frameworks/projects/Ace/js/tests/MyController.js
>@@ -0,0 +1,56 @@
>+/**
>+ * Licensed 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ */
>+
>+goog.provide('MyController');
>+
>+goog.require('flash.events.EventDispatcher');
>+
>+goog.require('org.apache.royale.FlexGlobal');
>+
>+/**
>+ * @constructor
>+ * @param {org.apache.royale.core.Application} app The main application.
>+ */
>+MyController = function(app) {
>+ /**
>+ * @type {org.apache.royale.core.Application}
>+ */
>+ this.app = app || null;
>+
>+ this.app.addEventListener(
>+ 'viewChanged', org.apache.royale.FlexGlobal.createProxy(
>+ this, this.viewChangeHandler
>+ )
>+ );
>+};
>+
>+/**
>+ * @this {MyController}
>+ * @param {flash.events.Event} event The event.
>+ */
>+MyController.prototype.viewChangeHandler = function(event) {
>+ this.app.initialView.addEventListener(
>+ 'buttonClicked', org.apache.royale.FlexGlobal.createProxy(
>+ this, this.buttonClickHandler
>+ )
>+ );
>+};
>+
>+/**
>+ * @this {MyController}
>+ * @param {flash.events.Event} event The event.
>+ */
>+MyController.prototype.buttonClickHandler = function(event) {
>+ this.app.model.set_labelText('Hello Universe');
>+};
>diff --git a/frameworks/projects/Ace/js/tests/MyInitialView.js
>b/frameworks/projects/Ace/js/tests/MyInitialView.js
>new file mode 100644
>index 0000000..ef7d456
>--- /dev/null
>+++ b/frameworks/projects/Ace/js/tests/MyInitialView.js
>@@ -0,0 +1,67 @@
>+/**
>+ * Licensed 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ */
>+
>+goog.provide('MyInitialView');
>+
>+goog.require('org.apache.royale.FlexGlobal');
>+
>+goog.require('org.apache.royale.core.ViewBase');
>+goog.require('org.apache.royale.html.Label');
>+goog.require('org.apache.royale.html.TextButton');
>+
>+/**
>+ * @constructor
>+ * @extends {org.apache.royale.core.ViewBase}
>+ */
>+MyInitialView = function() {
>+ org.apache.royale.core.ViewBase.call(this);
>+};
>+goog.inherits(MyInitialView, org.apache.royale.core.ViewBase);
>+
>+/**
>+ * @override
>+ * @this {org.apache.royale.core.ViewBase}
>+ * @return {Array} The array of UI element descriptors.
>+ */
>+MyInitialView.prototype.get_uiDescriptors = function() {
>+ return [
>+ org.apache.royale.html.Label,
>+ null,
>+ 'lbl',
>+ 2, 'x', 100, 'y', 25,
>+ 0,
>+ 0,
>+ 1, 'text', 0, 'model', 'labelText', 'labelTextChanged',
>+ org.apache.royale.html.TextButton,
>+ null,
>+ null,
>+ 3, 'text', 'OK', 'x', 100, 'y', 75,
>+ 0,
>+ 1, 'click', this.clickHandler, 0
>+ ];
>+};
>+
>+/**
>+ * @this {MyInitialView}
>+ * @param {flash.events.Event} event The event.
>+ */
>+MyInitialView.prototype.clickHandler = function(event) {
>+ this.dispatchEvent(
>+ /** @type {flash.events.Event} */ (
>+ org.apache.royale.FlexGlobal.newObject(
>+ flash.events.Event, ['buttonClicked']
>+ )
>+ )
>+ );
>+};
>diff --git a/frameworks/projects/Ace/js/tests/MyModel.js
>b/frameworks/projects/Ace/js/tests/MyModel.js
>new file mode 100644
>index 0000000..906bc1e
>--- /dev/null
>+++ b/frameworks/projects/Ace/js/tests/MyModel.js
>@@ -0,0 +1,60 @@
>+/**
>+ * Licensed 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ */
>+
>+goog.provide('MyModel');
>+
>+goog.require('flash.events.EventDispatcher');
>+
>+goog.require('org.apache.royale.FlexGlobal');
>+
>+/**
>+ * @constructor
>+ * @extends {flash.events.EventDispatcher}
>+ */
>+MyModel = function() {
>+ flash.events.EventDispatcher.call(this);
>+
>+ /**
>+ * @private
>+ * @type {string}
>+ */
>+ this.labelText_;
>+};
>+goog.inherits(MyModel, flash.events.EventDispatcher);
>+
>+/**
>+ * @export
>+ * @this {MyModel}
>+ * @return {string} The labelText getter.
>+ */
>+MyModel.prototype.get_labelText = function() {
>+ return this.labelText_;
>+};
>+
>+/**
>+ * @export
>+ * @this {MyModel}
>+ * @param {string} value The labelText setter.
>+ */
>+MyModel.prototype.set_labelText = function(value) {
>+ if (value != this.labelText_) {
>+ this.labelText_ = value;
>+
>+ this.dispatchEvent(
>+ org.apache.royale.FlexGlobal.newObject(
>+ flash.events.Event, ['labelTextChanged']
>+ )
>+ );
>+ }
>+};
>diff --git a/frameworks/projects/Ace/js/tests/MySimpleValuesImpl.js
>b/frameworks/projects/Ace/js/tests/MySimpleValuesImpl.js
>new file mode 100644
>index 0000000..a7fab18
>--- /dev/null
>+++ b/frameworks/projects/Ace/js/tests/MySimpleValuesImpl.js
>@@ -0,0 +1,45 @@
>+/*
>+ *
>+ * 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ */
>+
>+goog.provide('MySimpleValuesImpl');
>+
>+goog.require('org.apache.royale.core.SimpleValuesImpl');
>+
>+/**
>+ * @constructor
>+ * @extends {org.apache.royale.core.SimpleValuesImpl}
>+ */
>+MySimpleValuesImpl = function() {
>+ org.apache.royale.core.SimpleValuesImpl.call(this);
>+
>+ /**
>+ * @private
>+ * @type {Object}
>+ */
>+ this.values_ = {
>+ /*
>+ ITextButtonBead :
>+ org.apache.royale.html.beads.TextButtonBead,
>+ ITextBead :
>+ org.apache.royale.html.beads.TextFieldBead,
>+ ITextModel :
>+ org.apache.royale.html.beads.models.TextModel
>+ */
>+ };
>+};
>+goog.inherits(MySimpleValuesImpl,
>org.apache.royale.core.SimpleValuesImpl);
>diff --git a/frameworks/projects/Ace/js/tests/RoyaleTest.js
>b/frameworks/projects/Ace/js/tests/RoyaleTest.js
>new file mode 100644
>index 0000000..8b0dd73
>--- /dev/null
>+++ b/frameworks/projects/Ace/js/tests/RoyaleTest.js
>@@ -0,0 +1,63 @@
>+/*
>+ *
>+ * 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ */
>+
>+goog.provide('RoyaleTest');
>+
>+goog.require('MyController');
>+goog.require('MyInitialView');
>+goog.require('MyModel');
>+goog.require('MySimpleValuesImpl');
>+
>+goog.require('org.apache.royale.FlexGlobal');
>+
>+goog.require('org.apache.royale.core.Application');
>+
>+/**
>+ * @constructor
>+ * @extends {org.apache.royale.core.Application}
>+ */
>+RoyaleTest = function() {
>+ org.apache.royale.core.Application.call(this);
>+
>+ this.controller = org.apache.royale.FlexGlobal.newObject(
>+ MyController, [this]
>+ );
>+
>+ this.initialView =
>+ /** @type {org.apache.royale.core.ViewBase} */ (
>+ org.apache.royale.FlexGlobal.newObject(MyInitialView, [this])
>+ );
>+
>+ this.model =
>+ /** @type {flash.events.EventDispatcher} */ (
>+ org.apache.royale.FlexGlobal.newObject(MyModel, [])
>+ );
>+ this.model.set_labelText('Say hi!');
>+
>+ this.valuesImpl =
>+ /** @type {org.apache.royale.core.SimpleValuesImpl} */ (
>+ org.apache.royale.FlexGlobal.newObject(MySimpleValuesImpl,
>[this])
>+ );
>+
>+ // this method of logging survives the Closure Compiler
>+ //window['console']['log'](app);
>+};
>+goog.inherits(RoyaleTest, org.apache.royale.core.Application);
>+
>+// Ensures the symbol will be visible after compiler renaming.
>+goog.exportSymbol('RoyaleTest', RoyaleTest);
>diff --git a/frameworks/projects/Ace/js/tests/test.html
>b/frameworks/projects/Ace/js/tests/test.html
>new file mode 100644
>index 0000000..ed804e2
>--- /dev/null
>+++ b/frameworks/projects/Ace/js/tests/test.html
>@@ -0,0 +1,62 @@
>+<?xml version="1.0"?>
>+<!--
>+
>+ 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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+<html>
>+<head>
>+
>+ <!-- start "compiled" -->
>+ <script type="text/javascript" src="./Royale.js"></script>
>+ <!-- end "compiled" -->
>+
>+ <!-- start "all": sequence matters ;-) ->
>+
>+ <script type="text/javascript"
>src="../closure/library/closure/goog/base.js"></script>
>+
>+ <script type="text/javascript" src="../src/FlexObject.js"></script>
>+
>+ <script type="text/javascript"
>src="../src/flash/events/Event.js"></script>
>+
>+ <script type="text/javascript" src="../src/FlexGlobal.js"></script>
>+
>+ <script type="text/javascript"
>src="../src/flash/events/EventDispatcher.js"></script>
>+
>+ <script type="text/javascript"
>src="../src/org/apache/royale/binding/SimpleBinding.js"></script>
>+
>+ <script type="text/javascript"
>src="../src/org/apache/royale/core/UIBase.js"></script>
>+ <script type="text/javascript"
>src="../src/org/apache/royale/core/ViewBase.js"></script>
>+ <script type="text/javascript"
>src="../src/org/apache/royale/core/ValuesManager.js"></script>
>+ <script type="text/javascript"
>src="../src/org/apache/royale/core/SimpleValuesImpl.js"></script>
>+ <script type="text/javascript"
>src="../src/org/apache/royale/core/Application.js"></script>
>+
>+ <script type="text/javascript"
>src="../src/org/apache/royale/html/Label.js"></script>
>+ <script type="text/javascript"
>src="../src/org/apache/royale/html/TextButton.js"></script>
>+
>+ <script type="text/javascript"
>src="./MySimpleValuesImpl.js"></script>
>+ <script type="text/javascript" src="./MyController.js"></script>
>+ <script type="text/javascript" src="./MyModel.js"></script>
>+ <script type="text/javascript" src="./MyInitialView.js"></script>
>+
>+ <script type="text/javascript" src="./RoyaleTest.js"></script>
>+
>+ <!-- end "all" -->
>+
>+</head>
>+<body onLoad="new RoyaleTest().start();">
>+</body>
>+</html>
>diff --git a/frameworks/projects/Ace/pom.xml
>b/frameworks/projects/Ace/pom.xml
>new file mode 100644
>index 0000000..41a878a
>--- /dev/null
>+++ b/frameworks/projects/Ace/pom.xml
>@@ -0,0 +1,105 @@
>+<?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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+<project
>xmlns="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmav
>en.apache.org%2FPOM%2F4.0.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b23
>984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636544
>831018671036&sdata=rX4luaDgIlp4djaZgNV8IYCuk%2B%2F1aCwllX7HBsYi8ww%3D&rese
>rved=0"
>xmlns:xsi="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2
>Fwww.w3.org%2F2001%2FXMLSchema-instance&data=02%7C01%7Caharui%40adobe.com%
>7Ce1410f2b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>7C0%7C636544831018671036&sdata=MFa3hQgxwaWwTr2M7KHWIFjJ3vSmrabr3gKvtTsVzIw
>%3D&reserved=0"
>xsi:schemaLocation="https://na01.safelinks.protection.outlook.com/?url=htt
>p%3A%2F%2Fmaven.apache.org%2FPOM%2F4.0.0&data=02%7C01%7Caharui%40adobe.com
>%7Ce1410f2b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0
>%7C0%7C636544831018671036&sdata=rX4luaDgIlp4djaZgNV8IYCuk%2B%2F1aCwllX7HBs
>Yi8ww%3D&reserved=0
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmaven.apac
>he.org%2Fxsd%2Fmaven-4.0.0.xsd&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2
>b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636
>544831018671036&sdata=Ts%2Fc%2BaoMqTC9L51zxuS%2BURYUfX0TtFwxjqjh1N3sWQ4%3D
>&reserved=0">
>+ <modelVersion>4.0.0</modelVersion>
>+
>+ <parent>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>projects</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ </parent>
>+
>+ <artifactId>JQuery</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <packaging>swc</packaging>
>+
>+ <name>Apache Royale: Framework: Libs: JQuery</name>
>+
>+ <build>
>+ <sourceDirectory>src/main/royale</sourceDirectory>
>+ <plugins>
>+ <plugin>
>+ <groupId>org.apache.royale.compiler</groupId>
>+ <artifactId>royale-maven-plugin</artifactId>
>+ <version>${royale.compiler.version}</version>
>+ <extensions>true</extensions>
>+ <configuration>
>+ <namespaces>
>+ <namespace>
>+ <uri>library://ns.apache.org/royale/ace</uri>
>+
><manifest>${project.basedir}/src/main/resources/ace-manifest.xml</manifest
>>
>+ </namespace>
>+ </namespaces>
>+ <includeClasses>
>+ <includeClass>JQueryClasses</includeClass>
>+ </includeClasses>
>+ <includeFiles>
>+ <include-file>
>+ <name>defaults.css</name>
>+ <path>../src/main/resources/defaults.css</path>
>+ </include-file>
>+ </includeFiles>
>+ <skipExtern>true</skipExtern>
>+ </configuration>
>+ </plugin>
>+ </plugins>
>+ </build>
>+
>+ <dependencies>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Core</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Core</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Basic</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Basic</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+
>+ <dependency>
>+ <groupId>org.apache.royale.typedefs</groupId>
>+ <artifactId>royale-typedefs-ace</artifactId>
>+ <version>${royale.typedefs.version}</version>
>+ <type>swc</type>
>+ <classifier>typedefs</classifier>
>+ <scope>runtime</scope>
>+ </dependency>
>+ </dependencies>
>+
>+</project>
>diff --git
>a/frameworks/projects/Ace/src/main/config/compile-swf-config.xml
>b/frameworks/projects/Ace/src/main/config/compile-swf-config.xml
>new file mode 100644
>index 0000000..ef6b056
>--- /dev/null
>+++ b/frameworks/projects/Ace/src/main/config/compile-swf-config.xml
>@@ -0,0 +1,92 @@
>+<!--
>+
>+ 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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+<royale-config>
>+
>+ <compiler>
>+ <accessible>false</accessible>
>+
>+ <targets>
>+ <target>JSRoyale</target>
>+ </targets>
>+ <strict-xml>true</strict-xml>
>+
>+ <external-library-path>
>+
><path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-elem
>ent>
>+ <path-element>../../../../../libs/Core.swc</path-element>
>+ <path-element>../../../../../libs/Basic.swc</path-element>
>+ </external-library-path>
>+
>+ <mxml>
>+ <children-as-data>true</children-as-data>
>+ </mxml>
>+ <binding-value-change-event>org.apache.royale.events.ValueChangeEvent</
>binding-value-change-event>
>+ <binding-value-change-event-kind>org.apache.royale.events.ValueChangeEv
>ent</binding-value-change-event-kind>
>+ <binding-value-change-event-type>valueChange</binding-value-change-even
>t-type>
>+
>+ <define>
>+ <name>COMPILE::SWF</name>
>+ <value>true</value>
>+ </define>
>+ <define>
>+ <name>COMPILE::JS</name>
>+ <value>false</value>
>+ </define>
>+
>+ <keep-as3-metadata>
>+ <name>Bindable</name>
>+ <name>Managed</name>
>+ <name>ChangeEvent</name>
>+ <name>NonCommittingChangeEvent</name>
>+ <name>Transient</name>
>+ </keep-as3-metadata>
>+
>+ <locale/>
>+
>+ <library-path/>
>+
>+ <namespaces>
>+ <namespace>
>+ <uri>library://ns.apache.org/royale/ace</uri>
>+ <manifest>../resources/ace-manifest.xml</manifest>
>+ </namespace>
>+ </namespaces>
>+
>+ <source-path>
>+ <path-element>../royale</path-element>
>+ </source-path>
>+
>+ <warn-no-constructor>false</warn-no-constructor>
>+ </compiler>
>+
>+ <include-file>
>+ <name>defaults.css</name>
>+ <path>../resources/defaults.css</path>
>+ </include-file>
>+
>+ <include-classes>
>+ </include-classes>
>+
>+ <include-namespaces>
>+ <uri>library://ns.apache.org/royale/ace</uri>
>+ </include-namespaces>
>+
>+ <target-player>${playerglobal.version}</target-player>
>+
>+
>+</royale-config>
>diff --git a/frameworks/projects/Ace/src/main/resources/ace-manifest.xml
>b/frameworks/projects/Ace/src/main/resources/ace-manifest.xml
>new file mode 100644
>index 0000000..26b3fa1
>--- /dev/null
>+++ b/frameworks/projects/Ace/src/main/resources/ace-manifest.xml
>@@ -0,0 +1,27 @@
>+<?xml version="1.0"?>
>+<!--
>+
>+ 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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+
>+
>+<componentPackage>
>+
>+ <component id="Application"
>class="org.apache.royale.ace.Application"/>
>+ <component id="ACEEditor" class="org.apache.royale.ace.ACEEditor"/>
>+
>+</componentPackage>
>diff --git a/frameworks/projects/Ace/src/main/resources/defaults.css
>b/frameworks/projects/Ace/src/main/resources/defaults.css
>new file mode 100644
>index 0000000..dabf0dd
>--- /dev/null
>+++ b/frameworks/projects/Ace/src/main/resources/defaults.css
>@@ -0,0 +1,51 @@
>+/*
>+ *
>+ * 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ *
>+ */
>+@namespace ace "library://ns.apache.org/royale/ace";
>+
>+/*@media -royale-swf
>+{
>+
>+jq|TextButton
>+{
>+ IBeadModel:
>ClassReference("org.apache.royale.html.beads.models.TextModel");
>+ IBeadView:
>ClassReference("org.apache.royale.html.beads.TextButtonView");
>+}
>+
>+
>+jq|ToggleTextButton
>+{
>+ IBeadModel:
>ClassReference("org.apache.royale.html.beads.models.ToggleButtonModel");
>+ IBeadView:
>ClassReference("org.apache.royale.html.beads.TextButtonView");
>+}
>+
>+
>+jq|CheckBox
>+{
>+ IBeadModel:
>ClassReference("org.apache.royale.html.beads.models.ToggleButtonModel");
>+ IBeadView:
>ClassReference("org.apache.royale.html.beads.CheckBoxView");
>+}
>+
>+jq|RadioButton
>+{
>+ IBeadModel:
>ClassReference("org.apache.royale.html.beads.models.ValueToggleButtonModel
>");
>+ IBeadView:
>ClassReference("org.apache.royale.html.beads.RadioButtonView");
>+}
>+
>+
>+}*/
>diff --git a/frameworks/projects/Ace/src/main/royale/JQueryClasses.as
>b/frameworks/projects/Ace/src/main/royale/JQueryClasses.as
>new file mode 100644
>index 0000000..8df1080
>--- /dev/null
>+++ b/frameworks/projects/Ace/src/main/royale/JQueryClasses.as
>@@ -0,0 +1,33 @@
>+/////////////////////////////////////////////////////////////////////////
>///////
>+//
>+// 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
>+//
>+//
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+//
>+/////////////////////////////////////////////////////////////////////////
>///////
>+package
>+{
>+
>+/**
>+ * @private
>+ * This class is used to link additional classes into rpc.swc
>+ * beyond those that are found by dependecy analysis starting
>+ * from the classes specified in manifest.xml.
>+ */
>+internal class JQueryClasses
>+{
>+}
>+
>+}
>+
>diff --git
>a/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/ACEEditor.
>as
>b/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/ACEEditor.
>as
>new file mode 100644
>index 0000000..42a2600
>--- /dev/null
>+++
>b/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/ACEEditor.
>as
>@@ -0,0 +1,45 @@
>+/////////////////////////////////////////////////////////////////////////
>///////
>+//
>+// 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
>+//
>+//
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+//
>+/////////////////////////////////////////////////////////////////////////
>///////
>+package org.apache.royale.ace
>+{
>+ import org.apache.royale.core.UIBase;
>+
>+ public class ACEEditor extends org.apache.royale.core.UIBase
>+ {
>+ private var editor:Editor;
>+
>+ override public function addedToParent():void
>+ {
>+ super.addedToParent();
>+ editor = ace.edit(id);
>+ }
>+
>+ private var _theme:String;
>+ public function get theme():String
>+ {
>+ return _theme;
>+ }
>+
>+ public function set theme(value:String):void
>+ {
>+ _theme = value;
>+ editor.setTheme(value);
>+ }
>+ }
>+}
>diff --git
>a/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/Applicatio
>n.as
>b/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/Applicatio
>n.as
>new file mode 100644
>index 0000000..4a7c6d3
>--- /dev/null
>+++
>b/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/Applicatio
>n.as
>@@ -0,0 +1,40 @@
>+/////////////////////////////////////////////////////////////////////////
>///////
>+//
>+// 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
>+//
>+//
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+//
>+/////////////////////////////////////////////////////////////////////////
>///////
>+package org.apache.royale.ace
>+{
>+ import org.apache.royale.core.Application;
>+ import org.apache.royale.core.IFlexInfo;
>+
>+
>+ public class Application extends org.apache.royale.core.Application
>implements IFlexInfo
>+ {
>+ /**
>+ * The Royale Compiler will inject html into the index.html file.
>Surround with
>+ * "inject_html" tag as follows:
>+ *
>+ * <inject_html>
>+ * <script
>src="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.
>githubusercontent.com%2Fajaxorg%2Face-builds%2Fmaster%2Fsrc-min-noconflict
>%2Face.js&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b23984cdf31d908d57626
>b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636544831018671036&sdata
>=QuBSAKkkCLecSuMJd01UIH7IfcBSzbrKZbtCNVBwSzA%3D&reserved=0"></script>
>+ * </inject_html>
>+ */
>+ public function Application()
>+ {
>+ super();
>+ }
>+ }
>+}
>
>--
>To stop receiving notification emails like this one, please contact
>yishayw@apache.org.
RE: [royale-asjs] 01/01: Not working yet
Posted by Yishay Weiss <yi...@hotmail.com>.
Ok, thanks.
From: Alex Harui<ma...@adobe.com.INVALID>
Sent: Sunday, February 18, 2018 7:11 AM
To: dev@royale.apache.org<ma...@royale.apache.org>; commits@royale.apache.org<ma...@royale.apache.org>
Subject: Re: [royale-asjs] 01/01: Not working yet
Yishay,
It should not be necessary to subclass Application to get this to work.
We would not want that to be a recommended practice. The AceEditor.as
file should be able to have the inject_html directive.
HTH,
-Alex
On 2/17/18, 8:51 AM, "yishayw@apache.org" <yi...@apache.org> wrote:
>This is an automated email from the ASF dual-hosted git repository.
>
>yishayw pushed a commit to branch ace-editor
>in repository
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.ap
>ache.org%2Frepos%2Fasf%2Froyale-asjs.git&data=02%7C01%7Caharui%40adobe.com
>%7Ce1410f2b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0
>%7C0%7C636544831018671036&sdata=FjbRU12kZ5pUQ3Wcf%2B0vA6SE2RJwFw1lCEwRc05S
>9OM%3D&reserved=0
>
>commit 7f16aa937fe99964754c2b5d226733350f9401ba
>Author: DESKTOP-RH4S838\Yishay <yi...@hotmail.com>
>AuthorDate: Sat Feb 17 18:51:12 2018 +0200
>
> Not working yet
>---
> examples/build.xml | 1 +
> examples/royale/Ace/asconfig.json | 31 +++++
> examples/royale/Ace/build.xml | 55 ++++++++
> examples/royale/Ace/pom.xml | 139
>+++++++++++++++++++++
> .../Ace/src/main/config/compile-app-config.xml | 28 +++++
> examples/royale/Ace/src/main/royale/ACEEditor.as | 46 +++++++
> examples/royale/Ace/src/main/royale/Ace.mxml | 35 ++++++
> examples/royale/Ace/src/main/royale/Application.as | 40 ++++++
> frameworks/build.xml | 1 +
> frameworks/projects/Ace/asconfig.json | 34 +++++
> frameworks/projects/Ace/build.xml | 130
>+++++++++++++++++++
> frameworks/projects/Ace/js/tests/MyController.js | 56 +++++++++
> frameworks/projects/Ace/js/tests/MyInitialView.js | 67 ++++++++++
> frameworks/projects/Ace/js/tests/MyModel.js | 60 +++++++++
> .../projects/Ace/js/tests/MySimpleValuesImpl.js | 45 +++++++
> frameworks/projects/Ace/js/tests/RoyaleTest.js | 63 ++++++++++
> frameworks/projects/Ace/js/tests/test.html | 62 +++++++++
> frameworks/projects/Ace/pom.xml | 105 ++++++++++++++++
> .../Ace/src/main/config/compile-swf-config.xml | 92 ++++++++++++++
> .../Ace/src/main/resources/ace-manifest.xml | 27 ++++
> .../projects/Ace/src/main/resources/defaults.css | 51 ++++++++
> .../projects/Ace/src/main/royale/JQueryClasses.as | 33 +++++
> .../main/royale/org/apache/royale/ace/ACEEditor.as | 45 +++++++
> .../royale/org/apache/royale/ace/Application.as | 40 ++++++
> 24 files changed, 1286 insertions(+)
>
>diff --git a/examples/build.xml b/examples/build.xml
>index 6ad69ea..57a9f9b 100644
>--- a/examples/build.xml
>+++ b/examples/build.xml
>@@ -74,6 +74,7 @@
> </target>
>
> <target name="compile" description="Compile Examples" >
>+ <!--ant dir="${basedir}/royale/Ace"--/>
> <ant dir="${basedir}/express/DataBindingExample"/>
> <ant dir="${basedir}/express/DataGridExample"/>
> <ant dir="${basedir}/royale/AccordionExample"/>
>diff --git a/examples/royale/Ace/asconfig.json
>b/examples/royale/Ace/asconfig.json
>new file mode 100644
>index 0000000..b82e00f
>--- /dev/null
>+++ b/examples/royale/Ace/asconfig.json
>@@ -0,0 +1,31 @@
>+/////////////////////////////////////////////////////////////////////////
>///////
>+//
>+// 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
>+//
>+//
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+//
>+/////////////////////////////////////////////////////////////////////////
>///////
>+{
>+ "config": "royale",
>+ "compilerOptions": {
>+ "debug": false,
>+ "targets": ["JSRoyale","SWF"],
>+ "source-map": true
>+ },
>+ "additionalOptions": "-remove-circulars
>-js-output-optimization=skipAsCoercions",
>+ "files":
>+ [
>+ "src/main/royale/Ace.mxml"
>+ ]
>+}
>diff --git a/examples/royale/Ace/build.xml b/examples/royale/Ace/build.xml
>new file mode 100644
>index 0000000..0227067
>--- /dev/null
>+++ b/examples/royale/Ace/build.xml
>@@ -0,0 +1,55 @@
>+<?xml version="1.0"?>
>+<!--
>+
>+ 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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+
>+
>+<project name="Ace" default="main" basedir=".">
>+ <property name="ROYALE_HOME" location="../../.."/>
>+ <property name="example" value="Ace" />
>+
>+ <property file="${ROYALE_HOME}/env.properties"/>
>+ <property environment="env"/>
>+ <property file="${ROYALE_HOME}/build.properties"/>
>+ <property name="ROYALE_HOME" value="${ROYALE_HOME}"/>
>+
>+ <include file="${basedir}/../../build_example.xml" />
>+
>+ <target name="main" depends="clean,build_example.compile"
>description="Clean build of ${example}">
>+ </target>
>+
>+ <target name="clean">
>+ <delete dir="${basedir}/bin" failonerror="false" />
>+ <delete dir="${basedir}/bin-debug" failonerror="false" />
>+ <delete dir="${basedir}/bin-release" failonerror="false" />
>+ <delete dir="${basedir}/target" failonerror="false" />
>+ </target>
>+
>+ <target name="examine" depends="build_example.get.browser">
>+ <property name="which" value="debug" />
>+ <echo message="Make sure label appears."/>
>+ <exec executable="${browser}" dir="${basedir}/bin-${which}"
>failonerror="true">
>+ <arg value="${basedir}/bin-${which}/${example}.html"/>
>+ </exec>
>+ <exec executable="${browser}" dir="${basedir}/bin/js-${which}"
>failonerror="true">
>+ <arg value="${basedir}/bin/js-${which}/index.html"/>
>+ </exec>
>+ </target>
>+
>+</project>
>+
>diff --git a/examples/royale/Ace/pom.xml b/examples/royale/Ace/pom.xml
>new file mode 100644
>index 0000000..bf66af1
>--- /dev/null
>+++ b/examples/royale/Ace/pom.xml
>@@ -0,0 +1,139 @@
>+<?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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+<project
>xmlns="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmav
>en.apache.org%2FPOM%2F4.0.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b23
>984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636544
>831018671036&sdata=rX4luaDgIlp4djaZgNV8IYCuk%2B%2F1aCwllX7HBsYi8ww%3D&rese
>rved=0"
>xmlns:xsi="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2
>Fwww.w3.org%2F2001%2FXMLSchema-instance&data=02%7C01%7Caharui%40adobe.com%
>7Ce1410f2b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>7C0%7C636544831018671036&sdata=MFa3hQgxwaWwTr2M7KHWIFjJ3vSmrabr3gKvtTsVzIw
>%3D&reserved=0"
>xsi:schemaLocation="https://na01.safelinks.protection.outlook.com/?url=htt
>p%3A%2F%2Fmaven.apache.org%2FPOM%2F4.0.0&data=02%7C01%7Caharui%40adobe.com
>%7Ce1410f2b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0
>%7C0%7C636544831018671036&sdata=rX4luaDgIlp4djaZgNV8IYCuk%2B%2F1aCwllX7HBs
>Yi8ww%3D&reserved=0
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmaven.apac
>he.org%2Fmaven-v4_0_0.xsd&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b2398
>4cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63654483
>1018671036&sdata=guq7ic8JeGye2Ear8%2B8tHmSZtEnBZuLIoXkAlKJQg1I%3D&reserved
>=0">
>+ <modelVersion>4.0.0</modelVersion>
>+
>+ <parent>
>+ <groupId>org.apache.royale.examples</groupId>
>+ <artifactId>examples-royale</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ </parent>
>+
>+ <artifactId>RoyaleStore_jquery</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <packaging>swf</packaging>
>+
>+ <name>Apache Royale: Examples: Royale: RoyaleStore_jquery</name>
>+
>+ <build>
>+ <plugins>
>+ <plugin>
>+ <groupId>org.apache.royale.compiler</groupId>
>+ <artifactId>royale-maven-plugin</artifactId>
>+ <extensions>true</extensions>
>+ <configuration>
>+ <mainClass>RoyaleStore.mxml</mainClass>
>+ <removeCirculars>true</removeCirculars>
>+ </configuration>
>+ </plugin>
>+ </plugins>
>+ </build>
>+
>+ <dependencies>
>+ <dependency>
>+ <groupId>com.adobe.flash.framework</groupId>
>+ <artifactId>playerglobal</artifactId>
>+ <version>${flash.version}</version>
>+ <type>swc</type>
>+ <scope>provided</scope>
>+ </dependency>
>+
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>DragDrop</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>DragDrop</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Effects</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Effects</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Formatters</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Formatters</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>JQuery</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>JQuery</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Network</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Network</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+
>+ <dependency>
>+ <groupId>org.apache.royale.typedefs</groupId>
>+ <artifactId>royale-typedefs-jquery</artifactId>
>+ <version>${royale.typedefs.version}</version>
>+ <type>swc</type>
>+ <classifier>typedefs</classifier>
>+ <scope>runtime</scope>
>+ </dependency>
>+ </dependencies>
>+
>+</project>
>diff --git a/examples/royale/Ace/src/main/config/compile-app-config.xml
>b/examples/royale/Ace/src/main/config/compile-app-config.xml
>new file mode 100644
>index 0000000..390e42b
>--- /dev/null
>+++ b/examples/royale/Ace/src/main/config/compile-app-config.xml
>@@ -0,0 +1,28 @@
>+<!--
>+
>+ 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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+<royale-config>
>+ <js-output-optimization>
>+ <optimization>skipFunctionCoercions</optimization>
>+ </js-output-optimization>
>+ <compiler>
>+ <js-external-library-path append="true">
>+
><path-element>../../../../../../js/libs/ace-1.2.3.swc</path-element>
>+ </js-external-library-path>
>+ </compiler>
>+</royale-config>
>diff --git a/examples/royale/Ace/src/main/royale/ACEEditor.as
>b/examples/royale/Ace/src/main/royale/ACEEditor.as
>new file mode 100644
>index 0000000..7c08f07
>--- /dev/null
>+++ b/examples/royale/Ace/src/main/royale/ACEEditor.as
>@@ -0,0 +1,46 @@
>+/////////////////////////////////////////////////////////////////////////
>///////
>+//
>+// 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
>+//
>+//
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+//
>+/////////////////////////////////////////////////////////////////////////
>///////
>+package
>+{
>+ import org.apache.royale.core.UIBase;
>+ import ace.Editor;
>+
>+ public class ACEEditor extends org.apache.royale.core.UIBase
>+ {
>+ private var editor:Editor;
>+
>+ override public function addedToParent():void
>+ {
>+ super.addedToParent();
>+ editor = ace.edit(id);
>+ }
>+
>+ private var _theme:String;
>+ public function get theme():String
>+ {
>+ return _theme;
>+ }
>+
>+ public function set theme(value:String):void
>+ {
>+ _theme = value;
>+ editor.setTheme(value);
>+ }
>+ }
>+}
>diff --git a/examples/royale/Ace/src/main/royale/Ace.mxml
>b/examples/royale/Ace/src/main/royale/Ace.mxml
>new file mode 100644
>index 0000000..e27a80e
>--- /dev/null
>+++ b/examples/royale/Ace/src/main/royale/Ace.mxml
>@@ -0,0 +1,35 @@
>+<?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
>+
>+https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apach
>e.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2
>b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636
>544831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&res
>erved=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.
>+
>+-->
>+<local:Application
>xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F
>ns.adobe.com%2Fmxml%2F2009&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b239
>84cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365448
>31018671036&sdata=GTFFrPSFMi6%2F%2Bz19AO%2B4WOGP52QyCjGxeuIrhkaZwWc%3D&res
>erved=0"
>+ xmlns:local="*"
>+ xmlns:js="library://ns.apache.org/royale/basic" >
>+ <js:valuesImpl>
>+ <js:SimpleCSSValuesImpl />
>+ </js:valuesImpl>
>+ <js:initialView>
>+ <js:View>
>+ <js:VContainer>
>+ <js:Label text="Hello World!" />
>+ <local:ACEEditor id="myEditor" width="400" height="400"/>
>+ </js:VContainer>
>+ </js:View>
>+ </js:initialView>
>+</local:Application>
>+
>diff --git a/examples/royale/Ace/src/main/royale/Application.as
>b/examples/royale/Ace/src/main/royale/Application.as
>new file mode 100644
>index 0000000..c9626f1
>--- /dev/null
>+++ b/examples/royale/Ace/src/main/royale/Application.as
>@@ -0,0 +1,40 @@
>+/////////////////////////////////////////////////////////////////////////
>///////
>+//
>+// 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
>+//
>+//
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+//
>+/////////////////////////////////////////////////////////////////////////
>///////
>+package
>+{
>+ import org.apache.royale.core.Application;
>+ import org.apache.royale.core.IFlexInfo;
>+
>+
>+ public class Application extends org.apache.royale.core.Application
>implements IFlexInfo
>+ {
>+ /**
>+ * The Royale Compiler will inject html into the index.html file.
>Surround with
>+ * "inject_html" tag as follows:
>+ *
>+ * <inject_html>
>+ * <script
>src="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.
>githubusercontent.com%2Fajaxorg%2Face-builds%2Fmaster%2Fsrc-min-noconflict
>%2Face.js&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b23984cdf31d908d57626
>b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636544831018671036&sdata
>=QuBSAKkkCLecSuMJd01UIH7IfcBSzbrKZbtCNVBwSzA%3D&reserved=0"></script>
>+ * </inject_html>
>+ */
>+ public function Application()
>+ {
>+ super();
>+ }
>+ }
>+}
>diff --git a/frameworks/build.xml b/frameworks/build.xml
>index e58c9dc..fb32221 100644
>--- a/frameworks/build.xml
>+++ b/frameworks/build.xml
>@@ -126,6 +126,7 @@
> <antcall target="CreateJS"/>
> <antcall target="HTML5"/>
> <antcall target="JQuery"/>
>+ <!--antcall target="Ace"/-->
> <antcall target="Mobile"/>
> <antcall target="Reflection"/>
> <antcall target="Network"/>
>diff --git a/frameworks/projects/Ace/asconfig.json
>b/frameworks/projects/Ace/asconfig.json
>new file mode 100644
>index 0000000..7efe580
>--- /dev/null
>+++ b/frameworks/projects/Ace/asconfig.json
>@@ -0,0 +1,34 @@
>+/*
>+ * 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ */
>+ {
>+ "config": "royale",
>+ "type": "lib",
>+ "compilerOptions": {
>+ "debug": true,
>+ "targets": [
>+ "SWF",
>+ "JSRoyale"
>+ ],
>+ "include-classes": [
>+ "JQueryClasses"
>+ ],
>+ "include-sources": [
>+ "src/main/royale"
>+ ],
>+ "output": "target/JQuery.swc"
>+ }
>+}
>diff --git a/frameworks/projects/Ace/build.xml
>b/frameworks/projects/Ace/build.xml
>new file mode 100644
>index 0000000..a5ec831
>--- /dev/null
>+++ b/frameworks/projects/Ace/build.xml
>@@ -0,0 +1,130 @@
>+<?xml version="1.0"?>
>+<!--
>+
>+ 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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+
>+
>+<project name="Ace" default="main" basedir=".">
>+ <property name="ROYALE_HOME" location="../../.."/>
>+
>+ <property file="${ROYALE_HOME}/env.properties"/>
>+ <property environment="env"/>
>+ <property file="${ROYALE_HOME}/build.properties"/>
>+ <property name="ROYALE_HOME" value="${ROYALE_HOME}"/>
>+
>+ <property name="target.name" value="${ant.project.name}.swc" />
>+
>+ <target name="main"
>depends="clean,check-compiler,compile,compile-js,copy-swc,test"
>description="Full build of ${ant.project.name}.swc">
>+ </target>
>+
>+ <target name="compile-js">
>+ <ant
>dir="${ROYALE_HOME}/frameworks/js/projects/${ant.project.name}JS/"
>inheritAll="false" >
>+ <property name="ROYALE_SWF_COMPILER_HOME"
>value="${ROYALE_SWF_COMPILER_HOME}"/>
>+ <property name="ROYALE_COMPILER_HOME"
>value="${ROYALE_COMPILER_HOME}"/>
>+ <property name="ROYALE_HOME" value="${ROYALE_HOME}"/>
>+ </ant>
>+ </target>
>+
>+ <target name="copy-swc" if="env.AIR_HOME">
>+ <copy file="${basedir}/target/${target.name}"
>tofile="${ROYALE_HOME}/frameworks/libs/${target.name}" />
>+ </target>
>+
>+ <target name="check-for-tests" >
>+ <condition property="skip-tests" >
>+ <not>
>+ <available file="${basedir}/src/test/royale/build.xml" />
>+ </not>
>+ </condition>
>+ </target>
>+
>+ <target name="test" depends="check-for-tests" unless="skip-tests">
>+ <ant dir="src/test/royale" />
>+ </target>
>+
>+ <target name="clean">
>+ <delete failonerror="false">
>+ <fileset dir="${ROYALE_HOME}/frameworks/libs">
>+ <include name="${target.name}"/>
>+ </fileset>
>+ </delete>
>+ <delete failonerror="false" includeemptydirs="true">
>+ <fileset dir="${basedir}/target">
>+ <include name="**/**"/>
>+ </fileset>
>+ </delete>
>+ <antcall target="clean-tests" />
>+ </target>
>+
>+ <target name="clean-tests" depends="check-for-tests"
>unless="skip-tests">
>+ <ant dir="src/test/royale" target="clean"/>
>+ </target>
>+
>+ <target name="compile" description="Compiles .as files into .swc"
>if="env.AIR_HOME">
>+ <echo message="Compiling libs/${ant.project.name}.swc"/>
>+ <echo message="ROYALE_HOME: ${ROYALE_HOME}"/>
>+ <echo message="ROYALE_SWF_COMPILER_HOME:
>${ROYALE_SWF_COMPILER_HOME}"/>
>+ <echo message="ROYALE_COMPILER_HOME: ${ROYALE_COMPILER_HOME}"/>
>+
>+ <java jar="${ROYALE_COMPILER_HOME}/lib/compc.jar" fork="true" >
>+ <jvmarg value="-Xmx384m" />
>+ <jvmarg value="-Dsun.io.useCanonCaches=false" />
>+ <jvmarg value="-Droyalelib=${ROYALE_HOME}/frameworks" />
>+ <arg value="+royalelib=${ROYALE_HOME}/frameworks" />
>+ <arg value="+playerglobal.version=${playerglobal.version}" />
>+ <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
>+ <arg value="-compiler.strict-xml=true" />
>+ <arg value="-compiler.targets=JSRoyale" />
>+ <arg value="-output=${basedir}/target/${target.name}" />
>+ <arg
>value="-load-config=${basedir}/src/main/config/compile-swf-config.xml" />
>+ <arg
>value="-js-load-config=${ROYALE_HOME}/frameworks/js-config.xml" />
>+ <arg
>value="-js-load-config+=${basedir}/../../js/projects/${ant.project.name}JS
>/src/main/config/compile-js-config.xml" />
>+ </java>
>+ </target>
>+
>+ <target name="check-compiler"
>depends="check-compiler-home,check-transpiler-home">
>+ <path id="lib.path">
>+ <fileset dir="${ROYALE_COMPILER_HOME}/lib"
>includes="compiler-royaleTasks.jar"/>
>+ </path>
>+ <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
>+ </target>
>+
>+ <target name="check-compiler-home"
>+ description="Set ROYALE_SWF_COMPILER_HOME to point at the
>compiler.">
>+
>+ <available file="${ROYALE_HOME}/lib/compiler-mxmlc.jar"
>+ type="file"
>+ property="ROYALE_SWF_COMPILER_HOME"
>+ value="${ROYALE_HOME}"/>
>+
>+ <fail message="ROYALE_SWF_COMPILER_HOME must be set to a folder
>with a lib sub-folder containing compiler-mxmlc.jar such as the compiler
>folder in royale-compiler repo or the root of a Royale SDK"
>+ unless="ROYALE_SWF_COMPILER_HOME"/>
>+ </target>
>+
>+ <target name="check-transpiler-home"
>+ description="Set ROYALE_COMPILER_HOME to point at the
>cross-compiler.">
>+
>+ <available file="${ROYALE_HOME}/js/lib/jsc.jar"
>+ type="file"
>+ property="ROYALE_COMPILER_HOME"
>+ value="${ROYALE_HOME}/js"/>
>+
>+ <fail message="ROYALE_COMPILER_HOME must be set to a folder with
>a lib sub-folder containing jsc.jar such as the compiler-jx folder in
>royale-compiler repo or the js folder of a Royale SDK"
>+ unless="ROYALE_COMPILER_HOME"/>
>+ </target>
>+
>+</project>
>diff --git a/frameworks/projects/Ace/js/tests/MyController.js
>b/frameworks/projects/Ace/js/tests/MyController.js
>new file mode 100644
>index 0000000..b15dc27
>--- /dev/null
>+++ b/frameworks/projects/Ace/js/tests/MyController.js
>@@ -0,0 +1,56 @@
>+/**
>+ * Licensed 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ */
>+
>+goog.provide('MyController');
>+
>+goog.require('flash.events.EventDispatcher');
>+
>+goog.require('org.apache.royale.FlexGlobal');
>+
>+/**
>+ * @constructor
>+ * @param {org.apache.royale.core.Application} app The main application.
>+ */
>+MyController = function(app) {
>+ /**
>+ * @type {org.apache.royale.core.Application}
>+ */
>+ this.app = app || null;
>+
>+ this.app.addEventListener(
>+ 'viewChanged', org.apache.royale.FlexGlobal.createProxy(
>+ this, this.viewChangeHandler
>+ )
>+ );
>+};
>+
>+/**
>+ * @this {MyController}
>+ * @param {flash.events.Event} event The event.
>+ */
>+MyController.prototype.viewChangeHandler = function(event) {
>+ this.app.initialView.addEventListener(
>+ 'buttonClicked', org.apache.royale.FlexGlobal.createProxy(
>+ this, this.buttonClickHandler
>+ )
>+ );
>+};
>+
>+/**
>+ * @this {MyController}
>+ * @param {flash.events.Event} event The event.
>+ */
>+MyController.prototype.buttonClickHandler = function(event) {
>+ this.app.model.set_labelText('Hello Universe');
>+};
>diff --git a/frameworks/projects/Ace/js/tests/MyInitialView.js
>b/frameworks/projects/Ace/js/tests/MyInitialView.js
>new file mode 100644
>index 0000000..ef7d456
>--- /dev/null
>+++ b/frameworks/projects/Ace/js/tests/MyInitialView.js
>@@ -0,0 +1,67 @@
>+/**
>+ * Licensed 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ */
>+
>+goog.provide('MyInitialView');
>+
>+goog.require('org.apache.royale.FlexGlobal');
>+
>+goog.require('org.apache.royale.core.ViewBase');
>+goog.require('org.apache.royale.html.Label');
>+goog.require('org.apache.royale.html.TextButton');
>+
>+/**
>+ * @constructor
>+ * @extends {org.apache.royale.core.ViewBase}
>+ */
>+MyInitialView = function() {
>+ org.apache.royale.core.ViewBase.call(this);
>+};
>+goog.inherits(MyInitialView, org.apache.royale.core.ViewBase);
>+
>+/**
>+ * @override
>+ * @this {org.apache.royale.core.ViewBase}
>+ * @return {Array} The array of UI element descriptors.
>+ */
>+MyInitialView.prototype.get_uiDescriptors = function() {
>+ return [
>+ org.apache.royale.html.Label,
>+ null,
>+ 'lbl',
>+ 2, 'x', 100, 'y', 25,
>+ 0,
>+ 0,
>+ 1, 'text', 0, 'model', 'labelText', 'labelTextChanged',
>+ org.apache.royale.html.TextButton,
>+ null,
>+ null,
>+ 3, 'text', 'OK', 'x', 100, 'y', 75,
>+ 0,
>+ 1, 'click', this.clickHandler, 0
>+ ];
>+};
>+
>+/**
>+ * @this {MyInitialView}
>+ * @param {flash.events.Event} event The event.
>+ */
>+MyInitialView.prototype.clickHandler = function(event) {
>+ this.dispatchEvent(
>+ /** @type {flash.events.Event} */ (
>+ org.apache.royale.FlexGlobal.newObject(
>+ flash.events.Event, ['buttonClicked']
>+ )
>+ )
>+ );
>+};
>diff --git a/frameworks/projects/Ace/js/tests/MyModel.js
>b/frameworks/projects/Ace/js/tests/MyModel.js
>new file mode 100644
>index 0000000..906bc1e
>--- /dev/null
>+++ b/frameworks/projects/Ace/js/tests/MyModel.js
>@@ -0,0 +1,60 @@
>+/**
>+ * Licensed 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ */
>+
>+goog.provide('MyModel');
>+
>+goog.require('flash.events.EventDispatcher');
>+
>+goog.require('org.apache.royale.FlexGlobal');
>+
>+/**
>+ * @constructor
>+ * @extends {flash.events.EventDispatcher}
>+ */
>+MyModel = function() {
>+ flash.events.EventDispatcher.call(this);
>+
>+ /**
>+ * @private
>+ * @type {string}
>+ */
>+ this.labelText_;
>+};
>+goog.inherits(MyModel, flash.events.EventDispatcher);
>+
>+/**
>+ * @export
>+ * @this {MyModel}
>+ * @return {string} The labelText getter.
>+ */
>+MyModel.prototype.get_labelText = function() {
>+ return this.labelText_;
>+};
>+
>+/**
>+ * @export
>+ * @this {MyModel}
>+ * @param {string} value The labelText setter.
>+ */
>+MyModel.prototype.set_labelText = function(value) {
>+ if (value != this.labelText_) {
>+ this.labelText_ = value;
>+
>+ this.dispatchEvent(
>+ org.apache.royale.FlexGlobal.newObject(
>+ flash.events.Event, ['labelTextChanged']
>+ )
>+ );
>+ }
>+};
>diff --git a/frameworks/projects/Ace/js/tests/MySimpleValuesImpl.js
>b/frameworks/projects/Ace/js/tests/MySimpleValuesImpl.js
>new file mode 100644
>index 0000000..a7fab18
>--- /dev/null
>+++ b/frameworks/projects/Ace/js/tests/MySimpleValuesImpl.js
>@@ -0,0 +1,45 @@
>+/*
>+ *
>+ * 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ */
>+
>+goog.provide('MySimpleValuesImpl');
>+
>+goog.require('org.apache.royale.core.SimpleValuesImpl');
>+
>+/**
>+ * @constructor
>+ * @extends {org.apache.royale.core.SimpleValuesImpl}
>+ */
>+MySimpleValuesImpl = function() {
>+ org.apache.royale.core.SimpleValuesImpl.call(this);
>+
>+ /**
>+ * @private
>+ * @type {Object}
>+ */
>+ this.values_ = {
>+ /*
>+ ITextButtonBead :
>+ org.apache.royale.html.beads.TextButtonBead,
>+ ITextBead :
>+ org.apache.royale.html.beads.TextFieldBead,
>+ ITextModel :
>+ org.apache.royale.html.beads.models.TextModel
>+ */
>+ };
>+};
>+goog.inherits(MySimpleValuesImpl,
>org.apache.royale.core.SimpleValuesImpl);
>diff --git a/frameworks/projects/Ace/js/tests/RoyaleTest.js
>b/frameworks/projects/Ace/js/tests/RoyaleTest.js
>new file mode 100644
>index 0000000..8b0dd73
>--- /dev/null
>+++ b/frameworks/projects/Ace/js/tests/RoyaleTest.js
>@@ -0,0 +1,63 @@
>+/*
>+ *
>+ * 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ */
>+
>+goog.provide('RoyaleTest');
>+
>+goog.require('MyController');
>+goog.require('MyInitialView');
>+goog.require('MyModel');
>+goog.require('MySimpleValuesImpl');
>+
>+goog.require('org.apache.royale.FlexGlobal');
>+
>+goog.require('org.apache.royale.core.Application');
>+
>+/**
>+ * @constructor
>+ * @extends {org.apache.royale.core.Application}
>+ */
>+RoyaleTest = function() {
>+ org.apache.royale.core.Application.call(this);
>+
>+ this.controller = org.apache.royale.FlexGlobal.newObject(
>+ MyController, [this]
>+ );
>+
>+ this.initialView =
>+ /** @type {org.apache.royale.core.ViewBase} */ (
>+ org.apache.royale.FlexGlobal.newObject(MyInitialView, [this])
>+ );
>+
>+ this.model =
>+ /** @type {flash.events.EventDispatcher} */ (
>+ org.apache.royale.FlexGlobal.newObject(MyModel, [])
>+ );
>+ this.model.set_labelText('Say hi!');
>+
>+ this.valuesImpl =
>+ /** @type {org.apache.royale.core.SimpleValuesImpl} */ (
>+ org.apache.royale.FlexGlobal.newObject(MySimpleValuesImpl,
>[this])
>+ );
>+
>+ // this method of logging survives the Closure Compiler
>+ //window['console']['log'](app);
>+};
>+goog.inherits(RoyaleTest, org.apache.royale.core.Application);
>+
>+// Ensures the symbol will be visible after compiler renaming.
>+goog.exportSymbol('RoyaleTest', RoyaleTest);
>diff --git a/frameworks/projects/Ace/js/tests/test.html
>b/frameworks/projects/Ace/js/tests/test.html
>new file mode 100644
>index 0000000..ed804e2
>--- /dev/null
>+++ b/frameworks/projects/Ace/js/tests/test.html
>@@ -0,0 +1,62 @@
>+<?xml version="1.0"?>
>+<!--
>+
>+ 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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+<html>
>+<head>
>+
>+ <!-- start "compiled" -->
>+ <script type="text/javascript" src="./Royale.js"></script>
>+ <!-- end "compiled" -->
>+
>+ <!-- start "all": sequence matters ;-) ->
>+
>+ <script type="text/javascript"
>src="../closure/library/closure/goog/base.js"></script>
>+
>+ <script type="text/javascript" src="../src/FlexObject.js"></script>
>+
>+ <script type="text/javascript"
>src="../src/flash/events/Event.js"></script>
>+
>+ <script type="text/javascript" src="../src/FlexGlobal.js"></script>
>+
>+ <script type="text/javascript"
>src="../src/flash/events/EventDispatcher.js"></script>
>+
>+ <script type="text/javascript"
>src="../src/org/apache/royale/binding/SimpleBinding.js"></script>
>+
>+ <script type="text/javascript"
>src="../src/org/apache/royale/core/UIBase.js"></script>
>+ <script type="text/javascript"
>src="../src/org/apache/royale/core/ViewBase.js"></script>
>+ <script type="text/javascript"
>src="../src/org/apache/royale/core/ValuesManager.js"></script>
>+ <script type="text/javascript"
>src="../src/org/apache/royale/core/SimpleValuesImpl.js"></script>
>+ <script type="text/javascript"
>src="../src/org/apache/royale/core/Application.js"></script>
>+
>+ <script type="text/javascript"
>src="../src/org/apache/royale/html/Label.js"></script>
>+ <script type="text/javascript"
>src="../src/org/apache/royale/html/TextButton.js"></script>
>+
>+ <script type="text/javascript"
>src="./MySimpleValuesImpl.js"></script>
>+ <script type="text/javascript" src="./MyController.js"></script>
>+ <script type="text/javascript" src="./MyModel.js"></script>
>+ <script type="text/javascript" src="./MyInitialView.js"></script>
>+
>+ <script type="text/javascript" src="./RoyaleTest.js"></script>
>+
>+ <!-- end "all" -->
>+
>+</head>
>+<body onLoad="new RoyaleTest().start();">
>+</body>
>+</html>
>diff --git a/frameworks/projects/Ace/pom.xml
>b/frameworks/projects/Ace/pom.xml
>new file mode 100644
>index 0000000..41a878a
>--- /dev/null
>+++ b/frameworks/projects/Ace/pom.xml
>@@ -0,0 +1,105 @@
>+<?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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+<project
>xmlns="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmav
>en.apache.org%2FPOM%2F4.0.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b23
>984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636544
>831018671036&sdata=rX4luaDgIlp4djaZgNV8IYCuk%2B%2F1aCwllX7HBsYi8ww%3D&rese
>rved=0"
>xmlns:xsi="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2
>Fwww.w3.org%2F2001%2FXMLSchema-instance&data=02%7C01%7Caharui%40adobe.com%
>7Ce1410f2b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>7C0%7C636544831018671036&sdata=MFa3hQgxwaWwTr2M7KHWIFjJ3vSmrabr3gKvtTsVzIw
>%3D&reserved=0"
>xsi:schemaLocation="https://na01.safelinks.protection.outlook.com/?url=htt
>p%3A%2F%2Fmaven.apache.org%2FPOM%2F4.0.0&data=02%7C01%7Caharui%40adobe.com
>%7Ce1410f2b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0
>%7C0%7C636544831018671036&sdata=rX4luaDgIlp4djaZgNV8IYCuk%2B%2F1aCwllX7HBs
>Yi8ww%3D&reserved=0
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmaven.apac
>he.org%2Fxsd%2Fmaven-4.0.0.xsd&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2
>b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636
>544831018671036&sdata=Ts%2Fc%2BaoMqTC9L51zxuS%2BURYUfX0TtFwxjqjh1N3sWQ4%3D
>&reserved=0">
>+ <modelVersion>4.0.0</modelVersion>
>+
>+ <parent>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>projects</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ </parent>
>+
>+ <artifactId>JQuery</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <packaging>swc</packaging>
>+
>+ <name>Apache Royale: Framework: Libs: JQuery</name>
>+
>+ <build>
>+ <sourceDirectory>src/main/royale</sourceDirectory>
>+ <plugins>
>+ <plugin>
>+ <groupId>org.apache.royale.compiler</groupId>
>+ <artifactId>royale-maven-plugin</artifactId>
>+ <version>${royale.compiler.version}</version>
>+ <extensions>true</extensions>
>+ <configuration>
>+ <namespaces>
>+ <namespace>
>+ <uri>library://ns.apache.org/royale/ace</uri>
>+
><manifest>${project.basedir}/src/main/resources/ace-manifest.xml</manifest
>>
>+ </namespace>
>+ </namespaces>
>+ <includeClasses>
>+ <includeClass>JQueryClasses</includeClass>
>+ </includeClasses>
>+ <includeFiles>
>+ <include-file>
>+ <name>defaults.css</name>
>+ <path>../src/main/resources/defaults.css</path>
>+ </include-file>
>+ </includeFiles>
>+ <skipExtern>true</skipExtern>
>+ </configuration>
>+ </plugin>
>+ </plugins>
>+ </build>
>+
>+ <dependencies>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Core</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Core</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Basic</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>swf</classifier>
>+ </dependency>
>+ <dependency>
>+ <groupId>org.apache.royale.framework</groupId>
>+ <artifactId>Basic</artifactId>
>+ <version>0.9.2-SNAPSHOT</version>
>+ <type>swc</type>
>+ <classifier>js</classifier>
>+ </dependency>
>+
>+ <dependency>
>+ <groupId>org.apache.royale.typedefs</groupId>
>+ <artifactId>royale-typedefs-ace</artifactId>
>+ <version>${royale.typedefs.version}</version>
>+ <type>swc</type>
>+ <classifier>typedefs</classifier>
>+ <scope>runtime</scope>
>+ </dependency>
>+ </dependencies>
>+
>+</project>
>diff --git
>a/frameworks/projects/Ace/src/main/config/compile-swf-config.xml
>b/frameworks/projects/Ace/src/main/config/compile-swf-config.xml
>new file mode 100644
>index 0000000..ef6b056
>--- /dev/null
>+++ b/frameworks/projects/Ace/src/main/config/compile-swf-config.xml
>@@ -0,0 +1,92 @@
>+<!--
>+
>+ 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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+<royale-config>
>+
>+ <compiler>
>+ <accessible>false</accessible>
>+
>+ <targets>
>+ <target>JSRoyale</target>
>+ </targets>
>+ <strict-xml>true</strict-xml>
>+
>+ <external-library-path>
>+
><path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</path-elem
>ent>
>+ <path-element>../../../../../libs/Core.swc</path-element>
>+ <path-element>../../../../../libs/Basic.swc</path-element>
>+ </external-library-path>
>+
>+ <mxml>
>+ <children-as-data>true</children-as-data>
>+ </mxml>
>+ <binding-value-change-event>org.apache.royale.events.ValueChangeEvent</
>binding-value-change-event>
>+ <binding-value-change-event-kind>org.apache.royale.events.ValueChangeEv
>ent</binding-value-change-event-kind>
>+ <binding-value-change-event-type>valueChange</binding-value-change-even
>t-type>
>+
>+ <define>
>+ <name>COMPILE::SWF</name>
>+ <value>true</value>
>+ </define>
>+ <define>
>+ <name>COMPILE::JS</name>
>+ <value>false</value>
>+ </define>
>+
>+ <keep-as3-metadata>
>+ <name>Bindable</name>
>+ <name>Managed</name>
>+ <name>ChangeEvent</name>
>+ <name>NonCommittingChangeEvent</name>
>+ <name>Transient</name>
>+ </keep-as3-metadata>
>+
>+ <locale/>
>+
>+ <library-path/>
>+
>+ <namespaces>
>+ <namespace>
>+ <uri>library://ns.apache.org/royale/ace</uri>
>+ <manifest>../resources/ace-manifest.xml</manifest>
>+ </namespace>
>+ </namespaces>
>+
>+ <source-path>
>+ <path-element>../royale</path-element>
>+ </source-path>
>+
>+ <warn-no-constructor>false</warn-no-constructor>
>+ </compiler>
>+
>+ <include-file>
>+ <name>defaults.css</name>
>+ <path>../resources/defaults.css</path>
>+ </include-file>
>+
>+ <include-classes>
>+ </include-classes>
>+
>+ <include-namespaces>
>+ <uri>library://ns.apache.org/royale/ace</uri>
>+ </include-namespaces>
>+
>+ <target-player>${playerglobal.version}</target-player>
>+
>+
>+</royale-config>
>diff --git a/frameworks/projects/Ace/src/main/resources/ace-manifest.xml
>b/frameworks/projects/Ace/src/main/resources/ace-manifest.xml
>new file mode 100644
>index 0000000..26b3fa1
>--- /dev/null
>+++ b/frameworks/projects/Ace/src/main/resources/ace-manifest.xml
>@@ -0,0 +1,27 @@
>+<?xml version="1.0"?>
>+<!--
>+
>+ 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
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+
>+-->
>+
>+
>+<componentPackage>
>+
>+ <component id="Application"
>class="org.apache.royale.ace.Application"/>
>+ <component id="ACEEditor" class="org.apache.royale.ace.ACEEditor"/>
>+
>+</componentPackage>
>diff --git a/frameworks/projects/Ace/src/main/resources/defaults.css
>b/frameworks/projects/Ace/src/main/resources/defaults.css
>new file mode 100644
>index 0000000..dabf0dd
>--- /dev/null
>+++ b/frameworks/projects/Ace/src/main/resources/defaults.css
>@@ -0,0 +1,51 @@
>+/*
>+ *
>+ * 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
>+ *
>+ *
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+ *
>+ */
>+@namespace ace "library://ns.apache.org/royale/ace";
>+
>+/*@media -royale-swf
>+{
>+
>+jq|TextButton
>+{
>+ IBeadModel:
>ClassReference("org.apache.royale.html.beads.models.TextModel");
>+ IBeadView:
>ClassReference("org.apache.royale.html.beads.TextButtonView");
>+}
>+
>+
>+jq|ToggleTextButton
>+{
>+ IBeadModel:
>ClassReference("org.apache.royale.html.beads.models.ToggleButtonModel");
>+ IBeadView:
>ClassReference("org.apache.royale.html.beads.TextButtonView");
>+}
>+
>+
>+jq|CheckBox
>+{
>+ IBeadModel:
>ClassReference("org.apache.royale.html.beads.models.ToggleButtonModel");
>+ IBeadView:
>ClassReference("org.apache.royale.html.beads.CheckBoxView");
>+}
>+
>+jq|RadioButton
>+{
>+ IBeadModel:
>ClassReference("org.apache.royale.html.beads.models.ValueToggleButtonModel
>");
>+ IBeadView:
>ClassReference("org.apache.royale.html.beads.RadioButtonView");
>+}
>+
>+
>+}*/
>diff --git a/frameworks/projects/Ace/src/main/royale/JQueryClasses.as
>b/frameworks/projects/Ace/src/main/royale/JQueryClasses.as
>new file mode 100644
>index 0000000..8df1080
>--- /dev/null
>+++ b/frameworks/projects/Ace/src/main/royale/JQueryClasses.as
>@@ -0,0 +1,33 @@
>+/////////////////////////////////////////////////////////////////////////
>///////
>+//
>+// 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
>+//
>+//
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+//
>+/////////////////////////////////////////////////////////////////////////
>///////
>+package
>+{
>+
>+/**
>+ * @private
>+ * This class is used to link additional classes into rpc.swc
>+ * beyond those that are found by dependecy analysis starting
>+ * from the classes specified in manifest.xml.
>+ */
>+internal class JQueryClasses
>+{
>+}
>+
>+}
>+
>diff --git
>a/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/ACEEditor.
>as
>b/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/ACEEditor.
>as
>new file mode 100644
>index 0000000..42a2600
>--- /dev/null
>+++
>b/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/ACEEditor.
>as
>@@ -0,0 +1,45 @@
>+/////////////////////////////////////////////////////////////////////////
>///////
>+//
>+// 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
>+//
>+//
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+//
>+/////////////////////////////////////////////////////////////////////////
>///////
>+package org.apache.royale.ace
>+{
>+ import org.apache.royale.core.UIBase;
>+
>+ public class ACEEditor extends org.apache.royale.core.UIBase
>+ {
>+ private var editor:Editor;
>+
>+ override public function addedToParent():void
>+ {
>+ super.addedToParent();
>+ editor = ace.edit(id);
>+ }
>+
>+ private var _theme:String;
>+ public function get theme():String
>+ {
>+ return _theme;
>+ }
>+
>+ public function set theme(value:String):void
>+ {
>+ _theme = value;
>+ editor.setTheme(value);
>+ }
>+ }
>+}
>diff --git
>a/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/Applicatio
>n.as
>b/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/Applicatio
>n.as
>new file mode 100644
>index 0000000..4a7c6d3
>--- /dev/null
>+++
>b/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/Applicatio
>n.as
>@@ -0,0 +1,40 @@
>+/////////////////////////////////////////////////////////////////////////
>///////
>+//
>+// 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
>+//
>+//
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036&sdata=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D&rese
>rved=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.
>+//
>+/////////////////////////////////////////////////////////////////////////
>///////
>+package org.apache.royale.ace
>+{
>+ import org.apache.royale.core.Application;
>+ import org.apache.royale.core.IFlexInfo;
>+
>+
>+ public class Application extends org.apache.royale.core.Application
>implements IFlexInfo
>+ {
>+ /**
>+ * The Royale Compiler will inject html into the index.html file.
>Surround with
>+ * "inject_html" tag as follows:
>+ *
>+ * <inject_html>
>+ * <script
>src="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.
>githubusercontent.com%2Fajaxorg%2Face-builds%2Fmaster%2Fsrc-min-noconflict
>%2Face.js&data=02%7C01%7Caharui%40adobe.com%7Ce1410f2b23984cdf31d908d57626
>b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636544831018671036&sdata
>=QuBSAKkkCLecSuMJd01UIH7IfcBSzbrKZbtCNVBwSzA%3D&reserved=0"></script>
>+ * </inject_html>
>+ */
>+ public function Application()
>+ {
>+ super();
>+ }
>+ }
>+}
>
>--
>To stop receiving notification emails like this one, please contact
>yishayw@apache.org.