Skip to content

Commit b2229ff

Browse files
committed
Convert Samples to FXG.
git-svn-id: https://svn.apache.org/repos/asf/incubator/flex/trunk@1351936 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2d6e657 commit b2229ff

File tree

460 files changed

+24877
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

460 files changed

+24877
-82
lines changed

build.xml

+11-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@
390390
<ant dir="${basedir}/samples/themes/arcade" target="main" />
391391
<ant dir="${basedir}/samples/themes/cobalt" target="main" />
392392
<ant dir="${basedir}/samples/themes/graphite" target="main" />
393-
<ant dir="${basedir}/samples/themes/zen" target="main" />
393+
<!-- zen theme is missing some assets -->
394+
<!--<ant dir="${basedir}/samples/themes/zen" target="main" /> -->
394395
</target>
395396

396397
<target name="javadocs" unless="no.doc-packages"
@@ -508,6 +509,14 @@
508509
</fileset>
509510
</copy>
510511

512+
<!-- samples -->
513+
<copy todir="${basedir}/temp/samples">
514+
<fileset dir="${basedir}/samples" >
515+
<exclude name="**/*.swc"/>
516+
<exclude name="**/*.swf"/>
517+
</fileset>
518+
</copy>
519+
511520
<!-- templates -->
512521
<copy todir="${basedir}/temp/templates">
513522
<fileset dir="${basedir}/templates" >
@@ -555,6 +564,7 @@
555564
<exclude name="**/*.swc"/>
556565
<exclude name="**/*.pbj"/>
557566
<exclude name="**/*.swf"/>
567+
<exclude name="**/*.mxp"/>
558568
<!--exclude name="test*/**"/-->
559569
<exclude name="javascript/**"/>
560570
<exclude name="projects/air/**"/>

frameworks/javascript/build.xml

+1-74
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,14 @@
2222
<property name="FLEX_HOME" value="../.."/>
2323
<property file="${FLEX_HOME}/build.properties"/>
2424

25-
<target name="main" depends="clean,samples,srcview" description="Clean build of FABridge"/>
25+
<target name="main" depends="clean,samples" description="Clean build of FABridge"/>
2626

2727
<target name="clean" description="cleans all generated and staged files">
28-
<delete>
29-
<fileset dir="FABridge/samples/srcview" includes="SourceTree.html,swfobject.js,fabridge.zip"/>
30-
<fileset dir="FABridge/samples/srcview/source">
31-
<include name="app.swf"/>
32-
<include name="EmptySwf.swf"/>
33-
<include name="FABridgeSample.html"/>
34-
<include name="FABridgeSample.js"/>
35-
<include name="SimpleSample.html"/>
36-
</fileset>
37-
</delete>
3828
<delete includeemptydirs="true" failonerror="false">
3929
<fileset dir="FABridge/samples">
4030
<include name="**/*.swf"/>
41-
<exclude name="srcview/SourceTree.swf"/>
4231
</fileset>
4332
<fileset dir="FABridge/samples/fabridge"/>
44-
<fileset dir="FABridge/samples/srcview/source/fabridge/javascript"/>
45-
<fileset dir="FABridge/samples/srcview/source/fabridge/swfobject"/>
4633
</delete>
4734
</target>
4835

@@ -72,64 +59,4 @@
7259
<compile-sample file="${basedir}/FABridge/samples/app.mxml"/>
7360
</target>
7461

75-
<target name="srcview" description="build srcview app">
76-
<copy file="../../templates/swfobject/swfobject.js" todir="FABridge/samples/srcview" />
77-
78-
<!-- generate SourceTree.html using the standard html-wrapper template -->
79-
<copy file="../../templates/swfobject/index.template.html" tofile="FABridge/samples/srcview/SourceTree.html" />
80-
<replace file="FABridge/samples/srcview/SourceTree.html">
81-
<replacefilter
82-
token="$${expressInstallSwf}"
83-
value="playerProductInstall.swf"/>
84-
<replacefilter
85-
token="$${useBrowserHistory}"
86-
value=""/>
87-
<replacefilter
88-
token="$${version_major}"
89-
value="10"/>
90-
<replacefilter
91-
token="$${version_minor}"
92-
value="0"/>
93-
<replacefilter
94-
token="$${version_revision}"
95-
value="0"/>
96-
<replacefilter
97-
token="$${title}"
98-
value="SourceTree Application"/>
99-
<replacefilter
100-
token="$${bgcolor}"
101-
value="#ffffff"/>
102-
<replacefilter
103-
token="$${width}"
104-
value="100%"/>
105-
<replacefilter
106-
token="$${height}"
107-
value="100%"/>
108-
<replacefilter
109-
token="$${swf}"
110-
value="SourceTree"/>
111-
<replacefilter
112-
token="$${application}"
113-
value="SourceTree"/>
114-
</replace>
115-
116-
<!-- stage the source area so the zipfile used by the srcview app can be build -->
117-
<mkdir dir="FABridge/samples/srcview/source/fabridge/swfobject"/>
118-
<mkdir dir="FABridge/samples/srcview/source/fabridge/javascript"/>
119-
120-
<copy file="../../templates/swfobject/swfobject.js" todir="FABridge/samples/srcview/source/fabridge/swfobject" />
121-
122-
<copy file="FABridge/src/bridge/FABridge.js" todir="FABridge/samples/srcview/source/fabridge/javascript" />
123-
<copy todir="FABridge/samples/srcview/source">
124-
<fileset dir="FABridge/samples">
125-
<include name="FABridgeSample.html"/>
126-
<include name="FABridgeSample.js"/>
127-
<include name="SimpleSample.html"/>
128-
<include name="app.swf"/>
129-
<include name="EmptySwf.swf"/>
130-
</fileset>
131-
</copy>
132-
<zip destfile="FABridge/samples/srcview/fabridge.zip" basedir="FABridge/samples/srcview/source"/>
133-
</target>
134-
13562
</project>

frameworks/projects/flash-integration/build.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@
103103
<include name="bundles/*/empty.properties"/>
104104
<exclude name="bundles/en_US/empty.properties"/>
105105
</fileset>
106-
<fileset dir="${basedir}/libs" />
106+
<fileset dir="${FLEX_HOME}/frameworks/libs">
107+
<include name="flash-integration.swc"/>
108+
<include name="flash-integration.swc.incr"/>
109+
</fileset>
107110
</delete>
108111
<delete failonerror="false">
109112
<fileset dir="${FLEX_HOME}/frameworks/flash-integration">

samples/themes/arcade/build.xml

+23-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
<property name="FLEX_HOME" location="${basedir}/../../.."/>
2525

26+
<property file="${FLEX_HOME}/env.properties"/>
27+
<property environment="env"/>
28+
2629
<property name="THEME_NAME" value="arcade" />
2730

2831
<property file="${FLEX_HOME}/build.properties"/>
@@ -38,6 +41,9 @@
3841
<include name="${THEME_NAME}.swc"/>
3942
<include name="${THEME_NAME}.swc.incr"/>
4043
</fileset>
44+
<fileset dir="${basedir}/src/assets">
45+
<include name="flex_skins.swf"/>
46+
</fileset>
4147
</delete>
4248
</target>
4349

@@ -51,6 +57,20 @@
5157
<pathelement path="${FLEX_HOME}/lib/flexTasks.jar"/>
5258
</classpath>
5359
</taskdef>
60+
<!-- Compile flex_skins.swf from fxg files -->
61+
<mxmlc fork="true"
62+
file="${basedir}/src/assets/flex_skins.as"
63+
output="${basedir}/src/assets/flex_skins.swf">
64+
<!-- If you change this, update ${local.playerglobal.version} above. -->
65+
<target-player>10</target-player>
66+
<jvmarg line="${compc.jvm.args}"/>
67+
<source-path path-element="${basedir}/src/assets"/>
68+
<library-path/>
69+
<external-library-path dir="${env.PLAYERGLOBAL_HOME}">
70+
<include name="${playerglobal.version}/playerglobal.swc"/>
71+
</external-library-path>
72+
<locale/>
73+
</mxmlc>
5474
<!--
5575
This project builds a theme SWC containing skin classes.
5676
It has no MXML tags and therefore no manifest.
@@ -69,13 +89,15 @@
6989
<source-path path-element="${basedir}/src"/>
7090
<library-path />
7191
<external-library-path dir="${FLEX_HOME}/frameworks/libs">
72-
<include name="player/${local.playerglobal.version}/playerglobal.swc"/>
7392
<include name="framework.swc"/>
7493
<include name="spark.swc"/>
7594
<include name="textLayout.swc"/>
7695
<include name="osmf.swc"/>
7796
<include name="mx/mx.swc"/>
7897
</external-library-path>
98+
<external-library-path dir="${env.PLAYERGLOBAL_HOME}">
99+
<include name="${playerglobal.version}/playerglobal.swc"/>
100+
</external-library-path>
79101
<include-file name="defaults.css" path="${basedir}/src/defaults.css"/>
80102
<include-file name="assets/flex_skins.swf" path="${basedir}/src/assets/flex_skins.swf"/>
81103
<include-file name="preview.jpg" path="${basedir}/src/preview.jpg"/>

samples/themes/arcade/src/ArcadeClasses.as

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ internal class ArcadeClasses
8787
import arcade.skins.VSliderSkin; VSliderSkin;
8888
import arcade.skins.VSliderThumbSkin; VSliderThumbSkin;
8989
import arcade.skins.VSliderTrackSkin; VSliderTrackSkin;
90-
import arcade.skins.VideoPlayerSkin; VideoPlayerSkin;
90+
//don't have graphics for VideoPlayerSkin
91+
//import arcade.skins.VideoPlayerSkin; VideoPlayerSkin;
9192

9293
}
9394

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one or more
5+
contributor license agreements. See the NOTICE file distributed with
6+
this work for additional information regarding copyright ownership.
7+
The ASF licenses this file to You under the Apache License, Version 2.0
8+
(the "License"); you may not use this file except in compliance with
9+
the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
-->
20+
<Graphic flm:originalName="AccordionHeader/AccordionHeader_disabledSkin" version="2.0" afx:className="AccordionHeader_disabledSkin" afx:baseClassName="flash.display.Sprite" xmlns:afx="http://ns.apache.org/flex/2012" xmlns:flm="http://ns.adobe.com/flame/2008" xmlns="http://ns.adobe.com/fxg/2008">
21+
<Group scaleGridLeft="1" scaleGridRight="151" scaleGridTop="1" scaleGridBottom="21">
22+
<Path data="M152 0 152 22 0 22 0 0 152 0M151 21 151 1 1 1 1 21 151 21">
23+
<fill>
24+
<SolidColor alpha="0.25098041"/>
25+
</fill>
26+
</Path>
27+
<Path data="M151 21 1 21 1 1 151 1 151 21">
28+
<fill>
29+
<LinearGradient x="63.5" y="22.6125" scaleX="22.725" rotation="270">
30+
<GradientEntry ratio="0" color="#414A58" alpha="0.25098039"/>
31+
<GradientEntry ratio="0.55686275" color="#373B48" alpha="0.25098039"/>
32+
<GradientEntry ratio="0.58431373" color="#555A67" alpha="0.25098039"/>
33+
<GradientEntry ratio="1" color="#454A55" alpha="0.2627451"/>
34+
</LinearGradient>
35+
</fill>
36+
</Path>
37+
</Group>
38+
</Graphic>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one or more
5+
contributor license agreements. See the NOTICE file distributed with
6+
this work for additional information regarding copyright ownership.
7+
The ASF licenses this file to You under the Apache License, Version 2.0
8+
(the "License"); you may not use this file except in compliance with
9+
the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
-->
20+
<Graphic flm:originalName="AccordionHeader/AccordionHeader_downSkin" version="2.0" afx:className="AccordionHeader_downSkin" afx:baseClassName="flash.display.Sprite" xmlns:afx="http://ns.apache.org/flex/2012" xmlns:flm="http://ns.adobe.com/flame/2008" xmlns="http://ns.adobe.com/fxg/2008">
21+
<Group scaleGridLeft="1" scaleGridRight="151" scaleGridTop="1" scaleGridBottom="21">
22+
<Path data="M151 21 151 1 1 1 1 21 151 21M152 0 152 22 0 22 0 0 152 0">
23+
<fill>
24+
<SolidColor color="#13B7FD"/>
25+
</fill>
26+
</Path>
27+
<Path data="M151 21 1 21 1 1 151 1 151 21">
28+
<fill>
29+
<LinearGradient x="63.5" y="22.6125" scaleX="22.725" rotation="270">
30+
<GradientEntry ratio="0" color="#414A58"/>
31+
<GradientEntry ratio="0.55686275" color="#373B48"/>
32+
<GradientEntry ratio="0.58431373" color="#555A67"/>
33+
<GradientEntry ratio="1" color="#454A55"/>
34+
</LinearGradient>
35+
</fill>
36+
</Path>
37+
</Group>
38+
</Graphic>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one or more
5+
contributor license agreements. See the NOTICE file distributed with
6+
this work for additional information regarding copyright ownership.
7+
The ASF licenses this file to You under the Apache License, Version 2.0
8+
(the "License"); you may not use this file except in compliance with
9+
the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
-->
20+
<Graphic flm:originalName="AccordionHeader/AccordionHeader_overSkin" version="2.0" afx:className="AccordionHeader_overSkin" afx:baseClassName="flash.display.Sprite" xmlns:afx="http://ns.apache.org/flex/2012" xmlns:flm="http://ns.adobe.com/flame/2008" xmlns="http://ns.adobe.com/fxg/2008">
21+
<Group scaleGridLeft="1" scaleGridRight="151" scaleGridTop="1" scaleGridBottom="21">
22+
<Path data="M151 21 151 1 1 1 1 21 151 21M152 0 152 22 0 22 0 0 152 0">
23+
<fill>
24+
<SolidColor color="#0295D2"/>
25+
</fill>
26+
</Path>
27+
<Path data="M151 21 1 21 1 1 151 1 151 21">
28+
<fill>
29+
<LinearGradient x="63.5" y="22.6125" scaleX="22.725" rotation="270">
30+
<GradientEntry ratio="0" color="#414A58"/>
31+
<GradientEntry ratio="0.55686275" color="#373B48"/>
32+
<GradientEntry ratio="0.58431373" color="#555A67"/>
33+
<GradientEntry ratio="1" color="#454A55"/>
34+
</LinearGradient>
35+
</fill>
36+
</Path>
37+
</Group>
38+
</Graphic>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one or more
5+
contributor license agreements. See the NOTICE file distributed with
6+
this work for additional information regarding copyright ownership.
7+
The ASF licenses this file to You under the Apache License, Version 2.0
8+
(the "License"); you may not use this file except in compliance with
9+
the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
-->
20+
<Graphic flm:originalName="AccordionHeader/AccordionHeader_selectedDownSkin" version="2.0" afx:className="AccordionHeader_selectedDownSkin" afx:baseClassName="flash.display.Sprite" xmlns:afx="http://ns.apache.org/flex/2012" xmlns:flm="http://ns.adobe.com/flame/2008" xmlns="http://ns.adobe.com/fxg/2008">
21+
<Group scaleGridLeft="1" scaleGridRight="151" scaleGridTop="1" scaleGridBottom="21">
22+
<Path data="M152 0 152 22 0 22 0 0 152 0M151 21 151 1 1 1 1 21 151 21">
23+
<fill>
24+
<SolidColor color="#13B7FD"/>
25+
</fill>
26+
</Path>
27+
<Path data="M151 21 1 21 1 1 151 1 151 21">
28+
<fill>
29+
<LinearGradient x="63.5" y="22.6125" scaleX="22.725" rotation="270">
30+
<GradientEntry ratio="0" color="#282828"/>
31+
<GradientEntry ratio="0.55686275" color="#2F2F2F"/>
32+
<GradientEntry ratio="0.58431373" color="#5F5F5F"/>
33+
<GradientEntry ratio="1" color="#4B4B4B"/>
34+
</LinearGradient>
35+
</fill>
36+
</Path>
37+
</Group>
38+
</Graphic>

0 commit comments

Comments
 (0)