首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >获取ant生成错误“无法为组件找到指定的基类'mx.core.Application‘

获取ant生成错误“无法为组件找到指定的基类'mx.core.Application‘
EN

Stack Overflow用户
提问于 2012-01-31 22:19:28
回答 1查看 2K关注 0票数 0

我正在尝试使用ant构建一个Flex 3.5应用程序,并且我一直在获取错误:无法为组件类'main‘找到指定的基类'mx.core.Application’。

我的build.xml文件看起来类似于:

代码语言:javascript
复制
<project name="ASC App" default="compile flex project">

<!-- load previously defined configuration properties file -->
<property file="build.properties" />

<!-- points to our flexTasks.jar we copied to the libs folder to distribute with the project -->
<taskdef resource="flexTasks.tasks" classpath="${basedir}/libs/flexTasks.jar"/> 

<!-- delete and create the DEPLOY dir again -->
<target name="init">
  <delete dir="${DEPLOY_DIR}" />
  <mkdir dir="${DEPLOY_DIR}" />       
</target>

<!-- Build and output the Main.swf-->
<target name="compile flex project" depends="init">
  <mxmlc file="src/main.mxml" output="${DEPLOY_DIR}/main.swf">
     <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
     <source-path path-element="${FLEX_HOME}/frameworks"/>
     <source-path path-element="${APP_COMMON}"/>
     <source-path path-element="${FLEX_COMMON}"/>
<library-path dir="${LIBS_DIR}/AlivePDF/" append="true"/>
<library-path dir="${LIBS_DIR}" append="true"/>
     <compiler.debug>false</compiler.debug>    
  </mxmlc>
</target>

我的build.properties:

代码语言:javascript
复制
# Application name
APP_NAME=AS App

# SWF file
APP=main

# Common library
APP_COMMON=../ASC_common
FLEX_COMMON=../common
ALIVE_PDF=../libraries/AlivePDF/SWC/AlivePDF

# change this to your Flex SDK directory path
FLEX_HOME=/SDKs/flex_sdk_3_4

# this points to your project's src directory
SRC_DIR =${basedir}/src

# points to the project's libs directory
LIBS_DIR =${basedir}/libs

# this is the folder we want to publish the swf to
DEPLOY_DIR = ${basedir}/DEPLOY

您的帮助将非常感谢!

EN

回答 1

Stack Overflow用户

发布于 2012-01-31 23:11:40

我正在尝试使用ant构建一个Flex 3.5应用程序

但是你有

FLEX_HOME=/SDKs/flex_sdk_3_4

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9087866

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档