Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

swf generated by ant works not well

$
0
0

i have a flex mobile aplication in flash builder4.6,which generates a swf .

using the swf,i got a apk by adt which run well.

 

to make apks automatically,i use ant to compile the project.

the build.xml was generated by the sourcemate plugin and i had very little modifications to it.

then i got a new swf without error,with which i generated a new apk.

its a pity that the apk didnot run well.

can some body help,iam stuck!

 

 

build.xml:

///////////////////////////////////

<?xml version="1.0" encoding="utf-8"?>

<!-- This build file provdes a close approximation of the build process

     and build settings inside Flash Builder, but it is not an exact copy. 

     Please customize this file as necessary. -->

<!-- Generated from project settings as of 13-3-26 下午7:23 -->

<project name="MyFlexTest" default="build" basedir="E:/Myfile/workspace/MyFlexTest">

 

    <property name="FLEX_HOME" value="C:/Program Files (x86)/Adobe/Adobe Flash Builder 4.6/sdks/4.6.0"/>

    <property name="SDK_VERSION" value="4.6.0.23201"/>

 

    <taskdef name="mxmlc" classname="flex.ant.MxmlcTask" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>

    <taskdef name="compc" classname="flex.ant.CompcTask" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>

    <taskdef name="html-wrapper" classname="flex.ant.HtmlWrapperTask" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>

    <taskdef name="asdoc" classname="flex.ant.AsDocTask" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>

 

    <property name="PROJECT_DIR" value="E:/Myfile/workspace/MyFlexTest"/>

    <property name="SOURCE_DIR" value="${PROJECT_DIR}/src"/>

    <property name="OUTPUT_DIR" value="E:/temp"/>

    <property name="LOCALE" value="en_US"/>

 

    <target name="build">

        <antcall target="compile"/>

    </target>

 

    <target name="clean">

        <delete includeemptydirs="true">

            <fileset dir="${OUTPUT_DIR}" includes="**/*"/>

        </delete>

    </target>

 

    <target name="compile">

        <mxmlc

            file="${SOURCE_DIR}/MyFlexTest.mxml"

            output="${OUTPUT_DIR}/MyFlexTest.swf"

            locale="${LOCALE}"

            static-rsls="true"

            accessible="true"

            actionscript-file-encoding="UTF-8"

            keep-generated-actionscript="true"

            incremental="true"

        >

            <load-config filename="${FLEX_HOME}/frameworks/air-config.xml"/>

 

            <source-path path-element="${SOURCE_DIR}"/>

 

            <library-path file="${FLEX_HOME}/frameworks/libs/authoringsupport.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/charts.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/flash-integration.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/framework.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/osmf.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/rpc.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/spark.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/textLayout.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/mobile/mobilecomponents.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/air/servicemonitor.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/locale/${LOCALE}" append="true"/>

            <library-path file="${PROJECT_DIR}/libs" append="true"/>

 

            <external-library-path file="${FLEX_HOME}/frameworks/libs/air/airglobal.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/authoringsupport.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/charts.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/flash-integration.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/framework.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/osmf.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/rpc.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/spark.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/textLayout.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/mobile/mobilecomponents.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/air/servicemonitor.swc" append="true"/>

 

            <library-path dir="${FLEX_HOME}/frameworks/locale/${LOCALE}" includes="*" append="true"/>

            <library-path dir="${PROJECT_DIR}/libs" includes="*" append="true"/>

 

        </mxmlc>

 

 

    </target>

 

    <target name="asdoc">

        <asdoc output="${OUTPUT_DIR}/asdoc" lenient="true" failonerror="false">

            <doc-sources path-element="${SOURCE_DIR}"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/authoringsupport.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/charts.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/flash-integration.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/framework.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/osmf.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/rpc.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/spark.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/textLayout.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/mobile/mobilecomponents.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/air/servicemonitor.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/locale/${LOCALE}" append="true"/>

            <library-path file="${PROJECT_DIR}/libs" append="true"/>

 

            <external-library-path file="${FLEX_HOME}/frameworks/libs/air/airglobal.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/authoringsupport.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/charts.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/flash-integration.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/framework.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/osmf.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/rpc.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/spark.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/textLayout.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/mobile/mobilecomponents.swc" append="true"/>

            <library-path file="${FLEX_HOME}/frameworks/libs/air/servicemonitor.swc" append="true"/>

 

            <library-path dir="${FLEX_HOME}/frameworks/locale/${LOCALE}" includes="*" append="true"/>

            <library-path dir="${PROJECT_DIR}/libs" includes="*" append="true"/>

        </asdoc>

    </target>

 

</project>


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>