Technology: Flash, Greensock Tweening, Timeline Animation, Blitting, Particle Engine
This was a promotion run by TipTop for Memphis Meltdown ice creams. Customers were pointed to a microsite and they could enter with their promo code found on scratch cards given out with any purchase. The customer would then register for the promotion and use the random prizer machine to go in the draw to win their prize. The goal was to have a little fun with the giveaway and not just be the standard sort of prizes.
Role: I was tasked with producing the random prizer machine animation using Flash. The base machine had at least 30 layers all with movieclips inside them and had a base image of 2000x1300px. This quickly hit performance when zooming, panning, animating and generating the smoke particles. There were also 48 flags and 48 prize icons to load in when needed.
To achieve a solid framerate of 30fps I used a blitting technique found in the Greensock engine. This allowed for a combination of timeline and actionscript animation to happen and it only needed to display a set amount of pixels. This, combined with removing any out of frame display objects achieved a great framerate which would not be possible otherwise. The smoke was generated using the Flint particle engine.