Archive for ActionScript 3

3 ways to solve the “I want to call an event handler function directly” problem

Say you have an event handler that is called each time an event is triggered and you would like to call this function directly (so without waiting for an event to happen). See the following scenario of a ticking clock to make this more clear: -          TimerEvent that changes the rotation of the clock handlers. [...]

A custom formatted component called CurrencyInput

You know, the Flex SDK is a pretty nice collection of visual component for quickly creating a rich internet application. But in the past couple of years that I’ve developed in Flex, I came across the usual issues with a framework, namely: it does a lot; it does a lot good; but it is just [...]

Making your Flash Media Server life easier

While developing Flash media server applications I always find myself hitting the F1 button numerous times for a quick reference of the different onStatus Events (NetStream, netConnection,SharedObject). Ok, after a while one knows all out of the head. But a typo occurs more than often. Right, so I took some time today to make a [...]

Flex coding: best practises

Today I found a couple of interesting articles from Sean the Flex guy about the best practices when you want to create a Flex project. You can find those articles here: http://www.adobe.com/devnet/flex/articles/best_practices_pt1.html http://www.adobe.com/devnet/flex/articles/best_practices_pt2.html   The first one contains some guidelines on how to structure and organize your project, while the second one contains about 90 best practices [...]

Bitmap processing outside the displaylist

While preparing one of my classes (Learning Actioscript 3), I played around with the (great!) bitmapData class. Point of the experiment on the one hand was to see if I could draw a snapshot of a sprite (with several animations in it) that is not displayed on screen (not in the displaylist) and on the [...]

A decent Flex CAPTCHA component using only actionscript

I’ve been wondering for some time now why Adobe never includes a captcha component in their Flex SDK. They consider Flex to be an enterprise development tool, but security components are left out? There are a couple of custom flex captchas out there, but in my opinion, they are either far from secure or there [...]

Positioning a background image in a VBox using Flex 2

Yesterday I encountered an interesting problem in a project that I’m currently working on. I had a gradient background image that I needed to place into several VBox containers. So, naturally, I decided to create a custom component for this. But that’s where the problems began. As many of you probably know, the VBox container [...]