You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2014/06/27 16:02:55 UTC
git commit: [flex-asjs] [refs/heads/develop] - Added ImageTest to
FlexJS examples.
Repository: flex-asjs
Updated Branches:
refs/heads/develop efe2de0a6 -> 32d97f6b8
Added ImageTest to FlexJS examples.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/32d97f6b
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/32d97f6b
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/32d97f6b
Branch: refs/heads/develop
Commit: 32d97f6b88b926a34568458e9f1aa3649155534c
Parents: efe2de0
Author: Peter Ent <pe...@apache.org>
Authored: Fri Jun 27 10:02:45 2014 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Fri Jun 27 10:02:45 2014 -0400
----------------------------------------------------------------------
examples/ImageTest/build.xml | 43 ++++++++++++++++++++++
examples/ImageTest/src/ImageTest.mxml | 33 +++++++++++++++++
examples/ImageTest/src/MyInitialView.mxml | 45 ++++++++++++++++++++++++
examples/ImageTest/src/largegreenrect.png | Bin 0 -> 56681 bytes
examples/ImageTest/src/smallbluerect.jpg | Bin 0 -> 13500 bytes
examples/ImageTest/src/smallgreenrect.jpg | Bin 0 -> 13542 bytes
examples/ImageTest/src/smallorangerect.gif | Bin 0 -> 821 bytes
examples/build.xml | 2 ++
8 files changed, 123 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/32d97f6b/examples/ImageTest/build.xml
----------------------------------------------------------------------
diff --git a/examples/ImageTest/build.xml b/examples/ImageTest/build.xml
new file mode 100644
index 0000000..5bbd589
--- /dev/null
+++ b/examples/ImageTest/build.xml
@@ -0,0 +1,43 @@
+<?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="imagetest" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="ImageTest" />
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+ <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
+
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of FlexJSUI.swc">
+ </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/32d97f6b/examples/ImageTest/src/ImageTest.mxml
----------------------------------------------------------------------
diff --git a/examples/ImageTest/src/ImageTest.mxml b/examples/ImageTest/src/ImageTest.mxml
new file mode 100644
index 0000000..c77e690
--- /dev/null
+++ b/examples/ImageTest/src/ImageTest.mxml
@@ -0,0 +1,33 @@
+<?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.
+//
+////////////////////////////////////////////////////////////////////////////////
+-->
+<basic:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:local="*"
+ xmlns:models="models.*"
+ xmlns:basic="library://ns.apache.org/flexjs/basic"
+ >
+
+ <basic:valuesImpl>
+ <basic:SimpleCSSValuesImpl />
+ </basic:valuesImpl>
+ <basic:initialView>
+ <local:MyInitialView />
+ </basic:initialView>
+</basic:Application>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/32d97f6b/examples/ImageTest/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/ImageTest/src/MyInitialView.mxml b/examples/ImageTest/src/MyInitialView.mxml
new file mode 100644
index 0000000..b182a67
--- /dev/null
+++ b/examples/ImageTest/src/MyInitialView.mxml
@@ -0,0 +1,45 @@
+<?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.
+
+-->
+<basic:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:basic="library://ns.apache.org/flexjs/basic"
+ xmlns:local="*">
+ <fx:Script>
+ <![CDATA[
+
+ ]]>
+ </fx:Script>
+
+ <fx:Style>
+
+ </fx:Style>
+
+ <basic:Container>
+ <basic:beads>
+ <basic:NonVirtualVerticalLayout />
+ </basic:beads>
+
+ <basic:Image width="48" height="48" source="smallbluerect.jpg" />
+ <basic:Image width="183" height="178" source="largegreenrect.png" />
+ <basic:Image width="48" height="48" source="smallorangerect.gif" />
+ <basic:Image width="48" height="48" source="smallgreenrect.jpg" />
+
+ </basic:Container>
+
+</basic:ViewBase>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/32d97f6b/examples/ImageTest/src/largegreenrect.png
----------------------------------------------------------------------
diff --git a/examples/ImageTest/src/largegreenrect.png b/examples/ImageTest/src/largegreenrect.png
new file mode 100644
index 0000000..3f10b02
Binary files /dev/null and b/examples/ImageTest/src/largegreenrect.png differ
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/32d97f6b/examples/ImageTest/src/smallbluerect.jpg
----------------------------------------------------------------------
diff --git a/examples/ImageTest/src/smallbluerect.jpg b/examples/ImageTest/src/smallbluerect.jpg
new file mode 100644
index 0000000..80ed275
Binary files /dev/null and b/examples/ImageTest/src/smallbluerect.jpg differ
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/32d97f6b/examples/ImageTest/src/smallgreenrect.jpg
----------------------------------------------------------------------
diff --git a/examples/ImageTest/src/smallgreenrect.jpg b/examples/ImageTest/src/smallgreenrect.jpg
new file mode 100644
index 0000000..c5f9ce6
Binary files /dev/null and b/examples/ImageTest/src/smallgreenrect.jpg differ
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/32d97f6b/examples/ImageTest/src/smallorangerect.gif
----------------------------------------------------------------------
diff --git a/examples/ImageTest/src/smallorangerect.gif b/examples/ImageTest/src/smallorangerect.gif
new file mode 100644
index 0000000..603f810
Binary files /dev/null and b/examples/ImageTest/src/smallorangerect.gif differ
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/32d97f6b/examples/build.xml
----------------------------------------------------------------------
diff --git a/examples/build.xml b/examples/build.xml
index ace43da..20d3509 100644
--- a/examples/build.xml
+++ b/examples/build.xml
@@ -87,6 +87,7 @@
<ant dir="${basedir}/FlexJSTest_SVG"/>
<ant dir="${basedir}/FormatExample"/>
<ant dir="${basedir}/FormExample"/>
+ <ant dir="${basedir}/ImageTest"/>
<ant dir="${basedir}/LanguageTests"/>
<ant dir="${basedir}/ListsTest"/>
<ant dir="${basedir}/MapSearch"/>
@@ -121,6 +122,7 @@
<ant dir="${basedir}/FlexJSTest_SVG" target="clean"/>
<ant dir="${basedir}/FormatExample" target="clean"/>
<ant dir="${basedir}/FormExample" target="clean"/>
+ <ant dir="${basedir}/ImageTest" target="clean"/>
<ant dir="${basedir}/LanguageTests" target="clean"/>
<ant dir="${basedir}/ListsTest" target="clean"/>
<ant dir="${basedir}/MapSearch" target="clean"/>