Hi all, I've been asked many times how I can work 100% (Except
debugging et network monitoring) here is a small guide I sent on how
to deal with FAME + flex.
I'm not sure about license consideration, here is a pure technical
explanation. However I can't see flex-team been upset because we are
all getting a better flex-development environment ?!
For the MXML editing part, search flexcoders archives, I'm using the
free WebTools XML editor by eclipse foundation (no need to pay for
oxygenxml :-) ).
Here is how to get a valid AS editor, flex oriented :
->Download + install MTASC
->Download + install AS2Eclipse
->open ${flex.installation.dir}/lib/frameworks/mx.swc with winzip
->unzip *.asi files somewhere, like c:\as2\classes (in fact I
unzipped everything, then removed other files)
->run the following code, passing c:/as2/classes as argument :
package com.r0main;
import java.io.File;
public class OneShortBuilder {
private OneShortBuilder(String path) {
File directory = new File(path);
if(directory.isDirectory()) {
File[] files = directory.listFiles();
for(int i=0;i<files.length;i++) {
processOneFile(path, files[i]);
}
} else {
System.out.println("argument must be a valid directory");
}
}
private void processOneFile(String path, File fileToProcess) {
if(!fileToProcess.isDirectory()) {
String fileName = fileToProcess.getName();
System.out.println(fileName);
String[] parts = fileName.split("\\.");
String curPath = path;
int i=0;
for(;i<parts.length-2;i++) {
curPath += "/" + parts[i];
}
System.out.println(curPath);
File newPath = new File(curPath);
newPath.mkdirs();
File targetFile = new File(newPath + "/" + parts[i]
+ ".as");
fileToProcess.renameTo(targetFile);
}
}
/**
* @param args
*/
public static void main(String[] args) {
if(args.length != 1) {
System.err.println("please provide the path to
directory");
return;
} else {
OneShortBuilder oneShortBuilder = new OneShortBuilder
(args[0]);
}
}
}
->Now configure the MATSC paths in eclipse (preferences/ActionScript
2/MTASC/):
-->mtasc.exe location goes where you installed mtasc
-->more parameters to mtasc: -cp "c:/as2/classes" -mx
-->I checked executed mtasc compiler : on save, on open, on
activated + automatically on mtasc view on compile
-->I added flash MX core classes: preferences/ActionScript 2/Pathes:
c:\program files\Flash MX 2004\en\First Run\Classes
->Then on my flex project's properties, ActionScript2 Project , my
path is the same as flex's default one:
-->WEB-INF/flex/user_classes
-->.
Hope this helps, r0main
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/