Free Flash Games

November 13th, 2008 by Slav

I’ve decided to share a bunch of flash games I build for various clients over the past few years. Most of these aren’t online anymore, and I thought it wold be a shame if they all went to waste : ) Read the rest of this entry »

Posted in AS2, AS3, flash, Games, particles, Personal | 2 Comments »

MC Events2 Decorator

July 24th, 2008 by Slav

Flash (in AS2) has one unpleasant habit. Interactive handlers (i.e “onRollover”, “onRollOut” , “onRelease” etc..) are being canceled as soon as you place a movie clip on the top of it with at least one interactive mouse handler defined.

Typical situation is a rollover pop up that needs to have some buttons on it. As soon as you rollOver those buttons, onRollOut event is triggered on the pop up, even though you still physically over it with your mouse.

There are of course different workarounds for this, but generally it’s a pain to code around this unfortunate behaviour.

AS3 doesn’t have this problem fortunately, but for the projects that still needs to be made in AS2 for whatever reason I created a MCEvents2Decorator class. Read the rest of this entry »

Posted in AS2, flash | 3 Comments »

3.7kB Lightweight,OOP & re-skin friendly FLV player.

March 13th, 2008 by Slav

With flv videos becoming essentially THE video format for the web, there are many flv players, components to choose from so why bother with this one ?

It’s not your typical feature rich component, all it does is plays the flv file, you can pause/resume, mute on/off , shows you playback and loading progress and you can seek by dragging the seek button. Which I found is 95% of functionality you need anyway.

This player has originally been written for flash banners, I called it VideoPlayerLite, had no buttons and byte size was the most import criteria. This is extended version of the lite version , which has seek functionality and I added buttons. It is still pretty lightweight, code itself has 3.7 kB with buttons and bars has 4.3 kB. Read the rest of this entry »

Posted in AS2 | 4 Comments »

Explode MovieClip effect

February 24th, 2008 by Slav

One of the sessions at Flash on the Beach got me interested into playing with particles. Seb Lee  showed us an example of a using particles to explode a skeleton. You clicked on a skeleton and bones went flying. The only problem was, you had to manually break up the skeleton into a bunch of movie clips first and placed them into the skeleton timeline. That got me thinking… There must be a way for Flash to do this programmaticaly. So I spend some time (and caffeine) and wrote a class capable of doing just that…

Above demo loads the titles of the blog entries from , breaks them apart and uses them as a particles. You can also roll over with your mouse to trigger particle animation. Read the rest of this entry »

Posted in AS2, AS3, flash, particles | 6 Comments »

ULTRAKILLZ = New generation of flash 3D network gaming!

January 22nd, 2008 by Slav

UltraKillz ScreenshotUltraKillz is a 3D FPS “Quake Arena like” flash game build by my friends and ex-colleagues Mike Barrax and Malcom Bailey. Mike was responsible for the flash end of development (coding of game engine, characters, gameplay etc..)  and Malcom (Malcx) for the it’s back end. The result is killing spree joyride . And all needed is to have a flash 9 plugin.

Well done Mike and Mal!
After the BETA stage, game will be released to the general public, till then you can pre-register for the invites on the game project page

The video of the gameplay is available on : YouTube.

Bellow is a little interview with the creators of the game that explains a technical side of the game and some development background details. Read the rest of this entry »

Posted in AS2, Games, Personal | 4 Comments »

9 Grid Scaling with BitmapData (AS2 Version)

January 11th, 2008 by Slav

This is a 9 grid scale implementation class for BitmapData.


It was inspired by the  the post on Bytearray blog , well this is basicaly its “slightly” different AS2 implementation.  It’s aimed to be used mainly with the imported bitmap data (e.g. buttons from the photoshop PSD file). You need to have a library linkage name and “Export for ActionScript” checked on the bitmap.   Read the rest of this entry »

Posted in AS2, flash | 11 Comments »

Tight binding with Delegate. Evil but sweet. Dirty but fast.

November 3rd, 2007 by Slav

First perhaps I should explain what I am talking about. One of the core OOP principles is a principle of a class being a “black box”. Or class’s encapsulation. Which means , it’s advisable not to expose inner working of a class , i.e. it’s methods, variables etc to the outside word. Instead , to communicate with that class , to choose a few clearly and carefully designed public methods , something being referred to as classes interface. In AS2 this is done of course by declaring the methods and variables as “private”.

Although ,majority of time, these are very good rules since there is a good reason behind them, on occasion it’s fine to break them providing the benefits of breaking them outweighs the consequences of doing so.

I discovered the method that enables very effective class 2 class communication. The trick is to define the function variable on a class that is being attached and delegate that functionality back to the main class, using Delegate class from package mx.utils. Read the rest of this entry »

Posted in AS2, flash | Comments Off on Tight binding with Delegate. Evil but sweet. Dirty but fast.

Tiler Class

October 25th, 2007 by Slav

In html is not unusual to have repeating smaller images or “tiles” filling up your background. In fact this blog has one as well.

In flash however, you don’t see this functionality very often. There are several reasons for that :

To determine how many tiles you need to fill up the space , you need to know it’s dimensions. You can only know that once the tile is fully loaded.  Which is fine, you can load one tile, get it’s width and height, then determine how many you need to place vertically and horizontally and at what exact positions. And then all you need to do is to use duplicateMovieClip method to duplicate all the tiles off the first one you loaded. Right ?

Wrong. Due to the security restrictions you can’t duplicate the movieclips containing the assets that have been loaded externally. Fortunately came flash 8 and BitmapData. So you can use draw command to render the rest of the tiles on the stage. Read the rest of this entry »

Posted in AS2, flash | Comments Off on Tiler Class

Typewriter effect class (with sound)

October 17th, 2007 by Slav