ActionScript 3

Quicktip #6: fixing the cut off character on embedded-font-textfields

Posted by Bart Claessens on January 07, 2010
ActionScript 3, Flash, Flex, QuickTips / 1 Comment

As we all know, Flash has these crazy bugs nobody ever understands. One of those is the fact that the last character of a dynamic textfield (which has been set to “AutoSize”) gets cut off when you’re using an embedded font. Up till now I still don’t understand what kind of situation leads to this exceptional behavior. The only thing I can say is that Flash Player fails to determine the correct text length which screws up the textfield width to be shorter than it has to be.

Example:

Blurred/Cut Off Characters

Blurred/Cut Off Characters


Continue reading…

  • Share/Bookmark

Tags: , , ,

Quicktip #5: int is faster than uint

Posted by Bart Claessens on June 15, 2009
ActionScript 3, Flash, Flex, QuickTips / No Comments

The past few weeks I’ve been programming a scheduling component in Flash which has to be extremely performant. Every small adaption in my code that could help with limiting the processing needs is a good adaption. Today I stumbled upon a post of Grant Skinner in which he explains that using a uint is slower than a normal int. The uint’s can get five times slower than using a normal int.

Continue reading…

  • Share/Bookmark

Tags: , , , , ,

Time Tracker: easy task tracking

Posted by Bart Claessens on May 01, 2009
ActionScript 3, Adobe, Air, Project Management, Tools / No Comments

Today I made a small Adobe Air application to track time on different kind of tasks while developing.

Time tracker can come in handy when you want to know the exact time you were working on a specific task. I felt in need of application like this to compare my project estimates with the real time I spent on that particular project. As you know sometimes a developer has to go to the bathroom, take a small nap or refill his coke coffee level. Time tracker allows you to pause development time and resume it when you are back and ready to rock your keyboards buttons off!

Continue reading…

  • Share/Bookmark

Tags: , , , , , , , ,

Quicktip #4: Casting and the ‘as’-keyword

Posted by Bart Claessens on February 15, 2009
ActionScript 3, Flash, Flex, QuickTips / 3 Comments

Some of you will probably know the ‘as’-keyword. If not, a short explanation:

The ‘as’-keyword is used to cast an object to another one. (Well it’s not exactly ‘casting’, if someone feels like explaining the difference between casting with the ‘as’-keyword or by using the class constructor, please go ahead in the comment below!).

To make it more concrete, here is an example: Continue reading…

  • Share/Bookmark

Tags: , ,

Some ActionScript optimization tricks and good practises

Posted by Bart Claessens on September 02, 2008
ActionScript 3, Flash, Flex / No Comments

The last few months I have been busy integrating Flash swf files into bigger (mostly Flex) projects. Because Flex websites might hog the memory due to large amounts of graphical elements and sometimes enormous huge amount of dynamic content, I had to keep an eye out for performance drops.

There have been a lot of optimization tricks for ActionScript 3, mine listed here will probably already be somewhere on one or another guru’s blog. But I’d like to list them again because I think there is a need to educate beginning (and sometimes advanced) ActionScript developers about the different performance capabilities. Please mind that this is NOT a complete list in any way. These optimizations are the ones I had to use the most lately.

Continue reading…

  • Share/Bookmark

Tags: , , , , , ,