All posts tagged event


Create a Game – Jelly Smash Tutorial part 4: Finite State Machine to implement Game Logic

Today we will see how to use a Finite State Machine (the one that is integrated into ND2Dx) to implement our game logic. This will be the last tutorial of the Jelly Smash Tutorial series. Unlike previous tutorials, I won’t go into every details and explain every bit of code that makes up the game […]


Benchmark: Flash Events vs. Signals

You may be wondering why a new benchmark for this. Well, I have three reasons: all of the other benchmarks I could find on internet were outdated I always prefer to test things for myself as I always test things for myself, I took some time to write a little benchmark tool that will be […]

Events centralization – Centralized Event Management

What for ? Events centralization allows to listen for events of an object that we don’t have direct access to. Example We have a button in a MovieClip that is not directly connected to your main MovieClip or class where you want to keep all the events logic. There are many ways to get the […]

Love Condom, new website for condoms in Belgium !

Yeah, that’s right, Love Condom is a brand selling condoms in Belgium and God knows how much it is needed here with all those tourists coming to visit cathedrals, old towns, markets, women and … drink beers ! I let you see the home page right here. I already got some impressions from people here […]

Rotate a MovieClip/DisplayObject around a point

This is something I have been looking for for a couple of hours. When I finally found out how to do it the way I needed to do it, I stepped on a blog explaining that a function actually exists for that specific need (see This function is part of the fl package (comes […]

The importance of the clone() function/method when creating a custom Event class

I know, this is not a big thing but it can save a lot of “after-work” when you just know that it can be really useful and save you a lot of time. I say “after-work” because I understood its importance after I thought I had finished a Loaders management class. I had to rewrite […]

Events manager AS3 classes

Basic Events manager classes. Remove all events, group events, suspend and resume events… Features Keep track of all events added and removed with this manager. Add listener. Remove listener. Add a listener to one or more groups. Suspsend a listener and/or a group of listeners without removing them. Resume a listener and/or a group of […]

Stage accessibility, avoid errors when trying to access it

Be aware of the stage property of a DisplayObject instance (any class that can be added to a Display List in order to be shown on screen). It is only accessible when the instance is added to the Display list. I went into some troubles when trying to add an event listener on the stage […]