Generator - AIR Application
Over the past year I've created a series of JSFL Window SWF's for Flash that helped streamline my productivity and make everyday chores a little easier. The downside to restricting myself to JSFL is that I needed to be within Flash to use those panels. Over the weekend I decided I wanted to convert those 3 panels into 1 AIR application. In short, the application is split up into 3 main sections, Class, Comment and Project.
The Class section generates a class based off a template structure. It auto-fills a few fields within my class:
The first field is the package. Based off where you save your class, it auto-detects the package and fills it in for you.
The next field is the date, setting a "@modified" parameter to the class's description of the date the class was created.
Third is the user's name, titled "@author Colin Duffy". This can be changed within the 4th panel of the Application, "Options".
Last is the class's name. It auto-fills the Class Name, the Constructor, and writes a toString() method that returns the name of the class. In the example above, because the class extends a MovieClip, the toString() method begins with an "override" statement.
The Comment section proofreads the comment to make "ASDoc" friendly. The "Block Comment" option is for comments between methods that go along my class template structure. It's mostly focused on created dividing lines in code to organize similar methods.
The Project section does 2 things. First it generates a series of folders to organize all your project's files. After that, it copies the specified classes into their correct folder packages. In the image above, there are only 3 class options, but because this application runs on XML, it is just as easy to add classes to their correct Class Pairing, or add more options.
The final section, Options, only has 2 options as of right now. The first gives the user control of changing their User Name for when they create classes. The second gives you the option of having the AIR App "always on top".
There's still a few items left I want to work on before releasing to the public. My JSFL command for Generating Projects copies over FLAs with parameters the user gets to set (See image above). As of right now you can't edit FLA files or run JSFL commands from AIR, though from my understanding there is the option of creating a BAT file that can handle that (still looking into it).
-
Gabe Watkins
6 months ago
-
Jens Fischer
6 months ago
Very nice.
Seems like the option Sprite is missing though (which at least for me usually a big percentage of all things on stage extend), they perform better than MovieClips that you should only use if your asset really has timeline animation / multiple keyframes. -
Jens Fischer
6 months ago
Awesome. Keep us posted.
To add comments please login OR signup and activate your account by clicking the activation link in the signup confirmation email.



Comments (4)