View unanswered posts | View active topics



This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
AS3 Quick Build documentation 
Author Message
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
The Quick Build allows you to build the current MXML / AS file. This feature keeps the Flex compiler in memory for fastest compilation.

By default it will call the Flex compiler against the current file with no specific arguments and the SWF will be created at the root of your project.

:!: The Quick Build accepts a optional custom command line through the @mxmlc tag (in both AS3 & MXML comments!).
- the current file is automatically added to the command as the main class,
- all relative pathes are resolved from the project root directory,
- the default output SWF is generated in the project root directory,
- unlike the @mtasc tag, the global classpathes are not added automatically to the command line.


Last edited by Philippe on Mon Jan 01, 2007 4:38 pm, edited 9 times in total.



Sat Nov 04, 2006 7:01 pm
Profile WWW
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Post 
About the @mxmlc tag

Add it at the beginning of your source file to define additional compiler parameters.

In an AS3 class:
Code:
/**
* @mxmlc -default-size 400 300 -o bin/foo.swf
*/

In an MXML file:
Code:
<!-- @mxmlc -default-size 400 300 -o bin/foo.swf -->

Notes:
- the 'incremental' option tends to generate lots of CACHE files: only use this option if it really brings a great speed enhancement.


Mon Nov 20, 2006 5:26 pm
Profile WWW
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Post 
Updates

- the @mxmlc tag parser has been greatly improved - now you can build the most complex sample project (ie. PhotoViewer) from the Flex 2 SDK. If you just copy the value after SET OPTS= from the build.bat script you can use FlashDevelop to build the samples. For example, in PhotoViewer.mxml:
Code:
<!-- @mxmlc -use-network=false -library-path+=../../frameworks/locale/{locale} -source-path+=locale/{locale} -locale=en_US -->


- now you can add the custom -noplay option so that the built SWF will not be played after build.
Code:
/**
* Additional QuickBuild compiler options:
* @mxmlc -noplay
*/


Thu Nov 30, 2006 8:19 am
Profile WWW
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Update

Since beta7 you can add -debug to display trace calls for QuickBuild.

Code:
/**
* Additional QuickBuild compiler options:
* @mxmlc -debug
*/


Sat Nov 01, 2008 11:34 pm
Profile WWW
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.