April 2010
M T W T F S S
« Mar   May »
 1234
567891011
12131415161718
19202122232425
2627282930  

Matching Things game

Try to match things in this game. Matching things game with source files.

package
{
import adobe.utils.CustomActions;
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.text.TextField;
import flash.events.*;
import flash.utils.getTimer;

public class MyMatching extends MovieClip
{
public var xIconsContainer;//all icons start to draw from this x
public var yIconsContainer;//all icons start to draw from this y

private var iconsVertical=2;//icons columns
private var iconsHorizontal=2;//icons rows

private var firstIcon;//player click to first icon
private var secondIcon;//player [...]

Coin Toss game

Try to coin toss;)
Full Sources.

package
{
import flash.display.*;
import flash.events.*;
import flash.display.MovieClip;
import fl.controls.RadioButtonGroup;

import fl.transitions.Tween;
import fl.transitions.easing.*;

import flash.ui.Mouse;

import flash.display.Sprite;
import flash.utils.*;

import flash.media.Sound;
import flash.media.SoundChannel;

public class CoinToss extends MovieClip
{
var radioGroup1:RadioButtonGroup=new RadioButtonGroup(”Coin Loss”);

var randomNumber:Number;
var points:Number = 500;

// set up sounds
var theCorrectSound:CorrectSound = new CorrectSound();
var theWrongSound:WrongSound = new WrongSound();

//constructor
public function CoinToss()
{
//changing existing cursor to our custom
Mouse.hide();
addEventListener(Event.ENTER_FRAME, cursorPosition);
my_cursor.mouseEnabled = [...]

Guess Number game

Please enjoy with guess number game. Here you can find full source files for this game.

package {

import flash.events.*;
import flash.display.*;
import flash.text.TextField;

public class GuessNumber extends MovieClip
{
var guessNumber:Number;
var points:Number = 0;
var level:Number = 1;
var lastGuessNumber:Number = 5;

//constructor
public function GuessNumber()
{
generateNumber();
}

public function generateNumber(e:Event = null):void
{
gotoAndStop(’gameScreen’);
trace(”****** Welcome Screen *********”);
pointsView.text = “0″;
levelView.text = “1″;
addEventListener(Event.ADDED_TO_STAGE, startGuess);
startGuess();
howToPlay_mc.visible = false;
moreGames_mc.visible = false;
thanks_mc.visible = false;
howToPlayBtn.addEventListener(MouseEvent.CLICK, howToPlayScreen);
moreGamesBtn.addEventListener(MouseEvent.CLICK, [...]

Font Embedding

As usual in flash games developers use special fonts. This fonts looks cool and exciting but exist one problem. A lot of users don’t has this fonts on their PC. And when they play in game they see not cool font and arial or something else what exist in their font library. So the [...]