JSFL: Publish With Exclude Classes (CS3,CS4)
This handy JSFL brings “publish with exclude classes” support to CS3, and CS4. Originally written by Matthew Tretter. I cleaned up the script, and fixed problems with file search logic. As well as fixing support for finding classes defined by your global class path’s (flash preferences).
I also added “file” support originally added here by pickle.
There is a demo included in the download.
5 Comments so far
Leave a reply
This is a boon for serious Flash programmers. It good to know that this ‘work around’ applies to CS4. (I find it amazing that Abode didn’t work this into the native CS4 environment)
Many thank’s for your work.
:)
@simon
I totally agree. The flex mxmlc compiler actually has quite a few options for excluding classes and libraries, etc. But unfortunately it requires you to use a different workflow for compiling. But still, the option is there. Glad you like this workaround.
Hi this is a great bit of coding. Very useful.
I have looked at all the version of this JSFL file and non of them seem to work if you are not working on the C: drive.
if(searchDir.toLowerCase().indexOf(”c:”)<0)searchDir=”C:/”+searchDir;
I think it might be something to do with this line as I removed the C:/ and it worked in CS3
However this seems to break it in CS4.
Any way to replace C: with the actual drive path?
ie get ‘driveLetter:’ and append to searchDir
Cheers
@macguffin,
Yeah I’m aware of this. You could update it to use a bit of regex to find the dive letter, but unfortunately if the drive letter isn’t anywhere in the path you won’t be able to find the correct location, and from what I’ve experienced, it always requires an absolute path. That’s why I hardcoded c:, because that’s the default on win.
Just came across this, and am considering using it. I haven’t looked at the source, but I thought I would drop this idea: how would it be to test all drive letters and test if the file exists via FLfile.exists()?
ty for the work.