• Posts Tagged ‘flex’

    Implementing Singleton in ActionScript 3.0

    by  • December 16, 2011 • Tutorials

    Singleton is one of the simplest and very useful design pattern we run across very often. In object-oriented programming , a singleton class is a class that can have only one object (an instance of the class) at a time. ActionScript 3.0 doesn’t allow private constructor functions, so you can’t directly create a Singleton...

    Read more →

    Understanding how Timer works in actionscript 3.0

    by  • November 13, 2011 • Titbits

    Before getting into how timer works, lets take a look on why do we need timers. In developing games sometimes you have to carry out  some tasks periodically e.g. You want to display a timer running for a player in a turn based game. Every 15 minutes you want to update hunger level of...

    Read more →