add a helloworld example
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/8a8fc6e0 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/8a8fc6e0 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/8a8fc6e0 Branch: refs/heads/spark Commit: 8a8fc6e06f546c8578a95e103a080a6cf9e61f42 Parents: f7afff2 Author: Alex Harui <[email protected]> Authored: Fri Jun 10 13:26:16 2016 -0700 Committer: Alex Harui <[email protected]> Committed: Fri Jun 10 13:26:16 2016 -0700 ---------------------------------------------------------------------- examples/flexjs/HelloWorld/build.xml | 44 +++++++++++++++++++++ examples/flexjs/HelloWorld/src/HelloWorld.mxml | 30 ++++++++++++++ 2 files changed, 74 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8a8fc6e0/examples/flexjs/HelloWorld/build.xml ---------------------------------------------------------------------- diff --git a/examples/flexjs/HelloWorld/build.xml b/examples/flexjs/HelloWorld/build.xml new file mode 100644 index 0000000..0e2d763 --- /dev/null +++ b/examples/flexjs/HelloWorld/build.xml @@ -0,0 +1,44 @@ +<?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="helloworld" default="main" basedir="."> + <property name="FLEXJS_HOME" location="../../.."/> + <property name="example" value="HelloWorld" /> + + <property file="${FLEXJS_HOME}/env.properties"/> + <property environment="env"/> + <property file="${FLEXJS_HOME}/build.properties"/> + <property name="FLEX_HOME" value="${FLEXJS_HOME}"/> + + <include file="${basedir}/../../build_example.xml" /> + + <target name="main" depends="clean,build_example.compile,build_example.compilejs" 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" /> + </target> + + + +</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8a8fc6e0/examples/flexjs/HelloWorld/src/HelloWorld.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/HelloWorld/src/HelloWorld.mxml b/examples/flexjs/HelloWorld/src/HelloWorld.mxml new file mode 100644 index 0000000..70d8d20 --- /dev/null +++ b/examples/flexjs/HelloWorld/src/HelloWorld.mxml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--> +<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:js="library://ns.apache.org/flexjs/basic" > + <js:valuesImpl> + <js:SimpleCSSValuesImpl /> + </js:valuesImpl> + <js:initialView> + <js:View> + <js:Label text="Hello World!" /> + </js:View> + </js:initialView> +</js:Application>
