You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/11/08 01:54:31 UTC
[royale-asjs] 02/02: Spark HelloWorld
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 88ac815e22413e5c7b72587120b84dc8b5fb22c2
Author: Alex Harui <ah...@apache.org>
AuthorDate: Wed Nov 7 17:48:27 2018 -0800
Spark HelloWorld
---
.../SparkHelloWorld/SparkHelloWorld.as3proj | 98 ++++++++++++++++++++++
examples/mxroyale/SparkHelloWorld/build.xml | 54 ++++++++++++
examples/mxroyale/SparkHelloWorld/pom.xml | 67 +++++++++++++++
.../src/main/royale/HelloWorld.mxml | 39 +++++++++
4 files changed, 258 insertions(+)
diff --git a/examples/mxroyale/SparkHelloWorld/SparkHelloWorld.as3proj b/examples/mxroyale/SparkHelloWorld/SparkHelloWorld.as3proj
new file mode 100644
index 0000000..95f75bd
--- /dev/null
+++ b/examples/mxroyale/SparkHelloWorld/SparkHelloWorld.as3proj
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<project>
+ <output>
+ <movie path="bin-debug/HelloWorld.swf"/>
+ <movie width="800"/>
+ <movie fps="60"/>
+ <movie height="600"/>
+ <movie platform="Flash Player"/>
+ <movie version="11"/>
+ <movie disabled="False"/>
+ <movie background="#FFFFFF"/>
+ <movie input=""/>
+ </output>
+ <!-- Other classes to be compiled into your SWF -->
+ <classpaths>
+ <class path="src/main/royale"/>
+ </classpaths>
+ <moonshineResourcePaths></moonshineResourcePaths>
+ <moonshineNativeExtensionPaths></moonshineNativeExtensionPaths>
+ <build>
+ <option optimize="False"/>
+ <option showActionScriptWarnings="True"/>
+ <option staticLinkRSL="False"/>
+ <option locale=""/>
+ <option showBindingWarnings="True"/>
+ <option compilerConstants=""/>
+ <option showDeprecationWarnings="True"/>
+ <option antBuildPath="build/build.xml"/>
+ <option additional="-theme=${royalelib}/themes/Basic/src/basic.css"/>
+ <option showUnusedTypeSelectorWarnings="True"/>
+ <option customSDK=""/>
+ <option strict="True"/>
+ <option accessible="False"/>
+ <option useNetwork="True"/>
+ <option allowSourcePathOverlap="False"/>
+ <option useResourceBundleMetadata="True"/>
+ <option benchmark="False"/>
+ <option warnings="True"/>
+ <option es="False"/>
+ <option verboseStackTraces="False"/>
+ <option loadConfig=""/>
+ <option linkReport=""/>
+ </build>
+ <includeLibraries></includeLibraries>
+ <libraryPaths></libraryPaths>
+ <externalLibraryPaths></externalLibraryPaths>
+ <rslPaths></rslPaths>
+ <intrinsics>
+ <element path="Library/AS3/frameworks/Flex4"/>
+ <element path="Library\AS3\frameworks\Flex4"/>
+ </intrinsics>
+ <library></library>
+ <compileTargets>
+ <compile path="src/main/royale/HelloWorld.mxml"/>
+ </compileTargets>
+ <hiddenPaths></hiddenPaths>
+ <preBuildCommand>null</preBuildCommand>
+ <postBuildCommand alwaysRun="False">null</postBuildCommand>
+ <trustSVNCertificate>False</trustSVNCertificate>
+ <options>
+ <option isExportedToExistingSource="False"/>
+ <option isPrimeFacesVisualEditor="False"/>
+ <option visualEditorExportPath=""/>
+ <option showHiddenPaths="False"/>
+ <option testMovie=""/>
+ <option testMovieCommand=""/>
+ <option defaultBuildTargets=""/>
+ </options>
+ <moonshineRunCustomization>
+ <option launchMethod="Simulator"/>
+ <option targetPlatform="2"/>
+ <option urlToLaunch=""/>
+ <option projectType="2"/>
+ <option deviceSimulator="null"/>
+ <deviceSimulator>null</deviceSimulator>
+ <certAndroid>null</certAndroid>
+ <certIos>null</certIos>
+ <certIosProvisioning>null</certIosProvisioning>
+ </moonshineRunCustomization>
+</project>
\ No newline at end of file
diff --git a/examples/mxroyale/SparkHelloWorld/build.xml b/examples/mxroyale/SparkHelloWorld/build.xml
new file mode 100644
index 0000000..7f030ee
--- /dev/null
+++ b/examples/mxroyale/SparkHelloWorld/build.xml
@@ -0,0 +1,54 @@
+<?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
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+
+
+<project name="sparkhelloworld" default="main" basedir=".">
+ <property name="ROYALE_HOME" location="../../.."/>
+ <property name="example" value="HelloWorld" />
+
+ <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/mxroyale/SparkHelloWorld/pom.xml b/examples/mxroyale/SparkHelloWorld/pom.xml
new file mode 100644
index 0000000..a560a4d
--- /dev/null
+++ b/examples/mxroyale/SparkHelloWorld/pom.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.royale.examples</groupId>
+ <artifactId>examples-mxroyale</artifactId>
+ <version>0.9.5-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>HelloWorld-SparkRoyale</artifactId>
+ <version>0.9.5-SNAPSHOT</version>
+ <packaging>swf</packaging>
+
+ <name>Apache Royale: Examples: SparkRoyale: HelloWorld</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>royale-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <mainClass>HelloWorld.mxml</mainClass>
+ <targets>JSRoyale,SWF</targets>
+ <debug>false</debug>
+ </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>BasicTheme</artifactId>
+ <version>0.9.5-SNAPSHOT</version>
+ <type>swc</type>
+ <scope>theme</scope>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/examples/mxroyale/SparkHelloWorld/src/main/royale/HelloWorld.mxml b/examples/mxroyale/SparkHelloWorld/src/main/royale/HelloWorld.mxml
new file mode 100644
index 0000000..4ea4e19
--- /dev/null
+++ b/examples/mxroyale/SparkHelloWorld/src/main/royale/HelloWorld.mxml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.apache.org/royale/spark">
+
+ <!--<s:Panel title="BorderContainer Component Example"
+ width="75%" height="75%"
+ horizontalCenter="0" verticalCenter="0"> -->
+
+ <s:BorderContainer
+ backgroundColor="red" cornerRadius="10"
+ borderStyle="inset" borderWeight="4"
+ left="10" right="10" top="10" bottom="10">
+ <s:layout>
+ <s:HorizontalLayout
+ paddingLeft="5" paddingRight="5"
+ paddingTop="5" paddingBottom="5"/>
+ </s:layout>
+ <s:Label text="Hello World"/>
+ </s:BorderContainer>
+ <!--</s:Panel>-->
+</s:Application>
\ No newline at end of file