Frame 1
_global.scrollMap = function (fade) {
if (!fade) {
_root.map_tint.dest = 50;
_root.map.ycoord = -1 * random(887);
_root.map.xcoord = 1 * random(60);
} else {
_root.map_tint.dest = 82;
}
};
Instance of Symbol 132 MovieClip in Frame 1
onClipEvent (load) {
var p = 0;
}
onClipEvent (enterFrame) {
var p = (_parent.getBytesLoaded() / _parent.getBytesTotal());
var p = Math.round(p * 100);
mask._y = -((p * 1.67) + 22);
if (p >= 100) {
_parent.gotoAndPlay("intro");
}
}
Frame 3
stop();
Frame 7
if ((_global.level == 0) || (_global.level == undefined)) {
_global.level = 1;
}
Frame 11
music.stop();
var music;
music = new Sound();
music.attachSound((idName = "music"));
music.start(null, 9999);
Array.prototype.popByName = function (index) {
var _local3 = new Array();
var _local4;
var _local2 = 0;
while (_local2 < this.length) {
if (this[_local2] != index) {
_local3.push(this[_local2]);
} else {
_local4 = this[_local2];
}
_local2++;
}
this=new Array();//parameter overwritten
new Array();
this=_local3;//parameter overwritten
return(_local4);
};
Array.prototype.shuffle = function () {
i = 0;
while (i < this.length) {
var _local3 = this[i];
var _local2 = random(this.length);
this[i] = this[_local2];
this[_local2] = _local3;
i++;
}
};
Frame 20
stop();
Frame 21
stop();
Frame 30
start._visible = false;
stop();
Frame 40
stop();
Frame 50
stop();
Symbol 20 MovieClip [Card] Frame 1
#initclip 17
Object.registerClass("Card", Card);
#endinitclip
stop();
Symbol 20 MovieClip [Card] Frame 11
stop();
Symbol 24 MovieClip [countdown] Frame 1
Symbol 24 MovieClip [countdown] Frame 2
_level0.Game.Deck.pause();
Symbol 24 MovieClip [countdown] Frame 35
_level0.Game.Deck.resume();
Symbol 24 MovieClip [countdown] Frame 36
stop();
Symbol 25 MovieClip [Deck] Frame 1
#initclip 14
Object.registerClass("Deck", Deck);
#endinitclip
Symbol 51 MovieClip [TilesRemaining] Frame 1
#initclip 15
Object.registerClass("TilesRemaining", TilesRemaining);
#endinitclip
Symbol 55 MovieClip [Levelbar] Frame 1
#initclip 16
Object.registerClass("Levelbar", Levelbar);
#endinitclip
Instance of Symbol 60 MovieClip [penaltyLoad] "penaltyLoad" in Symbol 62 MovieClip [penalty] Frame 1
onClipEvent (load) {
function play() {
penalty = 0;
deck = _level0.Game.Deck;
var _local2 = 0;
while (_local2 < deck.cards.length) {
trace("SCANNING CARD!!!!");
if (deck.cards[_local2].side == "up") {
trace("SIDE IS UP!!!!!!!");
_level0.Game.TilesRemaining.destroy(_local2);
deck.cards[_local2].destroy();
if (this._parent._parent.button == "next level") {
_level0.Game.Score.modScore(-10);
}
penalty = penalty - 10;
}
_local2++;
}
}
matches_rem = _level0.Game.TilesRemaining.matches_rem;
var penalty = 0;
}
Instance of Symbol 64 MovieClip [time_bonusLoad] "time_bonusLoad" in Symbol 66 MovieClip [time_bonus] Frame 1
onClipEvent (load) {
function play() {
time_bonus = 0;
seconds = _level0.Game.Timer.time;
var _local2 = 0;
while (_local2 < seconds) {
time_bonus = time_bonus + 5;
_local2++;
}
if (this._parent._parent.button == "next level") {
_level0.Game.Score.modScore(time_bonus);
}
}
var time_bonus = 0;
this.play();
}
Symbol 114 Button
on (press) {
this.gotoAndPlay("close");
}
Symbol 115 MovieClip [Help] Frame 39
stop();
Symbol 115 MovieClip [Help] Frame 47
this._visible = false;
_level0.Game.Deck.resume();
stop();
Symbol 351 MovieClip [__Packages.Deck] Frame 0
class Deck extends MovieClip
{
var _name, initial_x, _x, _alpha, score_location, myTween, cards, cards_types, rows, cols, timer, cards_assoc, attachMovie, getNextHighestDepth, _xscale, _width, _yscale, intervalID;
function Deck () {
super();
trace("-> Deck();");
_name = "Deck";
initial_x = _x;
_level0.Game.Match.setDeckLocation(this);
_level0.Game.TilesRemaining.setDeckLocation(this);
_alpha = 0;
populateCards();
fadeIn();
}
function setScoreLocation(loc) {
score_location = loc;
trace(score_location);
}
function fadeIn() {
myTween = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 1, true);
myTween.onMotionFinished = function () {
};
}
function populateCards() {
_global.roundScore = 0;
i = 0;
while (i < cards.length) {
cards[i].destroy();
trace("REMOVING CARD");
i++;
}
cards_types = new Array();
trace("DECK LEVEL: " + _global.level);
if (_global.level == 1) {
trace("LOADING LEVEL 1");
rows = 3;
cols = 3;
timer = 30;
cards_assoc = new Array();
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
trace("CARDS ASSOC: " + cards_assoc);
}
if (_global.level == 2) {
trace("LOADING LEVEL 2");
rows = 3;
cols = 3;
timer = 39;
cards_assoc = new Array();
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
}
if (_global.level == 3) {
rows = 4;
cols = 4;
timer = 45;
trace("LOADING LEVEL 3");
cards_assoc = new Array();
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"modtime", seconds:2});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
}
if (_global.level == 4) {
trace("LOADING LEVEL 4");
rows = 4;
cols = 4;
timer = 55;
cards_assoc = new Array();
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
}
if (_global.level == 5) {
trace("LOADING LEVEL 5");
rows = 4;
cols = 4;
timer = 60;
cards_assoc = new Array();
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"modtime", seconds:10});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"tiara"});
}
if (_global.level == 6) {
trace("LOADING LEVEL 6");
rows = 4;
cols = 4;
timer = 62;
cards_assoc = new Array();
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"modtime", seconds:10});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
}
if (_global.level == 7) {
trace("LOADING LEVEL 7");
rows = 5;
cols = 5;
timer = 60;
cards_assoc = new Array();
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"modtime", seconds:10});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"tiara"});
}
if (_global.level == 8) {
trace("LOADING LEVEL 8");
rows = 5;
cols = 5;
timer = 65;
cards_assoc = new Array();
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"modtime", seconds:10});
cards_assoc.push({classtype:"modtime", seconds:5});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
}
if (_global.level == 9) {
trace("LOADING LEVEL 9");
rows = 5;
cols = 5;
timer = 55;
cards_assoc = new Array();
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"modtime", seconds:10});
cards_assoc.push({classtype:"modtime", seconds:10});
cards_assoc.push({classtype:"modtime", seconds:2});
cards_assoc.push({classtype:"modtime", seconds:2});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
}
if (_global.level == 10) {
trace("LOADING LEVEL 10");
rows = 6;
cols = 6;
timer = 85;
cards_assoc = new Array();
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"wild"});
cards_assoc.push({classtype:"modtime", seconds:10});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lipstick"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"lips"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"ring"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"purse"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"shoes"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
cards_assoc.push({classtype:"regular", type:"tiara"});
}
trace("POPULATING CARDS");
var i = 0;
while (i < cards_assoc.length) {
switch (cards_assoc[i].classtype) {
case "wild" :
cards_types.push({type:cards_assoc[i].classtype});
break;
case "modtime" :
cards_types.push({type:cards_assoc[i].classtype, seconds:cards_assoc[i].seconds});
break;
case "regular" :
cards_types.push({type:cards_assoc[i].type});
}
i++;
}
shuffle(3);
drawDeck(rows, cols);
_level0.Game.countdown.gotoAndPlay(2);
}
function shuffle(shuffle_count) {
trace("Shuffling Cards...");
var _local2 = 0;
while (_local2 < shuffle_count) {
cards_types.shuffle();
_local2++;
}
trace("Cards Shuffled!");
}
function drawDeck(rows, cols) {
var _local4 = 0;
cards = new Array();
trace("ROWS: " + rows);
trace("COLS: " + cols);
var _local3 = 0;
while (_local3 < rows) {
var _local2 = 0;
while (_local2 < cols) {
_local4++;
if (cards_types[_local4 - 1].type == "modtime") {
attachMovie("Card", (("Card_" + _local3) + "_") + _local2, getNextHighestDepth()).init(_local3, _local2, "down", cards_types[_local4 - 1].type, cards_types[_local4 - 1].seconds);
} else {
attachMovie("Card", (("Card_" + _local3) + "_") + _local2, getNextHighestDepth()).init(_local3, _local2, "down", cards_types[_local4 - 1].type, null);
}
cards.push(this[(("Card_" + _local3) + "_") + _local2]);
_local2++;
}
_local3++;
}
_level0.Game.TilesRemaining.getTilesRemaining();
scaleDeck();
_level0.Game.Timer.setTime(timer);
_level0.Game.Timer.Start();
}
function removeCard(id) {
cards.popByName(id).destroy();
}
function turnDown() {
var _local2 = 0;
while (_local2 < cards.length) {
cards[_local2].flipDown();
_local2++;
}
var _local3;
var _local4;
_local3 = new Sound();
_local4 = "snd_flip";
_local3.attachSound(_local4);
_local3.start();
}
function pause() {
noClick();
delete _level0.Game.Match.onRelease;
_level0.Game.Timer.Stop();
}
function resume() {
yesClick();
_level0.Game.Match.onRelease = _level0.Game.Match.myRelease;
_level0.Game.Timer.Start();
}
function noClick() {
var _local2 = 0;
while (_local2 < cards.length) {
delete cards[_local2].onRelease;
_local2++;
}
}
function yesClick() {
var _local2 = 0;
while (_local2 < cards.length) {
cards[_local2].onRelease = cards[_local2].myRelease;
_local2++;
}
}
function scaleDeck() {
_x = initial_x;
_xscale = 100;
if (_width != MAX_WIDTH) {
var _local2 = MAX_WIDTH / _width;
_xscale = _xscale + ((_local2 * 100) - 100);
_yscale = _xscale;
}
trace((_x + " : ") + initial_x);
_x = _x + ((cards[0]._width * (_xscale / 100)) / 2);
}
function quit() {
var _local2 = 0;
while (_local2 < cards.length) {
cards[_local2].gameOver();
_local2++;
}
trace("GAMEOVER CARDS: " + cards);
}
function loadStats() {
trace("DELAY: " + intervalID);
trace("DELAY: " + intervalID);
trace("RUNNING LOADSTATS");
trace("RUNNING LOADSTATS");
}
function gameOver() {
var _local2 = 0;
while (_local2 < cards.length) {
cards[_local2].side = "down";
cards[_local2].gameOver();
_local2++;
}
noClick();
trace("GAMEOVER CARDS: " + cards);
_level0.Game.Stats.gotoAndStop("start");
}
var MAX_WIDTH = 305;
}
Symbol 352 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 353 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 354 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 355 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 356 MovieClip [__Packages.TilesRemaining] Frame 0
class TilesRemaining extends MovieClip
{
var deck, AlphaScale, purse, lips, lipstick, shoes, tiara, ring, purse_number, lips_number, lipstick_number, shoes_number, tiara_number, ring_number;
function TilesRemaining () {
super();
trace(this);
}
function setDeckLocation(loc) {
deck = _level0.Game.Deck;
}
function update() {
}
function isEnd() {
trace(total_cards);
if (matches_rem == 0) {
if (((total_cards == 0) || (total_cards == 1)) || (wild_num == 0)) {
_level0.Game.Timer.Stop();
_level0.Game.Timer.outOfTime();
}
}
}
function destroy(i) {
tiledestroy(i);
}
function tiledestroy(i) {
deck = _level0.Game.Deck;
this[deck.cards[i].cardtype + "_number"]._visible = false;
AlphaScale = new mx.transitions.Tween(this[deck.cards[i].cardtype], "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 1, true);
}
function getTilesRemaining() {
matches_rem = 0;
purse_num = 0;
lips_num = 0;
lipstick_num = 0;
shoes_num = 0;
tiara_num = 0;
ring_num = 0;
wild_num = 0;
purse._alpha = 100;
lips._alpha = 100;
lipstick._alpha = 100;
shoes._alpha = 100;
tiara._alpha = 100;
ring._alpha = 100;
purse_number._alpha = 100;
lips_number._alpha = 100;
lipstick_number._alpha = 100;
shoes_number._alpha = 100;
tiara_number._alpha = 100;
ring_number._alpha = 100;
purse._visible = false;
lips._visible = false;
lipstick._visible = false;
shoes._visible = false;
tiara._visible = false;
ring._visible = false;
purse_number._visible = false;
lips_number._visible = false;
lipstick_number._visible = false;
shoes_number._visible = false;
tiara_number._visible = false;
ring_number._visible = false;
var _local2 = 0;
while (_local2 < deck.cards.length) {
if (deck.cards[_local2].cardtype == "purse") {
purse._visible = true;
purse_num++;
purse_number._visible = true;
}
if (deck.cards[_local2].cardtype == "lips") {
lips._visible = true;
lips_num++;
lips_number._visible = true;
}
if (deck.cards[_local2].cardtype == "lipstick") {
lipstick._visible = true;
lipstick_num++;
lipstick_number._visible = true;
}
if (deck.cards[_local2].cardtype == "shoes") {
shoes._visible = true;
shoes_num++;
shoes_number._visible = true;
}
if (deck.cards[_local2].cardtype == "tiara") {
tiara._visible = true;
tiara_num++;
tiara_number._visible = true;
}
if (deck.cards[_local2].cardtype == "ring") {
ring._visible = true;
ring_num++;
ring_number._visible = true;
}
if (deck.cards[_local2].cardtype == "wild") {
wild_num++;
}
_local2++;
}
if (purse_num >= 2) {
trace("purse_num%2 = " + (purse_num % 2));
if ((purse_num % 2) == 0) {
matches_rem = matches_rem + (purse_num / 2);
} else {
matches_rem = matches_rem + ((purse_num - 1) / 2);
}
}
if (ring_num >= 2) {
trace("ring_num%2 = " + (ring_num % 2));
if ((ring_num % 2) == 0) {
matches_rem = matches_rem + (ring_num / 2);
} else {
matches_rem = matches_rem + ((ring_num - 1) / 2);
}
}
if (lipstick_num >= 2) {
trace("lipstick_num%2 = " + (lipstick_num % 2));
if ((lipstick_num % 2) == 0) {
matches_rem = matches_rem + (lipstick_num / 2);
} else {
matches_rem = matches_rem + ((lipstick_num - 1) / 2);
}
}
if (shoes_num >= 2) {
trace("shoes_num%2 = " + (shoes_num % 2));
if ((shoes_num % 2) == 0) {
matches_rem = matches_rem + (shoes_num / 2);
} else {
matches_rem = matches_rem + ((shoes_num - 1) / 2);
}
}
if (tiara_num >= 2) {
trace("tiara_num%2 = " + (tiara_num % 2));
if ((tiara_num % 2) == 0) {
matches_rem = matches_rem + (tiara_num / 2);
} else {
matches_rem = matches_rem + ((tiara_num - 1) / 2);
}
}
if (lips_num >= 2) {
trace("lips_num%2 = " + (lips_num % 2));
if ((lips_num % 2) == 0) {
matches_rem = matches_rem + (lips_num / 2);
} else {
matches_rem = matches_rem + ((lips_num - 1) / 2);
}
}
total_cards = ((((lips_num + ring_num) + tiara_num) + shoes_num) + lipstick_num) + purse_num;
isEnd();
trace("MATCHES REMAINING: " + matches_rem);
}
var purse_num = 0;
var lips_num = 0;
var lipstick_num = 0;
var shoes_num = 0;
var tiara_num = 0;
var ring_num = 0;
var wild_num = 0;
var matches_rem = 23123;
var temp_num = 0;
var total_cards = 0;
}
Symbol 357 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 358 MovieClip [__Packages.Levelbar] Frame 0
class Levelbar extends MovieClip
{
function Levelbar () {
super();
level = _global.level;
}
function updateLevel() {
level = _global.level;
}
var level = 0;
}
Symbol 359 MovieClip [__Packages.Card] Frame 0
class Card extends MovieClip
{
var delay2, oldx, _x, onRelease, row, col, match_location, deck_location, score_location, timer_location, cardtype, side, _width, _y, _height, attachMovie, getNextHighestDepth, image, initial_width, removeMovieClip, gotoAndStop, mcXScale;
function Card () {
super();
}
function flip() {
trace("FLIPPING TIME CARD");
clearInterval(delay2);
destroy();
_level0.Game.Timer.Start();
}
function init(c_row, c_col, c_side, c_cardtype, seconds) {
if (seconds != null) {
this.seconds = seconds;
}
oldx = _x;
onRelease = myRelease;
row = c_row;
col = c_col;
match_location = _level0.Game.Match;
deck_location = _level0.Game.Deck;
score_location = _level0.Game.Score;
timer_location = _level0.Game.Timer;
cardtype = c_cardtype;
side = c_side;
_x = (_width + padding) * col;
_y = (_height + padding) * row;
attachMovie("image_" + cardtype, "image", getNextHighestDepth(), {_x:(_width / 2) * -1});
image._visible = false;
image._visible = false;
initial_width = _width;
}
function myRelease() {
flipUp();
delete onRelease;
if (cardtype == "modtime") {
timer_location.modTime(seconds);
_level0.Game.Timer.Stop();
delay2 = setInterval(this, "flip", 500);
} else {
match_location.CheckForMatch();
}
}
function destroy() {
(removeMovieClip());// not popped
trace("AFTER REMOVED " + this);
}
function deleteMovie() {
var _local2;
var _local3;
_local2 = new Sound();
_local3 = "snd_match";
_local2.attachSound(_local3);
_local2.start();
remove = "no";
onRelease = myRelease;
gotoAndStop("normal");
cardtype = undefined;
}
function flipDown() {
if (side == "up") {
mcXScale = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Regular.easeIn, 100, 0, 0.1, true);
mcXScale.onMotionFinished = function () {
var _local2 = this.obj;
this.obj.image._visible = false;
this.mcXScale = new mx.transitions.Tween(_local2, "_xscale", mx.transitions.easing.Regular.easeOut, 0, 100, 0.1, true);
};
side = "down";
remove = "no";
gotoAndStop(side);
}
onRelease = myRelease;
}
function flipUp() {
if (side == "down") {
side = "up";
trace("FLIPPING CARD UP");
mcXScale = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Regular.easeIn, 100, 0, 0.1, true);
mcXScale.onMotionFinished = function () {
var _local2 = this.obj;
_local2.image._visible = true;
this.mcXScale = new mx.transitions.Tween(_local2, "_xscale", mx.transitions.easing.Regular.easeOut, 0, 100, 0.1, true);
};
gotoAndStop(side);
}
delete onRelease;
}
function gameOver() {
side = "down";
flipUp();
delete onRelease;
}
var remove = "no";
var padding = 4;
var seconds = 0;
}
Symbol 360 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 361 MovieClip [__Packages.Score] Frame 0
class Score extends MovieClip
{
var _name, score, _parent;
function Score () {
super();
_name = "Score";
score = 0;
trace(_parent);
_parent.Match.setScoreLocation(this);
_parent.Deck.setScoreLocation(this);
}
function modScore(num) {
score = score + num;
}
function setScore(num) {
score = num;
}
function getScore() {
return(score);
}
}
Symbol 362 MovieClip [__Packages.Match] Frame 0
class Match extends MovieClip
{
var _name, gotoAndStop, remove, deck_location, score_location, delay, mcXScale, onRelease, again;
function Match () {
super();
_name = "Match";
gotoAndStop("normal");
remove = new Array();
}
function setDeckLocation(loc) {
deck_location = loc;
}
function setScoreLocation(loc) {
score_location = loc;
}
function flip() {
clearInterval(delay);
deck_location.turnDown();
}
function myRelease() {
deck_location.cards[check_card].remove = "yes";
if (old_check_card != "no") {
deck_location.cards[old_check_card].remove = "yes";
}
var _local3 = 0;
while (_local3 < deck_location.cards.length) {
if (deck_location.cards[_local3].remove == "yes") {
if (c > 0) {
if (c >= 2) {
points = points + matchpoints;
points = points * 1.5;
} else {
points = points + matchpoints;
}
}
c++;
deck_location.cards[_local3].deleteMovie();
mcXScale = new mx.transitions.Tween(deck_location.cards[_local3], "_alpha", mx.transitions.easing.Regular.easeIn, 100, 0, 0.2, true);
mcXScale.onMotionFinished = function () {
var _local2 = this.obj;
this.obj.image._visible = false;
_local2.destroy();
trace("MOVIE CLIP MXSCALE: " + _local2);
_level0.Game.TilesRemaining.getTilesRemaining();
};
gotoAndStop("normal");
}
_local3++;
}
c = 0;
delete onRelease;
_level0.Game.Score.modScore(points);
_global.roundScore = _global.roundScore + points;
trace("roudnscore: " + _global.roundScore);
trace(_level0.Game.Score.modScore);
points = 0;
check_card = "no";
again = "";
remove = undefined;
remove = new Array();
}
function CheckForMatch() {
again = "yes";
check_card = "no";
old_check_card = "no";
var _local2 = 0;
while (_local2 < deck_location.cards.length) {
if (((check_card != "no") && (deck_location.cards[_local2].side == "up")) && (((deck_location.cards[_local2].cardtype == deck_location.cards[check_card].cardtype) || (deck_location.cards[_local2].cardtype == "wild")) || (deck_location.cards[check_card].cardtype == "wild"))) {
if (deck_location.cards[check_card].cardtype == "wild") {
old_check_card = check_card;
check_card = _local2;
}
gotoAndStop("blink");
deck_location.cards[_local2].remove = "yes";
delete deck_location.cards[_local2].onRelease;
onRelease = myRelease;
again = "no";
}
if (((((check_card != "no") && (deck_location.cards[_local2].side == "up")) && (deck_location.cards[_local2].cardtype != deck_location.cards[check_card].cardtype)) && (deck_location.cards[_local2].cardtype != "wild")) && (deck_location.cards[check_card].cardtype != "wild")) {
gotoAndStop("normal");
delay = setInterval(this, "flip", 1000);
deck_location.noClick();
delete onRelease;
remove = new Array();
check_card = "no";
again = "no";
}
if (((deck_location.cards[_local2].side == "up") && (check_card == "no")) && (again != "no")) {
check_card = _local2;
}
_local2++;
}
}
function gameOver() {
gotoAndStop("normal");
delete onRelease;
}
var old_check_card = "no";
var check_card = "no";
var matchpoints = 20;
var c = 0;
var points = 0;
}
Symbol 363 MovieClip [__Packages.Timer] Frame 0
class Timer extends MovieClip
{
var time, time_readable, _name, minutes, seconds, birth, onEnterFrame;
function Timer () {
super();
time = 0;
time_readable = "00:00";
_name = "Timer";
trace("Timer: " + this);
}
function outOfTime() {
trace("You are out of time!");
_level0.Game.Deck.gameOver();
_level0.Game.Match.gameOver();
}
function TimeToString() {
minutes = String(Math.floor(time / 60));
((minutes.length == 1) ? ((minutes = "0" + minutes)) : null);
seconds = String(time % 60);
((seconds.length == 1) ? ((seconds = "0" + seconds)) : null);
return((minutes + ":") + seconds);
}
function setTime(num) {
time = num;
}
function getTime() {
return(time);
}
function modTime(num) {
time = time + num;
}
function Start() {
birth = getTimer();
onEnterFrame = function () {
if (getTimer() > (this.birth + 1000)) {
this.birth = getTimer();
this.time = this.time - 1;
if (this.time <= 0) {
this.outOfTime();
this.time_readable = "00:00";
delete this.onEnterFrame;
}
}
this.time_readable = this.TimeToString();
};
}
function Stop() {
delete onEnterFrame;
}
}
Symbol 139 Button
on (release) {
gotoAndPlay ("afterintro");
}
Instance of Symbol 151 MovieClip "logo" in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
trace(this);
this._visible = false;
}
Instance of Symbol 156 MovieClip "logo" in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
trace(this);
this._visible = false;
}
Instance of Symbol 161 MovieClip "logo" in Symbol 162 MovieClip Frame 1
onClipEvent (load) {
trace(this);
this._visible = false;
}
Instance of Symbol 166 MovieClip "logo" in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
trace(this);
this._visible = false;
}
Symbol 175 Button
on (press) {
help._visible = true;
help.gotoAndPlay("open");
}
Symbol 179 Button
on (release) {
if (url) {
getURL (url);
} else if (loc) {
_global.loc = loc;
_level0.trans.play();
} else if (special) {
_parent._parent.gotoAndPlay("homeload");
}
}
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut, dragOut) {
gotoAndPlay ("out");
}
on (press) {
gotoAndPlay ("down");
}
Symbol 190 Button
on (rollOver) {
gotoAndStop ("over");
}
on (press) {
gotoAndStop ("down");
}
on (release) {
gotoAndStop ("selected");
}
on (dragOut) {
gotoAndStop ("up");
}
on (rollOut) {
gotoAndStop ("up");
}
Symbol 195 MovieClip Frame 1
_parent.levelButtons.push(this);
var id = _parent.levelButtons.length;
if (id == 1) {
gotoAndStop ("selected");
} else {
gotoAndStop ("up");
}
if (id > 3) {
color = new Color(circle);
color.setRGB(5906779);
}
if (id > 7) {
color = new Color(circle);
color.setRGB(10496106);
}
Symbol 195 MovieClip Frame 41
if (_global.level == 0) {
} else {
(_parent.levelButtons[_global.level - 1].gotoAndStop("up"));// not popped
}
_global.level = this.id;
Symbol 227 MovieClip Frame 1
var levelButtons = [];
_global.level = 0;
_global.levelcount = 1;
onMouseMove = function () {
if ((((_xmouse < 0) || (_xmouse > _width)) || (_ymouse < 0)) || (_ymouse > _height)) {
_parent.gotoAndStop("up");
}
};
Symbol 227 MovieClip Frame 21
Symbol 227 MovieClip Frame 70
stop();
Symbol 228 MovieClip Frame 9
stop();
Symbol 228 MovieClip Frame 19
stop();
Symbol 228 MovieClip Frame 29
stop();
Symbol 228 MovieClip Frame 39
stop();
Symbol 233 Button
on (release) {
_parent.gotoAndStop("choose");
}
Symbol 273 Button
on (release) {
getURL ("javascript:MM_openBrWindow('/games/pop_up.html','Party_Points','width=433,height=309,scrollbars=no',433,309)");
}
Symbol 274 MovieClip Frame 1
help._visible = false;
Symbol 274 MovieClip Frame 396
stop();
Symbol 279 MovieClip Frame 1
var bratzArray;
bratzArray = new Array();
Instance of Symbol 278 MovieClip "titleimage" in Symbol 279 MovieClip Frame 26
onClipEvent (load) {
trace(this);
}
Instance of Symbol 152 MovieClip "Cloe" in Symbol 279 MovieClip Frame 33
onClipEvent (load) {
_parent.bratzArray.push(this);
onRelease = function () {
_global.brat = this._name;
_global.brat_mc = this;
_level0.Choose.Cloe.logo._visible = true;
_level0.Choose.titleimage._visible = false;
var _local7 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Regular.easeOut, _xscale, _xscale + 10, 1, true);
var _local8 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeOut, _x, 0, 1, true);
var _local6 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Regular.easeOut, _yscale, _yscale + 10, 1, true);
_local6.onMotionFinished = function () {
trace("ALPHA");
var _local3 = new mx.transitions.Tween(_global.brat_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 1, true);
_local3.onMotionFinished = function () {
trace("STARTING GAME");
_parent._parent.gotoAndStop("game");
};
};
var _local4 = 0;
while (_local4 < _parent.bratzArray.length) {
if (_parent.bratzArray[_local4] != this) {
_parent.bratzArray[_local4].destroy();
}
_local4++;
}
delete onRelease;
};
var destroy = function () {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if ((_alpha - 10) < 10) {
_visible = false;
delete onEnterFrame;
}
};
};
}
Instance of Symbol 167 MovieClip "Jade" in Symbol 279 MovieClip Frame 36
onClipEvent (load) {
_parent.bratzArray.push(this);
onRelease = function () {
_global.brat = this._name;
_global.brat_mc = this;
_level0.Choose.Jade.logo._visible = true;
_level0.Choose.titleimage._visible = false;
var _local7 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Regular.easeOut, _xscale, _xscale + 10, 1, true);
var _local8 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeOut, _x, 0, 1, true);
var _local6 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Regular.easeOut, _yscale, _yscale + 10, 1, true);
_local6.onMotionFinished = function () {
trace("ALPHA");
var _local3 = new mx.transitions.Tween(_global.brat_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 1, true);
_local3.onMotionFinished = function () {
trace("STARTING GAME");
_parent._parent.gotoAndStop("game");
};
};
var _local4 = 0;
while (_local4 < _parent.bratzArray.length) {
if (_parent.bratzArray[_local4] != this) {
_parent.bratzArray[_local4].destroy();
}
_local4++;
}
delete onRelease;
};
var destroy = function () {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if ((_alpha - 10) < 10) {
_visible = false;
delete onEnterFrame;
}
};
};
}
Instance of Symbol 157 MovieClip "Yasmin" in Symbol 279 MovieClip Frame 39
onClipEvent (load) {
_parent.bratzArray.push(this);
onRelease = function () {
_global.brat = this._name;
_global.brat_mc = this;
_level0.Choose.Yasmin.logo._visible = true;
_level0.Choose.titleimage._visible = false;
var _local7 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Regular.easeOut, _xscale, _xscale + 10, 1, true);
var _local8 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeOut, _x, 0, 1, true);
var _local6 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Regular.easeOut, _yscale, _yscale + 10, 1, true);
_local6.onMotionFinished = function () {
trace("ALPHA");
var _local3 = new mx.transitions.Tween(_global.brat_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 1, true);
_local3.onMotionFinished = function () {
trace("STARTING GAME");
_parent._parent.gotoAndStop("game");
};
};
var _local4 = 0;
while (_local4 < _parent.bratzArray.length) {
if (_parent.bratzArray[_local4] != this) {
_parent.bratzArray[_local4].destroy();
}
_local4++;
}
delete onRelease;
};
var destroy = function () {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if ((_alpha - 10) < 10) {
_visible = false;
delete onEnterFrame;
}
};
};
}
Instance of Symbol 162 MovieClip "Sasha" in Symbol 279 MovieClip Frame 42
onClipEvent (load) {
_parent.bratzArray.push(this);
onRelease = function () {
_global.brat = this._name;
_global.brat_mc = this;
_level0.Choose.Sasha.logo._visible = true;
_level0.Choose.titleimage._visible = false;
var _local7 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Regular.easeOut, _xscale, _xscale + 10, 1, true);
var _local8 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeOut, _x, 0, 1, true);
var _local6 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Regular.easeOut, _yscale, _yscale + 10, 1, true);
_local6.onMotionFinished = function () {
trace("ALPHA");
var _local3 = new mx.transitions.Tween(_global.brat_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 1, true);
_local3.onMotionFinished = function () {
trace("STARTING GAME");
_parent._parent.gotoAndStop("game");
};
};
var _local4 = 0;
while (_local4 < _parent.bratzArray.length) {
if (_parent.bratzArray[_local4] != this) {
_parent.bratzArray[_local4].destroy();
}
_local4++;
}
delete onRelease;
};
var destroy = function () {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if ((_alpha - 10) < 10) {
_visible = false;
delete onEnterFrame;
}
};
};
}
Symbol 279 MovieClip Frame 58
stop();
Instance of Symbol 58 MovieClip [scoreLoad] "scoreLoad" in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
function play() {
score = _level0.Game.Score.getScore();
_global.FinalScore = this.score;
}
var score = 0;
this.play();
}
Symbol 292 Button
on (press) {
if (_global.level == 11) {
_parent.gotoAndPlay("ending");
} else {
_level0.Game.Stats._visible = false;
_level0.Game.Deck();
_level0.Game.Levelbar.updateLevel();
_level0.Game.Deck.populateCards();
}
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
var intervalID;
loadStats = function () {
trace("loadStats");
this._visible = true;
clearInterval(intervalID);
matches_rem = _level0.Game.TilesRemaining.matches_rem;
if (matches_rem == 0) {
_global.level++;
if (_global.level == 11) {
button = "end game";
} else {
button = "next level";
}
failed_text._visible = false;
time_bonus._visible = true;
penalty._visible = true;
penalty.penaltyLoad.play();
score.scoreLoad.play();
time_bonus.time_bonusLoad.play();
complete._visible = true;
_global.roundScore = 0;
} else {
trace("roudnscore: " + _global.roundScore);
trace("roundscore*-1: " + (_global.roundScore * -1));
_level0.Game.Score.modScore(_global.roundScore * -1);
penalty.penaltyLoad.play();
score.scoreLoad.play();
time_bonus.time_bonusLoad.play();
button = "try again";
failed_text._visible = true;
time_bonus._visible = false;
penalty._visible = false;
complete._visible = false;
failed_text.gotoAndPlay("load");
_global.roundScore = 0;
}
play();
};
trace("onEnterFrame");
intervalID = setInterval(this, "loadStats", 1500);
trace(intervalID);
stop();
Symbol 293 MovieClip Frame 80
stop();
Symbol 298 MovieClip [Timer] Frame 1
#initclip 20
Object.registerClass("Timer", Timer);
#endinitclip
Symbol 301 MovieClip [Score] Frame 1
#initclip 18
Object.registerClass("Score", Score);
#endinitclip
Symbol 308 MovieClip [Match] Frame 1
#initclip 19
Object.registerClass("Match", Match);
#endinitclip
Symbol 310 MovieClip Frame 1
gotoAndStop(_global.brat);
Symbol 318 Button
on (release) {
_parent.gotoAndPlay("intro");
}
Symbol 323 Button
on (press) {
_level0.Game.Deck.pause();
_level0.Game.help.gotoAndPlay("open");
_level0.Game.help._visible = true;
}
Symbol 331 Button
on (press) {
_level0.Game.Deck.pause();
_level0.Game.help.gotoAndPlay("open");
_level0.Game.help._visible = true;
}
Symbol 333 Button
on (release) {
if (button_state == "Resume") {
_level0.Game.Deck.pause();
button_state = "Pause";
} else {
_level0.Game.Deck.resume();
button_state = "Resume";
}
}
Symbol 335 Button
on (press) {
trace("MUSIC OBJECT: " + _level0.music);
trace("SOUND STATE: " + sound);
if (sound == "music off") {
_level0.music.stop();
sound = "music on";
} else {
sound = "music off";
_level0.music.start(null, 9999);
}
}
Symbol 336 Button
on (release) {
trace(button_state);
if (button_state == "Resume") {
_level0.Game.Deck.resume();
button_state = "Pause";
} else {
_level0.Game.Deck.pause();
button_state = "Resume";
}
}
Symbol 337 MovieClip Frame 1
_level0.Game.Levelbar.updateLevel();
var sound = "music off";
button_state = "Pause";
Instance of Symbol 115 MovieClip [Help] "help" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
trace(this);
}
on (press) {
this.gotoAndPlay("close");
}
Instance of Symbol 293 MovieClip "Stats" in Symbol 337 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
trace(this);
}
Symbol 337 MovieClip Frame 64
stop();
Symbol 337 MovieClip Frame 95
_level0.gotoAndPlay("ending");
Instance of Symbol 339 MovieClip "scoreLoad" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
function play() {
score = _global.FinalScore;
}
var score = 0;
this.play();
}
Symbol 349 Button
on (release) {
_parent.gotoAndPlay("intro");
}
Symbol 350 MovieClip Frame 63
stop();