Section 1
//startword_2 (birdword_fla.startword_2)
package birdword_fla {
import flash.display.*;
public dynamic class startword_2 extends MovieClip {
public function startword_2(){
addFrameScript(19, frame20);
}
function frame20(){
gotoAndPlay(1);
}
}
}//package birdword_fla
Section 2
//Bar (com.cool.bird.Bar)
package com.cool.bird {
import flash.display.*;
public dynamic class Bar extends MovieClip {
public var stopBtn:MovieClip;
public var musicBtn:MovieClip;
public var s1:art_text_style_4;
public var s0:art_text_style_4;
public var s2:art_text_style_4;
public var l0:art_text_style_4;
public var l1:art_text_style_4;
public var a0:art_text_style_4;
public var a2:art_text_style_4;
public var a1:art_text_style_4;
}
}//package com.cool.bird
Section 3
//Bg (com.cool.bird.Bg)
package com.cool.bird {
import flash.display.*;
public dynamic class Bg extends MovieClip {
}
}//package com.cool.bird
Section 4
//BirdItem (com.cool.bird.BirdItem)
package com.cool.bird {
import flash.display.*;
public dynamic class BirdItem extends MovieClip {
public var charactor:MovieClip;
public var bird:MovieClip;
}
}//package com.cool.bird
Section 5
//Sound1 (com.cool.bird.Sound1)
package com.cool.bird {
import flash.media.*;
public dynamic class Sound1 extends Sound {
}
}//package com.cool.bird
Section 6
//Sound2 (com.cool.bird.Sound2)
package com.cool.bird {
import flash.media.*;
public dynamic class Sound2 extends Sound {
}
}//package com.cool.bird
Section 7
//SoundBG (com.cool.bird.SoundBG)
package com.cool.bird {
import flash.media.*;
public dynamic class SoundBG extends Sound {
}
}//package com.cool.bird
Section 8
//Start (com.cool.bird.Start)
package com.cool.bird {
import flash.display.*;
public dynamic class Start extends MovieClip {
public var startBtn:SimpleButton;
}
}//package com.cool.bird
Section 9
//UIPassPanel (com.cool.bird.UIPassPanel)
package com.cool.bird {
import flash.display.*;
public dynamic class UIPassPanel extends MovieClip {
public var nextBtn:SimpleButton;
public var msg:MovieClip;
}
}//package com.cool.bird
Section 10
//S_17 (sonicteclasy8_fla.S_17)
package sonicteclasy8_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
public dynamic class S_17 extends MovieClip {
public var movieClip_5:MovieClip;
public function S_17(){
addFrameScript(0, frame1);
}
public function fl_ClickToGoToWebPage_4(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.mytypinggame.com"), "_blank");
}
function frame1(){
movieClip_5.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_4);
movieClip_5.buttonMode = true;
}
}
}//package sonicteclasy8_fla
Section 11
//S_70 (sonicteclasy8_fla.S_70)
package sonicteclasy8_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
public dynamic class S_70 extends MovieClip {
public var movieClip_7:MovieClip;
public function S_70(){
addFrameScript(0, frame1);
}
public function fl_ClickToGoToWebPage_6(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.mytypinggame.com"), "_blank");
}
function frame1(){
movieClip_7.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_6);
movieClip_7.buttonMode = true;
}
}
}//package sonicteclasy8_fla
Section 12
//S_75 (sonicteclasy8_fla.S_75)
package sonicteclasy8_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
public dynamic class S_75 extends MovieClip {
public var movieClip_11:MovieClip;
public function S_75(){
addFrameScript(0, frame1);
}
public function fl_ClickToGoToWebPage_10(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.mytypinggame.com"), "_blank");
}
function frame1(){
movieClip_11.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_10);
movieClip_11.buttonMode = true;
}
}
}//package sonicteclasy8_fla
Section 13
//S_77 (sonicteclasy8_fla.S_77)
package sonicteclasy8_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
public dynamic class S_77 extends MovieClip {
public var movieClip_14:MovieClip;
public function S_77(){
addFrameScript(0, frame1);
}
public function fl_ClickToGoToWebPage_13(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.y8.com"), "_blank");
}
function frame1(){
movieClip_14.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_13);
movieClip_14.buttonMode = true;
}
}
}//package sonicteclasy8_fla
Section 14
//S_79 (sonicteclasy8_fla.S_79)
package sonicteclasy8_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
public dynamic class S_79 extends MovieClip {
public function S_79(){
addFrameScript(0, frame1);
}
public function fl_ClickToGoToWebPage_12(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.y8.com"), "_blank");
}
function frame1(){
movieClip_13.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_12);
movieClip_13.buttonMode = true;
}
}
}//package sonicteclasy8_fla
Section 15
//S_80 (sonicteclasy8_fla.S_80)
package sonicteclasy8_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
public dynamic class S_80 extends MovieClip {
public var movieClip_4:MovieClip;
public function S_80(){
addFrameScript(0, frame1);
}
public function fl_ClickToGoToWebPage_3(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.minijuegoschicas.net"), "_blank");
}
function frame1(){
movieClip_4.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_3);
movieClip_4.buttonMode = true;
}
}
}//package sonicteclasy8_fla
Section 16
//S_85 (sonicteclasy8_fla.S_85)
package sonicteclasy8_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
public dynamic class S_85 extends MovieClip {
public var movieClip_8:MovieClip;
public function S_85(){
addFrameScript(0, frame1);
}
public function fl_ClickToGoToWebPage_7(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.mytypinggame.com"), "_blank");
}
function frame1(){
movieClip_8.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_7);
movieClip_8.buttonMode = true;
}
}
}//package sonicteclasy8_fla
Section 17
//art_text_style_3 (art_text_style_3)
package {
import flash.display.*;
public dynamic class art_text_style_3 extends MovieClip {
}
}//package
Section 18
//art_text_style_4 (art_text_style_4)
package {
import flash.display.*;
public dynamic class art_text_style_4 extends MovieClip {
}
}//package
Section 19
//Bird (Bird)
package {
import com.cool.bird.*;
import flash.display.*;
public class Bird extends Sprite {
public var word:String;
var bird:BirdItem;
public function Bird(_arg1:int){
var _local2:* = 0;
super();
word = GameConst.wordList[_arg1];
bird = new BirdItem();
bird.charactor.gotoAndStop((_arg1 + 1));
_local2 = Math.ceil((10 * Math.random()));
bird.bird.gotoAndStop(_local2);
this.addChild(bird);
changeWordPos(_local2);
}
private function changeWordPos(_arg1:int):void{
var _local2:* = _arg1;
switch (_local2){
case 1:
bird.charactor.x = 32;
bird.charactor.y = 26;
break;
case 2:
bird.charactor.x = 0;
bird.charactor.y = 32;
break;
case 3:
bird.charactor.x = 23;
bird.charactor.y = 27;
break;
case 4:
bird.charactor.x = 51;
bird.charactor.y = 37;
break;
case 5:
bird.charactor.x = 23;
bird.charactor.y = 30;
break;
case 6:
bird.charactor.x = 34;
bird.charactor.y = 23;
break;
case 7:
bird.charactor.x = 6;
bird.charactor.y = 34;
break;
case 8:
bird.charactor.x = 9;
bird.charactor.y = 23;
break;
case 9:
bird.charactor.x = 12;
bird.charactor.y = 24;
break;
case 10:
bird.charactor.x = -3;
bird.charactor.y = 30;
break;
case 11:
bird.charactor.x = 22;
bird.charactor.y = 31;
break;
};
}
}
}//package
Section 20
//birdtype (birdtype)
package {
import flash.events.*;
import com.cool.bird.*;
import flash.display.*;
public class birdtype extends MovieClip {
private var gameBoard:GameBoard;
private var startPage:Start;
public function birdtype(){
showStartPage();
}
private function showGameBoard():void{
gameBoard = new GameBoard();
this.addChild(gameBoard);
stage.frameRate = GameConst.frameRate;
}
private function showStartPage():void{
startPage = new Start();
this.addChild(startPage);
startPage.startBtn.addEventListener(MouseEvent.CLICK, onStart);
SoundManager.playBGMusic();
}
private function onStart(_arg1:MouseEvent):void{
startPage.startBtn.removeEventListener(MouseEvent.CLICK, onStart);
this.removeChild(startPage);
startPage = null;
showGameBoard();
}
}
}//package
Section 21
//GameBoard (GameBoard)
package {
import flash.events.*;
import com.cool.bird.*;
import flash.display.*;
import flash.utils.*;
public class GameBoard extends MovieClip {
private var bar:Bar;
private var curLevel:int;// = 1
private var timer:Timer;
private var bg:Bg;
private var isStop:Boolean;
private var score:int;
private var passPanel:PassPanel;
private var birdArr:Array;
private var soundOpen:Boolean;// = true
public function GameBoard(){
curLevel = 1;
birdArr = [];
soundOpen = true;
super();
initBg();
initBar();
initGame();
}
private function addBird(_arg1:TimerEvent):void{
var _local2:* = 0;
var _local3:* = null;
if (birdArr.length > 9){
return;
};
_local2 = Math.floor((GameConst.wordList.length * Math.random()));
_local3 = new Bird(_local2);
_local3.y = -35;
_local3.x = (Math.random() * GameConst.gameWidth);
this.addChild(_local3);
birdArr.push(_local3);
}
private function initBar():void{
bar = new Bar();
bar.y = 443;
this.addChild(bar);
bar.stopBtn.stop();
bar.stopBtn.addEventListener(MouseEvent.CLICK, onStopGame);
bar.musicBtn.addEventListener(MouseEvent.CLICK, onMusic);
bar.musicBtn.stop();
}
private function stopGame():void{
timer.stop();
stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyBoard);
removeEventListener(Event.ENTER_FRAME, moveBird);
}
private function initGame():void{
timer = new Timer(GameConst.levelTimeInterval[(curLevel - 1)]);
timer.addEventListener(TimerEvent.TIMER, addBird);
timer.start();
addEventListener(Event.ENTER_FRAME, moveBird);
this.addEventListener(Event.ADDED_TO_STAGE, onAddToStage);
addBird(null);
showLevel((curLevel + ""));
showScore(score);
showAimScore();
if (stage != null){
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyBoard);
stage.focus = stage;
};
}
private function moveBird(_arg1:Event):void{
var _local2:* = null;
var _local3:* = 0;
var _local4:* = birdArr;
for each (_local2 in _local4) {
_local2.y = (_local2.y + GameConst.speedList[(curLevel - 1)]);
if (!(_local2.y > (GameConst.gameHeight + 10))){
} else {
_local2.y = -25;
};
};
}
private function onNextLevel(_arg1:Event):void{
if (this.contains(passPanel)){
this.removeChild(passPanel);
};
initGame();
initBg();
}
private function onStopGame(_arg1:MouseEvent):void{
if (isStop != false){
isStop = false;
bar.stopBtn.gotoAndStop(1);
continueGame();
} else {
isStop = true;
bar.stopBtn.gotoAndStop(2);
stopGame();
};
if (stage != null){
stage.focus = stage;
};
}
private function continueGame():void{
timer.start();
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyBoard);
addEventListener(Event.ENTER_FRAME, moveBird);
}
private function showAimScore():void{
var _local1:* = null;
var _local2:* = 0;
bar.a1.stop();
bar.a2.stop();
bar.a0.stop();
_local1 = ((GameConst.scoreList[(curLevel - 1)] * 10) + "");
_local2 = 0;
while (_local2 < _local1.length) {
bar[("a" + _local2)].gotoAndStop(_local1.charCodeAt(_local2));
_local2++;
};
}
private function initBg():void{
if (bg == null){
bg = new Bg();
this.addChild(bg);
};
bg.gotoAndStop(Math.ceil((Math.random() * 5)));
}
private function showScore(_arg1:int):void{
var _local2:* = null;
var _local3:* = 0;
bar.s1.gotoAndStop(1);
bar.s2.gotoAndStop(1);
bar.s0.gotoAndStop(1);
_local2 = ((_arg1 * 10) + "");
_local3 = 0;
while (_local3 < _local2.length) {
bar[("s" + _local3)].gotoAndStop(_local2.charCodeAt(_local3));
_local3++;
};
}
private function showLevel(_arg1:String):void{
var _local2:* = 0;
bar.l0.stop();
bar.l1.stop();
_local2 = 0;
while (_local2 < _arg1.length) {
bar[("l" + _local2)].gotoAndStop(_arg1.charCodeAt(_local2));
_local2++;
};
if (parseInt(_arg1) == 10){
bar.l0.x = 69;
bar.l1.x = 95;
};
}
private function onAddToStage(_arg1:Event):void{
stage.focus = stage;
this.removeEventListener(Event.ADDED_TO_STAGE, onAddToStage);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyBoard);
}
private function onMusic(_arg1:MouseEvent):void{
if (soundOpen){
soundOpen = false;
bar.musicBtn.gotoAndStop(2);
SoundManager.stopAllSound();
} else {
soundOpen = true;
bar.musicBtn.gotoAndStop(1);
SoundManager.playBGMusic();
};
if (stage != null){
stage.focus = stage;
};
}
private function checkFinish():void{
if (score >= GameConst.scoreList[(curLevel - 1)]){
cleanGameBoard();
showPassPanel();
};
}
private function onKeyBoard(_arg1:KeyboardEvent):void{
var _local3:*;
var _local2:* = 0;
_local2 = 0;
while (_local2 < birdArr.length) {
if ((((birdArr[_local2].word.toLocaleLowerCase() == String.fromCharCode(_arg1.charCode))) || ((birdArr[_local2].word.toLocaleUpperCase() == String.fromCharCode(_arg1.charCode))))){
this.removeChild(birdArr[_local2]);
birdArr.splice(_local2, 1);
score++;
showScore(score);
checkFinish();
if (soundOpen == true){
SoundManager.playCryMusic();
};
return;
};
_local2++;
};
}
private function cleanGameBoard():void{
var _local1:* = null;
stopGame();
var _local2:* = 0;
var _local3:* = birdArr;
for each (_local1 in _local3) {
if (!this.contains(_local1)){
} else {
this.removeChild(_local1);
};
};
birdArr = [];
score = 0;
}
private function showPassPanel():void{
var _local1:*;
passPanel = new PassPanel();
passPanel.x = 174;
passPanel.y = 128;
passPanel.setMsg(curLevel);
addChild(passPanel);
passPanel.addEventListener("nextLevel", onNextLevel);
curLevel++;
}
}
}//package
Section 22
//GameConst (GameConst)
package {
public class GameConst {
public static const speedList:Array = [2, 2, 2, 2.5, 2, 2.5, 3, 3.5, 4, 4.5];
public static const wordList:Array = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
public static const frameRate:int = 50;
public static const gameWidth:int = 580;
public static const levelTimeInterval:Array = [2000, 1600, 1300, 1000, 500, 300, 250, 220, 200, 150, 100];
public static const scoreList:Array = [10, 15, 20, 25, 30, 35, 40, 45, 50, 55];
public static const gameHeight:int = 350;
}
}//package
Section 23
//PassPanel (PassPanel)
package {
import flash.events.*;
import com.cool.bird.*;
import flash.display.*;
public class PassPanel extends Sprite {
var panel:UIPassPanel;
public function PassPanel(){
panel = new UIPassPanel();
this.addChild(panel);
panel.msg.stop();
panel.nextBtn.addEventListener(MouseEvent.CLICK, onClick);
}
public function setMsg(_arg1:int):void{
panel.msg.gotoAndStop(_arg1);
if (_arg1 == 10){
panel.nextBtn.visible = false;
};
}
private function onClick(_arg1:MouseEvent):void{
this.dispatchEvent(new Event("nextLevel"));
}
}
}//package
Section 24
//SoundManager (SoundManager)
package {
import flash.media.*;
import com.cool.bird.*;
public class SoundManager {
private static var sound2:Sound2;
private static var sound1:Sound1;
private static var bgSound:SoundBG;
private static var sound1Sc:SoundChannel;
private static var sound2Sc:SoundChannel;
private static var bgSc:SoundChannel;
public static function playBGMusic():void{
bgSc = bgSound.play(0, 100000);
turnDownMusic(bgSc);
}
public static function playCryMusic():void{
if (Math.random() > 0.5){
sound1Sc = sound1.play();
turnDownMusic(sound1Sc);
} else {
sound2Sc = sound2.play();
turnDownMusic(sound2Sc);
};
}
public static function stopAllSound():void{
if (bgSc != null){
bgSc.stop();
};
if (sound1Sc != null){
sound1Sc.stop();
};
if (sound2Sc != null){
sound2Sc.stop();
};
}
private static function turnDownMusic(_arg1:SoundChannel):void{
var _local2:* = null;
_local2 = _arg1.soundTransform;
_local2.volume = 0.5;
_arg1.soundTransform = _local2;
}
bgSound = new SoundBG();
sound1 = new Sound1();
sound2 = new Sound2();
}
}//package