I am a hard user of Fireworks. My mockups and final interfaces are done there. I simply love it. Having coding for Corona a lot these days, I decided to create a Fireworks extension to Corona.
Basically what it does is to read all layers from the Fireworks file, getting data like positioning, sizes, fonts used, etc, generating automatically a main.lua file, helping me to start new code. Some people told me in the Corona forum that it may not be necessary but my tests show a really gain of time using the extension.
Here a practical example, using the final interface of A Temple A Day, my first app published:
The final interface above was done with the following list of layers from Fireworks:
With just a 2 clicks: Command->Corona Exporter, check the results below. 102 lines of code created in less than 5 seconds. Pretty fast interesting, no?
I submitted it to Adobe Extensions. In a few days it will be available publicly. Meanwhile, if you want to test it right now, download it from here.
Current version feature list:
– Script all visible layers (names, sizes, positioning, font names, etc) to a main.lua file, available in the same directory of your original png file;
– Groups layers are scripted as images;
– Button script can be done just writing ‘but’ or ‘button’ in the button’s layer;
– Background can be scripted just writing ‘back’ or ‘background’ in the background layer;
– Rectangles are scripted using Corona newRect or newRoundedRect function;
I have no words to thank Aaron Beall, Fireworks guru, for very important tips. Really appreciate his support.
See you all soon!