My favorites
▼
|
Sign in
fdtkit
A multi-platform toolkit focused on quickly and easily building a rich Eclipse/FDT environment
Project Home
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
bin
/
compile.jsfl
r323
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* compile.jsfl - JSFL Compiler - saves the currently open/selected FLA in the Flash IDE,
* clears the ASO cache (to prevent class caching issues) and executes a "Test Movie" preview.
*
* The command may be combined with Ant to automate FLA compilation when using Eclipse for Actionscript
* development or as a standalone solution. To implement in Ant simply add a task to your build.xml:
*
* <target name="compile-fla" description="compile current opened fla in src dir with Flash IDE (clear's ASO cache and saves FLA)">
* <echo message="|*|*|*| aso class cache clear | source save | compilation begins |*|*|*|"/>
* <exec executable="open"><arg line="path/to/compile.jsfl"/></exec>
* </target>
*
* You may add the tradition flash "Test Movie" key-binding by making it your default task:
* <project name="Your Project" basedir="." default="compile-fla">
*
* Then map your key (Control+Enter) in Eclipse -> Preferences -> General -> Keys ->"Run Ant Build"
* To allow Flash compilation directly from Eclipse.
*
* @version 1.1.0
* @author jason m horwitz | Sekati LLC | sekati.com
* @see http://fdtkit.googlecode.com/
* @license http://www.opensource.org/licenses/mit-license.php
*/
function clearASOCache( path ) {
if (!FLfile.exists( path )) {
fl.trace( path + "does not exist" );
return;
}
FLfile.remove( path );
}
clearASOCache ( fl.configURI + "Classes/aso" );
fl.outputPanel.clear( );
fl.getDocumentDOM( ).save( );
fl.getDocumentDOM( ).testMovie( );
Show details
Hide details
Change log
r290
by sekati on Mar 7, 2008
Diff
[No log message]
Go to:
/trunk/LICENSE.txt
/trunk/README.txt
/trunk/bin/compile.jsfl
...k/bin/scripts/SafeTestMovie.jsfl
/trunk/build/fdtkit.properties
/trunk/build/project.properties
/trunk/docs
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1497 bytes, 34 lines
View raw file
Powered by
Google Project Hosting