Hi, have found something. I think I am now able to create an swf to be
used with air. But how do I pack this swf now into an exe of an osx?

 

Lieven Cardoen, IndieGroup

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lieven Cardoen
Sent: dinsdag 23 oktober 2007 11:13
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [Ant Script Flex - Air]

 

Hi Guys, 

 

I have an Ant-Script (attached) that compiles an Flex2 project.

 

I would like to compile it now for Adobe Air. Is there a way to do this.
I have found on the internet ways to change the Flex Project to a Adobe
Air Project, but that's not what I want. I want to be able to compile my
project for Zinc and for Adobe Air. I'm aware that I'll maybe have to
change my Application tag to ApolloApplication tag, but in that case I
can create two Main Application Mxml's.

 

Thx, Lieven Cardoen, IndieGroup.

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Ant Task File IndieGroup - EVA
    Lieven Cardoen - IndieGroup
-->
<project name="IndieGroup-EVA-Shell" basedir=".">
    <taskdef resource="flexTasks.tasks" classpath="F:\IndieGroup\EVA\flexLibs\flexAntTasks\lib\flexTasks.jar" />
    <taskdef name="ftp" classname="org.apache.tools.ant.taskdefs.optional.net.FTP"/> 
    <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
    <property name="FLEX_HOME" value="C:\Program Files (x86)\Adobe\Flex Builder 2 Plug-in\Flex SDK 2"/>
	<property name="APOLLO_SDK" value="C:\Program Files (x86)\Adobe\Flex Builder 2 Plug-in\Apollo SDK"/>
	<property name="APP_ROOT" value=""/>
    <property name="DEPLOY_DIR" value="${basedir}\..\flexBin"/>
    <property name="PRANASWC" value="F:\IndieGroup\EVA\flexLibs\prana-framework-0.2\dist\"/>
    <property name="CAIRNGORMCUSTOMSWC" value="F:\IndieGroup\EVA\cairngormCustom\flexBin\"/>
    <property name="CAIRNGORMSWC" value="F:\IndieGroup\EVA\flexLibs\cairngorm2_2\bin\"/>
    <property name="EVAFRAMEWORKSWC" value="F:\IndieGroup\EVA\framework\flexBuild\"/>
    <property name="MDMSWC" value="C:\Program Files (x86)\MDM\MDM Zinc v2.5\swc\"/>
    <property name="UIMOVIECLIP" value="C:\Users\cardoenl\AppData\Local\Adobe\Flash CS3\en\Configuration\Component Source\ActionScript 3.0\Flex\"/>
    <property name="UIMOVIECLIPSWC" value="F:\IndieGroup\EVA\flexLibs\UIMovieClip\"/>
    <property name="ASSETSSWC" value="F:\IndieGroup\EVA\shell\flexSource\embeded_assets"/>
       
    <!-- Builds the Specularis Applications and runs it in IE -->
    <target name="Build Swf And Start Zinc">
        <mxmlc 
        	file="eva.mxml" 
        	output="${DEPLOY_DIR}/eva.swf"
    		keep-generated-actionscript="true"
    		locale="nl_BE"
    	 >
            <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
            <source-path path-element="${FLEX_HOME}/frameworks"/>
            <!--source-path path-element="${UIMOVIECLIP}"/-->
            <sp path-element="../locale/{locale}"/>
            
        	<!-- List of SWC files or directories that contain SWC files. -->
            <!--compiler.library-path dir="${ASSETSSWC}" append="true">
                <include name="assets.swc" />
            </compiler.library-path-->
            <compiler.library-path dir="${PRANASWC}" append="true">
                <include name="Prana.swc" />
            </compiler.library-path>
            <compiler.library-path dir="${CAIRNGORMCUSTOMSWC}" append="true">
                <include name="cairngormCustom.swc" />
            </compiler.library-path>
            <!--compiler.library-path dir="${CAIRNGORMSWC}" append="true">
                <include name="cairngorm.swc" />
            </compiler.library-path-->
            <compiler.library-path dir="${EVAFRAMEWORKSWC}" append="true">
                <include name="EvaFrameWork.swc" />
            </compiler.library-path>
            <compiler.library-path dir="${MDMSWC}" append="true">
                <include name="mdm.swc" />
            </compiler.library-path>
            

        </mxmlc> 
        <antcall target="zinc.start.exe"/>
    </target>  
	
	<target name="Build For Apollo">
	        <mxmlc 
	        	file="eva.mxml" 
	        	output="${DEPLOY_DIR}/eva.swf"
	    		keep-generated-actionscript="true"
	    		locale="nl_BE"
	    	 >
	            <load-config filename="${FLEX_HOME}/frameworks/apollo-config.xml"/>
	            <source-path path-element="${FLEX_HOME}/frameworks"/>
	            <!--source-path path-element="${UIMOVIECLIP}"/-->
	            <sp path-element="../locale/{locale}"/>
	            
	        	<!-- List of SWC files or directories that contain SWC files. -->
	            <!--compiler.library-path dir="${ASSETSSWC}" append="true">
	                <include name="assets.swc" />
	            </compiler.library-path-->
	            <compiler.library-path dir="${PRANASWC}" append="true">
	                <include name="Prana.swc" />
	            </compiler.library-path>
	            <compiler.library-path dir="${CAIRNGORMCUSTOMSWC}" append="true">
	                <include name="cairngormCustom.swc" />
	            </compiler.library-path>
	            <!--compiler.library-path dir="${CAIRNGORMSWC}" append="true">
	                <include name="cairngorm.swc" />
	            </compiler.library-path-->
	            <compiler.library-path dir="${EVAFRAMEWORKSWC}" append="true">
	                <include name="EvaFrameWork.swc" />
	            </compiler.library-path>
	            <compiler.library-path dir="${MDMSWC}" append="true">
	                <include name="mdm.swc" />
	            </compiler.library-path>
	        	<compiler.library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
	                <include name="automation.swc" />
	            </compiler.library-path>
	        	                        
	        	                  
	        	               
	        	           
	                  
	               
	           

	        </mxmlc> 
	        <antcall target="zinc.start.exe"/>
	    </target>  
    
    <!-- Runs Specularis Release in IE -->
    <target name="run In Internet Explorer (x86)">
        <exec executable="C:\Program Files (x86)\Internet Explorer\iexplore.exe" spawn="true">
            <arg value="${DEPLOY_DIR}/evaLoader.html"/>
        </exec>
    </target>
    
    <!-- Runs Specularis Release in FireFox -->
    <target name="run In FireFox (x86)">
        <exec executable="C:\Program Files (x86)\Mozilla Firefox\firefox.exe" spawn="true">
            <arg value="${DEPLOY_DIR}/evaLoader.html"/>
        </exec>
    </target>
    
    <target name="zinc.start.exe">
        <exec executable="${DEPLOY_DIR}/evaZincLoader.exe" dir="${DEPLOY_DIR}\"/>
    </target>
</project>

Reply via email to