Dec 12 2007

Rails 2.0 is finally out

Yes, you are right. It is finally finished after about a year in the making. This is a fantastic release that’s absolutely stuffed with great new features, loads of fixes, and an incredible amount of polish. So let’s digg into the new features and everybody: update your stuff to get even more funky!

Update details can be found here.


Dec 11 2007

Custom cursor “bug” in ActionScript3

If you ever want to use a custom mouse cursor in AS3 (for say dragging) with rollover/rollout events toggling it (so it will only change the cursor for certain movie-clips), bear this in mind:
When the user moves the mouse to the right with a certain (slowish) speed, the (original) hidden mouse cursor will go over the custom cursor, so it will fire the rollout event. Then when Flash updates the custom cursor position, the original mouse cursor won`t be over the custom one anymore, so it fires the rollout event, thus the cursor blinks quite noticeably. And no, the event.updateAfterEvent() won`t help either.

The workaround for this is to add the MouseEvent.MOUSE_MOVE listener to the stage and watch the event.target in the handler function and toggle the custom cursor using that, so you can specify that Flash shouldn`t do the toggling (= keep the custom cursor on) when the mouse goes over it.

So it isn`t necessarily a Flash Player bug, because this behavior makes sense (the mouse updates much more frequently than the .swf), but well annoying to figure out anyway.


Dec 6 2007

eclips3.media (ECLM) TextMate Theme

I usually check several development forums and I’ve found a thread on Rails Forum about development environments where people share a screenshot about their tools. I did this too, after several examples. Since my TextMate Theme got so many respects I decided to share it with the public.

One of its main benefits is that it separates the different data structures, functions, variables, comments, etc. So it is easier to look up your code.

Development Environment

So, if you like it, it can be found here.

Copyright: This theme was originally improved from the one what we can see in Ryan Bates’ Railscasts.


Dec 3 2007

Flash textfield height error using device fonts

I`ve ran into a rather annoying bug today, if you want to use either the _height or textHeight property of a textfield using device fonts and set to autoSize, it`ll add a phantom line, so will report the heights as if there was an extra line in the textfield.

The fix for it is quite random as well, you have to ADD a “\n” (=new line) at the end of your text and whooops, the phantom line is gone.