Zinc – Saving images
It was obvious that I had to write a few more lines about Zinc in the near future, but somehow this topic didn't leave me alone at all, and no, I'm not writing about Zinc because I like it, I'm writing this because I don't want that other people fall into the traps I fell while using it. Do I like Zinc? Yes & No, it's a very weird situation, it's useful, it would be even more useful if they would do their job right, but I already wrote about it here. So let's leave this discussion out of here.
So let's begin from the ground up, your goal is to resize and save the newly resized files back again into a jpeg. Sounds easy?
It should be but it isn't!!
First of all I have to tell you that I began my project with Zinc 3.0 which supports bytearrays, it was really cool to work with it, as I was able to use the JPEGEncoder class that anyway writes bytearrays.
Zinc – A love hate relationship
Zinc! Who doesn't know zinc? A long time ago, before the Adobe AIR runtime was available flash developers didn't had much choice when developing desktop applications, screensavers, either you created an .exe / .dmg file directly out of the Flash IDE or like I mentioned before you bought Zinc!
Let's be fair, Zinc isn't actually that bad, their API is huge and you can access a whole load of methods that you would never think about, the first time you use zinc and browse through the API you automatically try out the OpenCDTray method, something happens how cool is that?
But let's start from the beginning.
It was a nice sunny day in Zurich, and I got an assignment to create a screensaver with a shitload of functionality, (read images from a specific folder (user can't change the folder), resize the images accordingly, resave them again with the new size and settings. read some registry values from the Users computer, and so on.. so I thought, let's unpack Zinc and give it a try. yes it was the first time I ever used Zinc!
I ran into so many issues / problems / bugs / headaches / sleepless nights that I thought I need to share this with you guys.
1. Zinc 2.5 vs. Zinc 3.0
When you have the choice of using an "old" version against the new version, your guts tell you that maybe you shouldn't use the new version, stick with the old one which is in use for enough time to get a good resource to get information from.
So I began to develop with Zinc 2.5 after a few headaches and tons of coffee I finally managed to get my screensaver to work, yay. But let's have a look at the performance, 30% CPU, 40MB RAM.. well not that bad for so many operations and graphical changes. Apparently there were some issues with the performance and resources on the clients environment, so I decided to jump on the new train (zinc 3.0) and guess what. Zinc 3.0 uses 38% MORE resources then the previous version AND I'm still using the same player version and same settings. Hmm.. does Zinc 3.0 really have that many more base code? After a few coffee sessions comparing API's and looking into their code. NOPE, they only repacked their old code and gave us a few more methods to work with, damn does that really result in 65% CPU and 120MB RAM? sigh... Ok spend another few hours reverting everything back to Zinc 2.5. Nice...
deMonsterDebugger goes 2.0.3

If you guys haven't noticed it yet, deMonsterDebugger is now officially available in its new version,
one of the features that absolutely rocks is the FPS/Memory monitor deMonsters built in. One of those features I was waiting for before switching completely from Alcon to deMonsterDebugger.
If you guys haven't downloaded it yet, then just click on the banner on the right side or jump directly to www.demonsterdebugger.com
Thanks again for such a great app!
Flash at the Lake

If you are not twittering or living under a stone you couldn't miss that the SFUG is organizing a Flash Platform conference in Zurich at the Rote Fabrik in Zurich on the 26 + 27 of June called Flash at the Lake
Some speakers have already been announced Aral Balkan, Peter Elst, Mario Klingemann and James Ward did already confirm their appearance, there are going to be a few more announcements during the next few weeks and you guys shouldn't miss the conference.
More informations about Flash at the Lake can be found on their website www.flashatthelake.ch or www.fatl.ch as well you can follow it on twitter @FlashAtTheLake or on Facebook
Don't wait too long to get some tickets as the there are going to be some limitations.
See you there
Tiago
DeMonstersDebugger an update
almost 2 weeks passed by and I saved an insane amount of time debugging my applications with DemonsterDebugger, it's an amazing piece of work what these guys did and I'm looking forward to see more updates, as soon as I have a bit of time I will come up with a wishlist from my side, and will try to send it over to them.
What I liked most was as expected the live editing feature, you can just select a component which is completely off the stage and align it properly just with a few clicks and at the same time you can test your application by accessing functions that are not even made public.
Guys, you did a wonderful job! Thank you very much for this great app!


