Category Archives: components

Cron editor component for HTML forms

I’ve taken my Flex cron editor and integrated it in a sample HTML form. Check out the sample here. We distinguish 3 steps in the setup of the form:

As soon as the Flex component is fully created, it sets JavaScript callbacks and it communicates its readiness to the HTML wrapper.
Then, the cron can be [...]

Also posted in scheduling, tools | 4 Comments

Simple multiplane 3d engine in ActionScript 3

For a simple 3D-a-like movement or interface, you don’t necessarily need a 3D engine. Consider using a multiplane engine in fake 3D for simple things like these for example:

On Kirupa.com, this technique was introduced years ago, with source code and all.
Anyway, I quickly put the code in AS3-classes to make it up-to-date. Download the sources [...]

Also posted in 3d | 9 Comments

How to merge lists of overlapping date ranges

Look at that title… Now that’s a problem that gave me quite some grief for too many hours: the algorithm to efficiently merge prioritized lists of overlapping date ranges.
First, I thought I had it in a minute, but then I saw it was wrong. After quite some fruitless tweaking of my initial solution, I started [...]

Also posted in scheduling, tips, tools | Leave a comment

Update on EventDelayer: added the number of skips

I’ve updated the EventDelayer & DelayedEvent classes. Now, the EventDelayer counts the number of times the original event handling was skipped. The advantage of this is that for instance in the case of a next button being clicked repeatedly, you can jump to the correct step after a series of clicks (and ignore all the [...]

Also posted in tips | Leave a comment

Delayed event handling for protection against mouse/keyboard bashing

Like me, you probably already needed to protect a website or application against users clicking the mouse / hitting the keyboard wildly like completely outrageous idiots. In fact, that’s what some people call “testing”…
Now seriously, suppose you have a next button in your application and on every click you perform an intensive task. If your [...]

Also posted in tips | Leave a comment

Cron4J to ActionScript 3 port for advanced scheduling in Flex applications

To schedule jobs, I’ve found nothing better than using a Cron string, especially when you want to schedule repeating tasks. A Cron allows you to do complex scheduling like launch every weekday at 14h00, except in July and August. Check out this sample with a cron editor and a scheduler test (right-click and view source). [...]

Also posted in scheduling, tips, tools | 9 Comments

Flex browser history and deep linking

Nowadays, there are several options to make your Flex website support the browser’s back (and forward) button and to enable deep linking, such as with SWFAddress
or Urlkit and in Flex Builder 3 you have the built-in BrowserManager. But sometimes these libraries may seem a bit complicated, require some learning or are simply not flexible [...]

Posted in components | 1 Comment