Frame 1
function checkForSwears(str) {
trace("swearcheck");
var _local2 = 0;
while (_local2 < _global.swear_List.length) {
if (str.firstIndexOfString(_global.swear_List[_local2]) >= 0) {
return(true);
}
_local2++;
}
return(false);
}
onEnterFrame = function () {
if ((getBytesLoaded() / getBytesTotal()) == 1) {
_global.Diamondz = new Diamondz();
if (_global.Diamondz.exportPlayerList().length > 0) {
gotoAndStop ("landing2");
} else {
gotoAndStop ("landing1");
}
delete onEnterFrame;
}
};
stop();
String.prototype.firstIndexOfString = function (word) {
if (this.length >= word.length) {
var _local3 = 0;
while (_local3 < this.length) {
if (String(word.charAt(0)).toLowerCase() == String(this.charAt(_local3)).toLowerCase()) {
var _local2 = 0;
while (_local2 < this.length) {
if (String(word.charAt(_local2)).toLowerCase() == String(this.charAt(_local3 + _local2)).toLowerCase()) {
if (_local2 == (word.length - 1)) {
return(((_local3 + _local2) - word.length) + 1);
}
} else {
break;
}
_local2++;
}
}
_local3++;
}
}
return(-1);
};
var swears = new String("adolph,hitler,castrate,camel,peepee,anal,fuck,intercourse,nazi,pubic,orgy,rape,sex,nig,whore,phuck,phuk,asphinct,ass,biteme,vd,btch,butt,fuk,clit,cllt,poop,niple,bastard,basterd,nigg,biach,biatch,bicht,fuq,balls,booty,butthole,cock,dick,dik,gay,vagi,niglet,nigr,nigore,juicynut,fux,lesbian,nigger,nutsack,schlong,slut,tits,wang,wood,biotch,bitch,bitch,whore,prick,biyotch,blowjob,bltch,boner,bum,buttbandit,buttbang,buttblister,buttboink,buttboy,buttbrain,buttbreath,buttburgelor,buttburglar,buttburglor,buttbut,buttcheek,buttcheese,buttcrack,buttcrap,buttcrust,buttface,buttfart,buttfloss,buttfuc,buttfuck,buttfugly,buttfuk,buttfuz,buttgoblin,buttgrease,buttguy,butthair,butthead,butthole,butholenginer,buttholesurfer,buttholio,butthymen,buttitch,buttjuice,buttkice,buttkick,buttkik,buttkiss,buttknock,buttlick,buttliquor,buttlord,buttlove,buttluv,buttman,buttmonkey,buttmunch,buttnaked,buttnugget,buttnut,buttpick,buttpirate,buttplug,buttpoop,buttrape,buttsex,buttslam,buttslut,buttsmack,buttsniff,buttstain,buttsuck,buttwhore,buttwipe,cameljockey,castrate,charliesnif,cherrypop,chinesewhore,chingachgook,chink,chinkill,chinkslope,chinksrgay,chinkssuck,chokingthechicken,clit,clitlick,clitoral,clitorious,clitoris,cock,cockandball,cockbite,cockboy,cockface,cockhead,cocklick,cocknball,cocksmoke,cocksniff,cocksuck,cocktease,coksuck,condomeat,condomlick,condommunch,condomsniff,coochie,coonfuck,crackwhore,crazychink,crazyjap,creamycunt,creamyknick,creamypant,crotchsniff,crotchwatch,cuckmysock,cum,cumbubble,cumbucket,cumburp,cumgargle,cumguzzle,cumindabum,cumlick,cummbubble,cumofsomeguy,cumonme,cumonmytummy,cumonu,cumquat,cumsalot,cumshot,cumslut,cumstain,cumswallow,cunalingus,cungalingus,cunnilingus,cunningilus,cunny,cunt,cuntface,cunthead,cuntlick,cuntlip,cuntylip,dasskick,dicckweed,dicface,dichead,dick,dickbrain,dickforabrain,dickhead,dicklick,dickwad,dickweed,dicwad,dik,dike,dildo,dlldo,doggystyle,douchebag,dumbass,fag,faggot,fannybatter,fannycream,fannyfart,fannyhair,fannyjuice,fatass,fcuk,fecalhead,fellatio,flameinghomo,fock,fothermuck,fucayou,fuccer,fuccwitme,fucd,fucface,fuchead,fuck,fuckboy,fuckcoons,fuckedsideway,fuckedup,fuckedupanddown,fuckedupndown,fuckface,fuckgm,fuckhead,fuckhole,fuckingyamom,fuckinstoned,fuckman,fuckme,fuckmehard,fuckmyass,fuckmonkey,fuckpirate,fucknut,fuckoff,fuckshit,fucku,fuckubitch,fuckup,fuckymamma,fuckyou,fuckyoucock,fuckyoucunt,fuckyougm,fuckyouii,fucoff,fucq,fucqdat,fucqu,fuct,fuctup,fucxyou,fucya,fucyou,fucyoubich,fudgehole,fudgepack,fudpuck,fugm,fugmpuke,fuhq,fuk,fukad,fukaduck,fukahire,fukallyou,fukayouho,fukc,fukchop,fukdabitch,fukdabtch,fukdischit,fukead,fukedatbirth,fukedup,fukedyomom,fukengruven,fukengruvin,fukface,fukfest,fukhole,fukinbad,fukingfisher,fukinggayman,fukinggook,fukingjap,fukingroovin,fukingulg,fukinlag,fukiniger,fukinpimp,fukinrapist,fukit,fukjap,fukhead,fukknut,fukkyou,fukme,fukmegood,fukmerun,fukmyass,fuknclown,fukndork,fukngruv,fukngrv,fuknklown,fuknmonke,fukntheif,fuknthief,fuknurmom,fuknut,fukoff,fukslut,fuksuckblow,fukter,fuku,fukuall,fukualso,fukuashole,fukubiatch,fukubizzach,fukubyatch,fukufuku,fukuinyour,fukumen,fukuo,fukuoka,fukup,fukuppl,fukusima,fukusuk,fukuup,fukuusuck,fukyah,fukyallmofo,fukyermom,fukyew,fukyoass,fukyou,fukyouanddie,fukyouus,fumonkey,funkynegro,fuq,fuqbich,fuqbiotch,fuqew,fuqfugu,fuqnut,fuqoff,fuqu,fuque,futhermucker,futtbuck,fuvkmehard,fuvku,fuxjoo,fuxkyou,fuxyou,fyuocuk,gangbang,gangrape,gayrape,gaywad,goatfuck,goddam,gook,hairyclamb,hitler,honkey,hoochiemom,hughboobs,hugherection,hughgass,hughgdlck,hughgkoch,hughgrect,hughgrekshon,hughgrekshyn,hughgshaft,hughjardon,hughjas,hughjassole,hughjaynus,hughjaz,hughjorgan,hughjorgen,iloveboobs,japhate,japkill,japkillerusa,jerkoff,jewbag,jewboy,jewboynigger,jewishnazi,jewishwhore,jiz,killaniga,kunt,lickalotpuss,lickatit,lickball,lickemball,lickitgood,lickithard,lickityoufuc,lickmebalz,lickmecock,lickmyanus,lickmyass,lickmyball,lickmycock,lickmycrack,lickmycrotch,lickmynad,lickmynut,lickmyownpee,lickmysack,lickmywetbox,likmekok,likmiclit,likmybut,masturbate,moelester,motherfuck,mutherfock,mycock,mydick,nazijewraper,naziskinhead,niga,nigahbytch,nigaretto,nigatrash,nigazbiotch,nigbeater,nigerbeater,nigerman,nigga,niggaboo,niggafag,niggah,nigge,nigghaz,niggher,niggkilla,niggor,niggr,niggrian,nigguh,niggurs,niggy,nigiro,niglet,nigletbard,nigletmaster,nigofger,nigore,nigrkill,nigromance,nigz,nipalicious,nipplelicker,penis,pinktaco,pootang,prick,punkass,pussie,pussy,pussyhole,pussylick,pussylip,pussypound,pyropussy,queer,raghead,rape,rapeme,rectalprobe,rectum,schit,schithead,schitngrin,schitzngrin,scrotum,semen,shiet,shit,shite,shiteat,shithead,shitman,shitstab,sitonmyface,slut,slutass,slutznwhore,snatch,sperm,spermburp,spermpants,spick,spooge,spoogebob,suckme,suckmydick,sucmybawl,supabiatch,tit,twat,vageyenuh,vagina,vaginal,vaginallip,vaginuh,vagiskin,wellhung,whore,boob,penas,nipple");
_global.swear_List = swears.split(",");
Frame 11
Frame 51
var mcll = new Object();
mcll.onLoadProgress = function (target, bl, bt) {
target._parent.percent = Math.round((bl / bt) * 100) + "%";
};
mcll.onLoadComplete = function (target) {
target._parent.percent = "";
};
var mcl = new MovieClipLoader();
mcl.addListener(mcll);
mcl.loadClip("concentration.swf", Holder);
var percent = "0%";
Frame 71
Array.prototype.popById = function (id) {
var _local4;
var _local3 = [];
var _local2 = 0;
while (_local2 < this.length) {
if (_local2 != id) {
_local3.push(this[_local2]);
} else {
_local4 = this[_local2];
}
_local2++;
}
if (!_local4) {
return(false);
}
while (this.length) {
this.pop();
}
_local2 = 0;
while (_local2 < _local3.length) {
this.push(_local3[_local2]);
_local2++;
}
trace(_local4);
return(_local4);
};
Symbol 7 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 7 MovieClip Frame 11
this.cost = 10;
Symbol 7 MovieClip Frame 21
this.cost = 10;
Symbol 7 MovieClip Frame 31
this.cost = 20;
Symbol 7 MovieClip Frame 41
this.cost = 20;
Symbol 17 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 17 MovieClip Frame 11
this.cost = 10;
Symbol 17 MovieClip Frame 21
this.cost = 10;
Symbol 17 MovieClip Frame 31
this.cost = 20;
Symbol 17 MovieClip Frame 41
this.cost = 20;
Symbol 23 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 23 MovieClip Frame 11
this.cost = 10;
Symbol 23 MovieClip Frame 21
this.cost = 10;
Symbol 23 MovieClip Frame 31
this.cost = 20;
Symbol 23 MovieClip Frame 41
this.cost = 20;
Symbol 29 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 29 MovieClip Frame 11
this.cost = 10;
Symbol 29 MovieClip Frame 21
this.cost = 10;
Symbol 29 MovieClip Frame 31
this.cost = 20;
Symbol 29 MovieClip Frame 41
this.cost = 20;
Symbol 35 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 35 MovieClip Frame 11
this.cost = 10;
Symbol 35 MovieClip Frame 21
this.cost = 10;
Symbol 35 MovieClip Frame 31
this.cost = 20;
Symbol 35 MovieClip Frame 41
this.cost = 20;
Symbol 41 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 41 MovieClip Frame 11
this.cost = 10;
Symbol 41 MovieClip Frame 21
this.cost = 10;
Symbol 41 MovieClip Frame 31
this.cost = 20;
Symbol 41 MovieClip Frame 41
this.cost = 20;
Symbol 47 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 47 MovieClip Frame 11
this.cost = 10;
Symbol 47 MovieClip Frame 21
this.cost = 10;
Symbol 47 MovieClip Frame 31
this.cost = 20;
Symbol 47 MovieClip Frame 41
this.cost = 20;
Symbol 53 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 53 MovieClip Frame 11
this.cost = 10;
Symbol 53 MovieClip Frame 21
this.cost = 10;
Symbol 53 MovieClip Frame 31
this.cost = 20;
Symbol 53 MovieClip Frame 41
this.cost = 20;
Symbol 59 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 59 MovieClip Frame 11
this.cost = 10;
Symbol 59 MovieClip Frame 21
this.cost = 10;
Symbol 59 MovieClip Frame 31
this.cost = 20;
Symbol 59 MovieClip Frame 41
this.cost = 20;
Symbol 60 MovieClip Frame 1
var cost = 0;
if (_parent.setting) {
this.gotoAndStop(_parent.setting);
}
stop();
Symbol 60 MovieClip Frame 11
this.cost = 30;
Symbol 60 MovieClip Frame 21
this.cost = 10;
Symbol 60 MovieClip Frame 31
this.cost = 20;
Symbol 60 MovieClip Frame 41
this.cost = 20;
Symbol 60 MovieClip Frame 51
this.cost = 10;
Symbol 60 MovieClip Frame 61
this.cost = 10;
Symbol 60 MovieClip Frame 71
this.cost = 15;
Symbol 60 MovieClip Frame 81
this.cost = 10;
Symbol 60 MovieClip Frame 91
this.cost = 15;
Symbol 73 MovieClip Frame 1
function changeSize(size) {
this._xscale = (size / 100) * this.default_size;
this._yscale = this._xscale;
}
var default_size = this._xscale;
if (_parent._parent.gem) {
this.gotoAndStop(_parent._parent.gem);
}
this.changeSize(_parent.size);
_parent.gems.push(this);
stop();
Symbol 73 MovieClip Frame 11
this.cost = 20;
Symbol 73 MovieClip Frame 21
this.cost = 10;
Symbol 73 MovieClip Frame 31
this.cost = 30;
Symbol 73 MovieClip Frame 41
this.cost = 20;
Symbol 73 MovieClip Frame 51
this.cost = 30;
Symbol 73 MovieClip Frame 61
this.cost = 10;
Symbol 74 MovieClip Frame 1
function changeGem(label) {
var _local2 = 0;
while (_local2 < this.gems.length) {
this.gems[_local2].gotoAndStop(label);
_local2++;
}
}
function changeSize(size) {
this.size = size;
var _local2 = 0;
while (_local2 < this.gems.length) {
this.gems[_local2].changeSize(size);
_local2++;
}
}
function getCost() {
var _local2;
_local2 = this.cost;
_local2 = _local2 + this.Gems.cost;
return(_local2);
}
function setHue(percent) {
angle = percent * 360;
angle = angle * (Math.PI/180);
var _local3 = Math.cos(angle);
var _local4 = Math.sin(angle);
var _local7 = 0.213;
var _local6 = 0.715;
var _local5 = 0.072;
var _local2 = new Array();
_local2 = _local2.concat([(_local7 + (_local3 * (1 - _local7))) + (_local4 * (-_local7)), (_local6 + (_local3 * (-_local6))) + (_local4 * (-_local6)), (_local5 + (_local3 * (-_local5))) + (_local4 * (1 - _local5)), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * 0.143), (_local6 + (_local3 * (1 - _local6))) + (_local4 * 0.14), (_local5 + (_local3 * (-_local5))) + (_local4 * -0.283), 0, 0]);
_local2 = _local2.concat([(_local7 + (_local3 * (-_local7))) + (_local4 * (-(1 - _local7))), (_local6 + (_local3 * (-_local6))) + (_local4 * _local6), (_local5 + (_local3 * (1 - _local5))) + (_local4 * _local5), 0, 0]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
_local2 = _local2.concat([0, 0, 0, 0, 1]);
var _local8 = new flash.filters.ColorMatrixFilter(_local2);
this.filters = new Array(_local8);
}
var cost;
var size;
var gems = new Array();
if (_parent.hue) {
this.setHue(_parent.hue);
}
if (_parent.gem_layout) {
this.gotoAndStop(_parent.gem_layout);
}
stop();
Symbol 74 MovieClip Frame 11
this.cost = 20;
Symbol 74 MovieClip Frame 21
this.cost = 20;
Symbol 74 MovieClip Frame 31
this.cost = 10;
Symbol 74 MovieClip Frame 41
this.cost = 20;
Symbol 74 MovieClip Frame 51
this.cost = 25;
Symbol 74 MovieClip Frame 61
this.cost = 25;
Symbol 74 MovieClip Frame 71
this.cost = 30;
Symbol 74 MovieClip Frame 81
this.cost = 15;
Symbol 74 MovieClip Frame 91
this.cost = 25;
Symbol 74 MovieClip Frame 101
this.cost = 30;
Symbol 74 MovieClip Frame 111
this.cost = 30;
Symbol 74 MovieClip Frame 121
this.cost = 30;
Symbol 74 MovieClip Frame 131
this.cost = 30;
Symbol 74 MovieClip Frame 141
this.cost = 30;
Symbol 74 MovieClip Frame 151
this.cost = 30;
Symbol 74 MovieClip Frame 161
this.cost = 30;
Symbol 74 MovieClip Frame 171
this.cost = 30;
Symbol 74 MovieClip Frame 181
this.cost = 30;
Symbol 74 MovieClip Frame 191
this.cost = 30;
Symbol 74 MovieClip Frame 201
this.cost = 30;
Symbol 74 MovieClip Frame 211
this.cost = 30;
Symbol 74 MovieClip Frame 221
this.cost = 30;
Symbol 74 MovieClip Frame 231
this.cost = 30;
Symbol 74 MovieClip Frame 241
this.cost = 30;
Symbol 74 MovieClip Frame 251
this.cost = 30;
Symbol 74 MovieClip Frame 261
this.cost = 30;
Symbol 74 MovieClip Frame 271
this.cost = 30;
Symbol 74 MovieClip Frame 281
this.cost = 30;
Symbol 80 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 80 MovieClip Frame 11
this.cost = 10;
Symbol 80 MovieClip Frame 21
this.cost = 10;
Symbol 80 MovieClip Frame 31
this.cost = 20;
Symbol 80 MovieClip Frame 41
this.cost = 20;
Symbol 86 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 86 MovieClip Frame 11
this.cost = 10;
Symbol 86 MovieClip Frame 21
this.cost = 10;
Symbol 86 MovieClip Frame 31
this.cost = 20;
Symbol 86 MovieClip Frame 41
this.cost = 20;
Symbol 92 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 92 MovieClip Frame 11
this.cost = 10;
Symbol 92 MovieClip Frame 21
this.cost = 10;
Symbol 92 MovieClip Frame 31
this.cost = 20;
Symbol 92 MovieClip Frame 41
this.cost = 20;
Symbol 98 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 98 MovieClip Frame 11
this.cost = 10;
Symbol 98 MovieClip Frame 21
this.cost = 10;
Symbol 98 MovieClip Frame 31
this.cost = 20;
Symbol 98 MovieClip Frame 41
this.cost = 20;
Symbol 104 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 104 MovieClip Frame 11
this.cost = 10;
Symbol 104 MovieClip Frame 21
this.cost = 10;
Symbol 104 MovieClip Frame 31
this.cost = 20;
Symbol 104 MovieClip Frame 41
this.cost = 20;
Symbol 110 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 110 MovieClip Frame 11
this.cost = 10;
Symbol 110 MovieClip Frame 21
this.cost = 10;
Symbol 110 MovieClip Frame 31
this.cost = 20;
Symbol 110 MovieClip Frame 41
this.cost = 20;
Symbol 116 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 116 MovieClip Frame 11
this.cost = 10;
Symbol 116 MovieClip Frame 21
this.cost = 10;
Symbol 116 MovieClip Frame 31
this.cost = 20;
Symbol 116 MovieClip Frame 41
this.cost = 20;
Symbol 122 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 122 MovieClip Frame 11
this.cost = 10;
Symbol 122 MovieClip Frame 21
this.cost = 10;
Symbol 122 MovieClip Frame 31
this.cost = 20;
Symbol 122 MovieClip Frame 41
this.cost = 20;
Symbol 128 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 128 MovieClip Frame 11
this.cost = 10;
Symbol 128 MovieClip Frame 21
this.cost = 10;
Symbol 128 MovieClip Frame 31
this.cost = 20;
Symbol 128 MovieClip Frame 41
this.cost = 20;
Symbol 129 MovieClip Frame 1
var cost = 0;
if (_parent.setting) {
this.gotoAndStop(_parent.setting);
}
stop();
Symbol 129 MovieClip Frame 11
this.cost = 30;
Symbol 129 MovieClip Frame 21
this.cost = 10;
Symbol 129 MovieClip Frame 31
this.cost = 20;
Symbol 129 MovieClip Frame 41
this.cost = 20;
Symbol 129 MovieClip Frame 51
this.cost = 10;
Symbol 129 MovieClip Frame 61
this.cost = 10;
Symbol 129 MovieClip Frame 71
this.cost = 15;
Symbol 129 MovieClip Frame 81
this.cost = 10;
Symbol 129 MovieClip Frame 91
this.cost = 15;
Symbol 136 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 136 MovieClip Frame 11
this.cost = 10;
Symbol 136 MovieClip Frame 21
this.cost = 10;
Symbol 136 MovieClip Frame 31
this.cost = 20;
Symbol 136 MovieClip Frame 41
this.cost = 20;
Symbol 142 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 142 MovieClip Frame 11
this.cost = 10;
Symbol 142 MovieClip Frame 21
this.cost = 10;
Symbol 142 MovieClip Frame 31
this.cost = 20;
Symbol 142 MovieClip Frame 41
this.cost = 20;
Symbol 148 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 148 MovieClip Frame 11
this.cost = 10;
Symbol 148 MovieClip Frame 21
this.cost = 10;
Symbol 148 MovieClip Frame 31
this.cost = 20;
Symbol 148 MovieClip Frame 41
this.cost = 20;
Symbol 154 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 154 MovieClip Frame 11
this.cost = 10;
Symbol 154 MovieClip Frame 21
this.cost = 10;
Symbol 154 MovieClip Frame 31
this.cost = 20;
Symbol 154 MovieClip Frame 41
this.cost = 20;
Symbol 160 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 160 MovieClip Frame 11
this.cost = 10;
Symbol 160 MovieClip Frame 21
this.cost = 10;
Symbol 160 MovieClip Frame 31
this.cost = 20;
Symbol 160 MovieClip Frame 41
this.cost = 20;
Symbol 165 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 165 MovieClip Frame 11
this.cost = 10;
Symbol 165 MovieClip Frame 21
this.cost = 10;
Symbol 165 MovieClip Frame 31
this.cost = 20;
Symbol 165 MovieClip Frame 41
this.cost = 20;
Symbol 171 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 171 MovieClip Frame 11
this.cost = 10;
Symbol 171 MovieClip Frame 21
this.cost = 10;
Symbol 171 MovieClip Frame 31
this.cost = 20;
Symbol 171 MovieClip Frame 41
this.cost = 20;
Symbol 177 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 177 MovieClip Frame 11
this.cost = 10;
Symbol 177 MovieClip Frame 21
this.cost = 10;
Symbol 177 MovieClip Frame 31
this.cost = 20;
Symbol 177 MovieClip Frame 41
this.cost = 20;
Symbol 181 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 181 MovieClip Frame 11
this.cost = 10;
Symbol 181 MovieClip Frame 21
this.cost = 10;
Symbol 181 MovieClip Frame 31
this.cost = 20;
Symbol 181 MovieClip Frame 41
this.cost = 20;
Symbol 182 MovieClip Frame 1
var cost = 0;
if (_parent.setting) {
this.gotoAndStop(_parent.setting);
}
stop();
Symbol 182 MovieClip Frame 11
this.cost = 30;
Symbol 182 MovieClip Frame 21
this.cost = 10;
Symbol 182 MovieClip Frame 31
this.cost = 20;
Symbol 182 MovieClip Frame 41
this.cost = 20;
Symbol 182 MovieClip Frame 51
this.cost = 10;
Symbol 182 MovieClip Frame 61
this.cost = 10;
Symbol 182 MovieClip Frame 71
this.cost = 15;
Symbol 182 MovieClip Frame 81
this.cost = 10;
Symbol 182 MovieClip Frame 91
this.cost = 15;
Symbol 189 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 189 MovieClip Frame 11
this.cost = 10;
Symbol 189 MovieClip Frame 21
this.cost = 10;
Symbol 189 MovieClip Frame 31
this.cost = 20;
Symbol 189 MovieClip Frame 41
this.cost = 20;
Symbol 195 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 195 MovieClip Frame 11
this.cost = 10;
Symbol 195 MovieClip Frame 21
this.cost = 10;
Symbol 195 MovieClip Frame 31
this.cost = 20;
Symbol 195 MovieClip Frame 41
this.cost = 20;
Symbol 199 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 199 MovieClip Frame 11
this.cost = 10;
Symbol 199 MovieClip Frame 21
this.cost = 10;
Symbol 199 MovieClip Frame 31
this.cost = 20;
Symbol 199 MovieClip Frame 41
this.cost = 20;
Symbol 205 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 205 MovieClip Frame 11
this.cost = 10;
Symbol 205 MovieClip Frame 21
this.cost = 10;
Symbol 205 MovieClip Frame 31
this.cost = 20;
Symbol 205 MovieClip Frame 41
this.cost = 20;
Symbol 211 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 211 MovieClip Frame 11
this.cost = 10;
Symbol 211 MovieClip Frame 21
this.cost = 10;
Symbol 211 MovieClip Frame 31
this.cost = 20;
Symbol 211 MovieClip Frame 41
this.cost = 20;
Symbol 217 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 217 MovieClip Frame 11
this.cost = 10;
Symbol 217 MovieClip Frame 21
this.cost = 10;
Symbol 217 MovieClip Frame 31
this.cost = 20;
Symbol 217 MovieClip Frame 41
this.cost = 20;
Symbol 223 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 223 MovieClip Frame 11
this.cost = 10;
Symbol 223 MovieClip Frame 21
this.cost = 10;
Symbol 223 MovieClip Frame 31
this.cost = 20;
Symbol 223 MovieClip Frame 41
this.cost = 20;
Symbol 229 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 229 MovieClip Frame 11
this.cost = 10;
Symbol 229 MovieClip Frame 21
this.cost = 10;
Symbol 229 MovieClip Frame 31
this.cost = 20;
Symbol 229 MovieClip Frame 41
this.cost = 20;
Symbol 235 MovieClip Frame 1
var cost = 0;
if (_parent._parent.color) {
this.gotoAndStop(_parent._parent.color);
}
stop();
Symbol 235 MovieClip Frame 11
this.cost = 10;
Symbol 235 MovieClip Frame 21
this.cost = 10;
Symbol 235 MovieClip Frame 31
this.cost = 20;
Symbol 235 MovieClip Frame 41
this.cost = 20;
Symbol 236 MovieClip Frame 1
var cost = 0;
if (_parent.setting) {
this.gotoAndStop(_parent.setting);
}
stop();
Symbol 236 MovieClip Frame 11
this.cost = 30;
Symbol 236 MovieClip Frame 21
this.cost = 10;
Symbol 236 MovieClip Frame 31
this.cost = 20;
Symbol 236 MovieClip Frame 41
this.cost = 20;
Symbol 236 MovieClip Frame 51
this.cost = 10;
Symbol 236 MovieClip Frame 61
this.cost = 10;
Symbol 236 MovieClip Frame 71
this.cost = 15;
Symbol 236 MovieClip Frame 81
this.cost = 10;
Symbol 236 MovieClip Frame 91
this.cost = 15;
Symbol 237 MovieClip Frame 1
function changeColor(label) {
this.color = label;
this.Setting.Color.gotoAndStop(this.color);
}
function changeGem(label) {
this.gem = label;
this.GemLayout.changeGem(this.gem);
}
function changeGemLayout(label) {
this.gem_layout = label;
if (this.type != "rings") {
while (this.GemLayout.gems.length) {
this.GemLayout.gems.pop();
}
}
this.GemLayout.gotoAndStop(this.gem_layout);
}
function changeHue(percent) {
this.hue = percent;
this.GemLayout.setHue(this.hue);
}
function changeSetting(label) {
this.setting = label;
this.Setting.gotoAndStop(this.setting);
}
function changeSize(size) {
this.GemLayout.size = size;
this.GemLayout.changeSize(size);
}
function changeType(label) {
this.type = label;
this.gotoAndStop(this.type);
}
function getCost() {
this.cost = 0;
this.cost = this.cost + this.Setting.cost;
this.cost = this.cost + this.Setting.Color.cost;
this.cost = this.cost + this.GemLayout.getCost();
this.cost = this.cost + Math.round(((this.GemLayout.size / 100) * this.GemLayout.Gems.default_size) / 2);
return(this.cost);
}
function exportItem() {
var _local2 = new Object();
_local2.type = this.type;
_local2.color = this.color;
_local2.gem = this.gem;
_local2.gem_layout = this.gem_layout;
_local2.setting = this.setting;
_local2.size = this.GemLayout.size;
_local2.hue = this.hue;
_local2.cost = this.getCost();
return(_local2);
}
function loadItem(obj) {
this.on_body = true;
for (var _local3 in obj) {
this[_local3] = obj[_local3];
}
this.refresh();
}
function refresh() {
this.changeType(this.type);
this.changeColor(this.color);
this.changeSetting(this.setting);
this.changeGemLayout(this.gem_layout);
this.changeGem(this.gem);
this.changeSize(this.size);
this.changeHue(this.hue);
}
function setDefault(type) {
if (!this.on_body) {
switch (type) {
case "rings" :
this.type = "rings";
this.gem_layout = "ring1";
this.setting = "setting1";
var _local2 = 20;
break;
case "bracelets" :
this.type = "bracelets";
this.gem_layout = "bracelet1";
this.setting = "setting1";
_local2 = 30;
break;
case "earings" :
this.type = "earings";
this.gem_layout = "earing1";
this.setting = "setting1";
_local2 = 30;
break;
case "necklaces" :
this.type = "necklaces";
this.gem_layout = "necklace1";
this.setting = "setting1";
_local2 = 30;
}
}
this.refresh();
}
var type = "rings";
var color = "color1";
var gem = "radiant";
var gem_layout = "ring1";
var setting = "setting1";
var size = 100;
var hue = 0;
var cost = 20;
var on_body = false;
if (_parent._name == "Character") {
this.stop();
this._visible = false;
} else if (_parent.image) {
this.loadItem(_parent.image);
} else {
this.refresh();
}
stop();
Symbol 237 MovieClip Frame 11
this.setDefault("rings");
Symbol 237 MovieClip Frame 21
this.setDefault("bracelets");
Symbol 237 MovieClip Frame 31
this.setDefault("earings");
Symbol 237 MovieClip Frame 41
this.setDefault("necklaces");
Symbol 238 MovieClip [CustomItem] Frame 1
function init() {
startPos = {x:this._x, y:this._y};
}
function backToInventory() {
this.stopDrag();
this._x = this.startPos.x;
this._y = this.startPos.y;
}
function deleteItem() {
if (_global.Diamondz.Jewelry[this.from_array].popById(this.id)) {
_global.Diamondz.points = _global.Diamondz.points + this.image.cost;
_global.Diamondz.saveGame();
removeMovieClip(this);
_parent.loadJewelry();
} else {
this.backToInventory();
}
}
var image;
var id;
var from_array;
var startPos;
var onPress = function () {
this.swapDepths(this._parent.getNextHighestDepth());
this.startDrag(false);
};
var onRelease = function () {
switch (this.image.type) {
case "rings" :
if (this.hitTest(_parent._parent._parent.LeftHand)) {
this.backToInventory();
_parent._parent._parent.LeftHand.assignItem(this.image);
} else if (this.hitTest(_parent._parent._parent.RightHand)) {
this.backToInventory();
_parent._parent._parent.RightHand.assignItem(this.image);
}
break;
case "bracelets" :
if (this.hitTest(_parent._parent._parent.LeftHand)) {
this.backToInventory();
_parent._parent._parent.LeftHand.assignItem(this.image);
} else if (this.hitTest(_parent._parent._parent.RightHand)) {
this.backToInventory();
_parent._parent._parent.RightHand.assignItem(this.image);
}
break;
case "earings" :
if (this.hitTest(_parent._parent._parent.Head)) {
this.backToInventory();
_parent._parent._parent.Head.assignItem(this.image);
}
break;
case "necklaces" :
if (!this.hitTest(_parent._parent._parent.Neck)) {
break;
}
this.backToInventory();
_parent._parent._parent.Neck.assignItem(this.image);
}
if (this.hitTest(_parent._parent._parent.TrashCan)) {
this.stopDrag();
this.deleteItem();
} else {
this.backToInventory();
}
};
this.init();
Symbol 249 MovieClip Frame 94
gotoAndPlay ("loop");
Symbol 250 MovieClip [ImageCapture] Frame 1
function save() {
trace(BitmapExporter.getStatus());
if (BitmapExporter.getStatus() == "idle") {
BitmapExporter.addEventListener("progress", this);
BitmapExporter.addEventListener("status", this);
BitmapExporter.addEventListener("complete", this);
BitmapExporter.saveBitmap(snapshot, "snapshot.jpg", "palette", 3, 70);
}
}
function cancel() {
BitmapExporter.cancel();
}
function progress(evt) {
percent = Math.round((evt.current / evt.total) * 100);
trace("Progress " + percent);
}
function complete(evt) {
percent = "100";
trace("Complete " + percent);
info_txt.text = ((((((("Full Size: " + (Math.floor(((snapshot.width * snapshot.height) * 400) / 1024) / 100)) + "K ") + "Compressed Size: ") + (Math.floor((((snapshot.width * snapshot.height) * 400) * evt.compressionRatio) / 1024) / 100)) + "K ") + "Ratio: ") + (Math.floor(evt.compressionRatio * 10000) / 100)) + "%";
trace("Image name: " + _global.imagename);
var _local5 = "http://games.bratz.com/diamondz/dbin.php";
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local3.uname = _global.newname;
_local3.age = _global.age;
_local3.hstate = _global.hstate;
_local3.picname = _global.imagename;
_local3.sendAndLoad(_local5, _local4, "POST");
_local4.onLoad = function (src) {
getURL ("http://games.bratz.com/diamondz/gallery.php");
};
removeMovieClip(this);
}
function status(evt) {
switch (evt.status) {
case "contacting server" :
trace("contacting server");
break;
case "idle" :
trace("idle");
}
}
BitmapExporter.gatewayURL = "http://games.bratz.com/diamondz/saveImage.php";
var percent = 0;
var snapshot = (new flash.display.BitmapData(Stage.width, Stage.height, false));
snapshot.draw(_global.End.Screeny);
this.save();
Symbol 250 MovieClip [ImageCapture] Frame 10
stop();
Symbol 253 Button
on (release) {
if (_global.Diamondz.deleteGame(this._name)) {
_parent.reload();
}
}
Symbol 257 Button
on (release) {
_global.Landing2.selected_player = this._name;
_global.player_name = this._name;
if (_global.Diamondz.loadGame(this._name)) {
if (_global.Diamondz.character == undefined) {
_parent._parent._parent.gotoAndStop("character_select");
} else {
_parent._parent._parent.gotoAndStop("main_menu");
}
}
}
Symbol 264 MovieClip Frame 1
function fade() {
if (_alpha < 10) {
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 0.5, true);
_local2.onMotionChanged = function () {
if (this.obj._alpha >= 80) {
if (this.obj.id == 3) {
nd = 0;
} else {
nd = int(this.obj.id) + 1;
}
this.obj._parent["Diamond" + nd].fade();
delete this.onMotionChanged;
}
};
} else {
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.None.easeNone, 100, 0, 0.5, true);
_local2.onMotionChanged = function () {
if (this.obj._alpha <= 20) {
if (this.obj.id == 3) {
nd = 0;
} else {
nd = int(this.obj.id) + 1;
}
this.obj._parent["Diamond" + nd].fade();
delete this.onMotionChanged;
}
};
}
}
id = String(this._name).substr(7);
_alpha = 0;
Symbol 265 MovieClip Frame 10
Diamond0.fade();
stop();
Symbol 682 MovieClip [__Packages.BitmapExporter] Frame 0
class BitmapExporter
{
static var instance, emptycount, lookup, dispatchEvent;
var originalCodepageSetting, bitmap, filename, jpegQuality, bitmapWidth, bitmapHeight, getpixel, saveMode, bitmask, uniqueID, pixels, palette, charlist, chars, connectionTimeoutID, service, retservice, lastX, lastY, sentBytes, nextLZWIndex, dct, LZWbuffer;
function BitmapExporter () {
mx.events.EventDispatcher.initialize(BitmapExporter);
initArrays();
}
static function saveBitmap(bitmap, filename, mode, lossBits, jpegQuality) {
return(getInstance()._saveBitmap(bitmap, filename, mode, lossBits, jpegQuality));
}
static function getStatus() {
return(getInstance().status);
}
static function resetStatus() {
getInstance().reset();
}
static function cancel() {
if (getInstance().getStatus() != "idle") {
getInstance().dropImageHandle();
getInstance().setStatus("cancelled");
}
}
static function getInstance() {
if (instance == undefined) {
instance = new BitmapExporter();
}
return(instance);
}
function _saveBitmap(_bitmap, _filename, mode, lossBits, _jpegQuality) {
if (((((status == "idle") && (_bitmap != null)) && (_bitmap.height > 0)) && (_bitmap.width > 0)) && (_filename != null)) {
originalCodepageSetting = System.useCodepage;
System.useCodepage = true;
bitmap = _bitmap;
filename = _filename;
jpegQuality = _jpegQuality;
bitmapWidth = bitmap.width;
bitmapHeight = bitmap.height;
getpixel = new String((bitmap.transparent ? "getPixel32" : "getPixel"));
if (mode == undefined) {
mode = "default";
}
saveMode = mode.toLowerCase();
lossBits = Math.floor(Number(lossBits));
if (isNaN(lossBits)) {
lossBits = 0;
}
if (lossBits < 0) {
lossBits = 0;
}
if (lossBits > 7) {
lossBits = 7;
}
bitmask = 255 - (Math.pow(2, lossBits) - 1);
bitmask = ((bitmask << 16) | (bitmask << 8)) | bitmask;
getImageHandle();
onScanProgress(0, "initializing");
return(true);
}
error("saveBitmap Arguments are not correct");
return(false);
}
function reset() {
if (uniqueID != null) {
dropImageHandle();
}
setStatus("idle");
busy = false;
System.useCodepage = originalCodepageSetting;
delete uniqueID;
delete saveMode;
delete filename;
delete jpegQuality;
delete pixels;
delete palette;
delete bitmapWidth;
delete bitmapHeight;
}
function initArrays() {
emptycount = Array();
var _local3 = 0;
while (_local3 < 256) {
emptycount[_local3++] = 0;
}
lookup = Array();
_local3 = 2;
while (_local3 < 256) {
lookup[_local3] = String.fromCharCode(_local3++);
}
var _local2 = String.fromCharCode(1);
lookup[0] = _local2 + _local2;
lookup[1] = _local2 + String.fromCharCode(2);
lookup[128] = _local2 + String.fromCharCode(3);
lookup[130] = _local2 + String.fromCharCode(4);
lookup[131] = _local2 + String.fromCharCode(5);
lookup[132] = _local2 + String.fromCharCode(6);
lookup[133] = _local2 + String.fromCharCode(7);
lookup[134] = _local2 + String.fromCharCode(8);
lookup[135] = _local2 + String.fromCharCode(9);
lookup[136] = _local2 + String.fromCharCode(10);
lookup[137] = _local2 + String.fromCharCode(11);
lookup[138] = _local2 + String.fromCharCode(12);
lookup[139] = _local2 + String.fromCharCode(13);
lookup[140] = _local2 + String.fromCharCode(14);
lookup[142] = _local2 + String.fromCharCode(15);
lookup[145] = _local2 + String.fromCharCode(16);
lookup[146] = _local2 + String.fromCharCode(17);
lookup[147] = _local2 + String.fromCharCode(18);
lookup[148] = _local2 + String.fromCharCode(19);
lookup[149] = _local2 + String.fromCharCode(20);
lookup[150] = _local2 + String.fromCharCode(21);
lookup[151] = _local2 + String.fromCharCode(22);
lookup[152] = _local2 + String.fromCharCode(23);
lookup[153] = _local2 + String.fromCharCode(24);
lookup[154] = _local2 + String.fromCharCode(25);
lookup[155] = _local2 + String.fromCharCode(26);
lookup[156] = _local2 + String.fromCharCode(27);
lookup[158] = _local2 + String.fromCharCode(28);
lookup[159] = _local2 + String.fromCharCode(29);
lookup[34] = _local2 + String.fromCharCode(30);
lookup[39] = _local2 + String.fromCharCode(31);
lookup[92] = _local2 + String.fromCharCode(32);
charlist = new String();
_local3 = 0;
while (_local3 < encodeBase) {
charlist = charlist + String.fromCharCode(_local3 + 128);
_local3++;
}
chars = charlist.split("");
}
function getImageHandle() {
setStatus("contacting server");
connectionTimeoutID = _global.setTimeout(this, "onConnectionTimeout", connectionTimeout);
service = new LoadVars();
retservice = new LoadVars();
service.mode = "getImageHandle";
service.width = bitmapWidth;
service.height = bitmapHeight;
service.success = 0;
retservice.onLoad = mx.utils.Delegate.create(this, onImageHandle);
service.sendAndLoad(gatewayURL, retservice, "POST");
}
function scanBitmap() {
if (status == "contacting server") {
setStatus("sending");
lastX = 0;
lastY = 0;
sentBytes = 0;
busy = false;
} else if (lastY == bitmapHeight) {
if (!busy) {
onScanProgress(0.95, "retrieving");
save();
} else {
_global.setTimeout(this, "scanBitmap", 50);
}
return(undefined);
}
var _local3;
var _local4 = lastY;
var _local17 = getTimer();
var _local14 = 0;
var _local21 = lastX;
onScanProgress(0.05 + (0.9 * (lastY / bitmapHeight)), "reading pixels");
pixels = Array();
switch (saveMode) {
case "turboscan" :
var _local13 = bitmapWidth * bitmapHeight;
_local4 = bitmapHeight - 1;
if (bitmap.transparent) {
do {
_local3 = bitmapWidth;
do {
_local13--;
_local3--;
pixels[_local13] = bitmap.getPixel32(_local3, _local4);
} while (_local3 > 0);
_local4--;
} while (_local4 > -1);
} else {
do {
_local3 = bitmapWidth;
do {
_local13--;
_local3--;
pixels[_local13] = bitmap.getPixel(_local3, _local4);
} while (_local3 > 0);
_local4--;
} while (_local4 > -1);
}
_local4 = bitmapHeight;
_local14 = _local4;
_local3 = bitmapWidth;
break;
case "fastscan" :
do {
_local3 = 0;
do {
pixels.push((bitmap[getpixel](_local3, _local4) & bitmask).toString(36));
_local3++;
} while (_local3 < bitmapWidth);
_local14++;
_local4++;
} while ((_local4 < bitmapHeight) && ((getTimer() - _local17) < timeslice));
break;
case "default" :
do {
_local3 = 0;
do {
pixels.push(bitmap[getpixel](_local3, _local4) & bitmask);
_local3++;
} while (_local3 < bitmapWidth);
_local14++;
_local4++;
} while ((_local4 < bitmapHeight) && ((getTimer() - _local17) < timeslice));
break;
case "lzw" :
initLZW();
do {
_local3 = 0;
do {
addLZWNumber(pixels, bitmap[getpixel](_local3, _local4) & bitmask);
_local3++;
} while (_local3 < bitmapWidth);
_local14++;
_local4++;
} while (((_local4 < bitmapHeight) && ((getTimer() - _local17) < timeslice)) && ((nextLZWIndex + bitmapWidth) < 65535));
closeLZW(pixels);
break;
case "palette" :
palette = Array();
var _local11 = new Object();
var _local18 = 0;
var _local16 = false;
var _local6 = 16;
var _local8 = 0;
var _local9 = Array();
var _local7;
var _local5;
var _local12;
do {
_local3 = lastX;
lastX = 0;
do {
_local7 = bitmap[getpixel](_local3, _local4) & bitmask;
if (_local11[_local7] == null) {
_local11[_local7] = palette.push(_local7) - 1;
}
_local12 = _local11[_local7];
_local5 = _local12 - _local18;
_local18 = _local12;
if ((_local5 < -32767) || (_local5 > 32767)) {
_local16 = true;
lastX = _local3;
if (_local6 < 16) {
_local9.push(_local8);
}
} else {
if (_local5 < 0) {
_local5 = _local5 + 65536;
}
_local8 = _local8 | (_local5 << _local6);
_local6 = _local6 - 16;
if (_local6 < 0) {
_local9.push(_local8);
_local6 = 16;
_local8 = 0;
}
}
} while ((!_local16) && ((_local3++) < bitmapWidth));
_local14++;
} while ((((!_local16) && ((_local4++) < bitmapHeight)) && ((_local9.length + palette.length) < blocksize)) && ((getTimer() - _local17) < timeslice));
if (!_local16) {
lastX = bitmapWidth;
if (_local6 < 16) {
_local9.push(_local8);
}
}
var _local15 = _local9[0];
var _local10 = 1;
var _local20 = _local9.length;
_local13 = 1;
while (_local13 < _local20) {
if (_local15 == _local9[_local13]) {
_local10++;
if (_local10 == 65536) {
pixels.push(2147549183, _local15);
_local10 = 1;
}
} else {
if (_local10 > 1) {
if (_local10 > 2) {
pixels.push(2147483648 | _local10);
} else {
pixels.push(_local15);
}
}
pixels.push(_local15);
_local10 = 1;
_local15 = _local9[_local13];
}
_local13++;
}
if (_local10 > 1) {
if (_local10 > 2) {
pixels.push(2147483648 | _local10);
} else {
pixels.push(_local15);
}
}
pixels.push(_local15);
break;
case "palettelzw" :
palette = Array();
_local11 = new Object();
_local18 = 0;
_local16 = false;
_local6 = 16;
_local8 = 0;
_local9 = Array();
var _local19 = 0;
initLZW();
do {
_local3 = lastX;
lastX = 0;
do {
_local7 = bitmap[getpixel](_local3, _local4) & bitmask;
if (_local11[_local7] == null) {
addLZWNumber(palette, _local7);
_local11[_local7] = _local19++;
}
_local12 = _local11[_local7];
_local5 = _local12 - _local18;
_local18 = _local12;
if ((_local5 < -32767) || (_local5 > 32767)) {
_local16 = true;
lastX = _local3;
if (_local6 < 16) {
_local9.push(_local8);
}
} else {
if (_local5 < 0) {
_local5 = _local5 + 65536;
}
_local8 = _local8 | (_local5 << _local6);
_local6 = _local6 - 16;
if (_local6 < 0) {
_local9.push(_local8);
_local6 = 16;
_local8 = 0;
}
}
} while (((!_local16) && ((_local3++) < bitmapWidth)) && ((nextLZWIndex + bitmapWidth) < 65535));
_local14++;
} while ((((!_local16) && ((_local4++) < bitmapHeight)) && ((_local9.length + palette.length) < blocksize)) && ((getTimer() - _local17) < timeslice));
closeLZW(palette);
if (!_local16) {
lastX = bitmapWidth;
if (_local6 < 16) {
_local9.push(_local8);
}
}
initLZW();
_local15 = _local9[0];
_local10 = 1;
_local20 = _local9.length;
_local13 = 1;
while (_local13 < _local20) {
if (_local15 == _local9[_local13]) {
_local10++;
if (_local10 == 65536) {
addLZWNumber(pixels, 2147549183);
addLZWNumber(pixels, _local15);
_local10 = 1;
}
} else {
if (_local10 > 1) {
if (_local10 > 2) {
addLZWNumber(pixels, 2147483648 | _local10);
} else {
addLZWNumber(pixels, _local15);
}
}
addLZWNumber(pixels, _local15);
_local10 = 1;
_local15 = _local9[_local13];
}
_local13++;
}
if (_local10 > 1) {
if (_local10 > 2) {
addLZWNumber(pixels, 2147483648 | _local10);
} else {
addLZWNumber(pixels, _local15);
}
}
addLZWNumber(pixels, _local15);
closeLZW(pixels);
}
addPixelBlock(_local21, lastX, lastY, _local14);
lastY = _local4;
lastX = lastX % bitmapWidth;
}
function dropImageHandle() {
service = new LoadVars();
retservice = new LoadVars();
service.mode = "dropImageHandle";
service.uniqueID = uniqueID;
service.success = 0;
retservice.onLoad = mx.utils.Delegate.create(this, onDropImageHandle);
service.sendAndLoad(gatewayURL, retservice, "POST");
}
function addPixelBlock(xStart, xEnd, top, lines) {
if (!busy) {
onScanProgress(0.05 + (0.9 * ((top + lines) / bitmapHeight)), "sending");
busy = true;
service = new LoadVars();
retservice = new LoadVars();
service.mode = saveMode;
service.success = 0;
service.sentBytes = 0;
service.uniqueID = uniqueID;
service.top = top;
service.width = bitmapWidth;
service.lines = lines;
switch (saveMode) {
case "turboscan" :
case "fastscan" :
service.bitmapString = pixels.join(",");
break;
case "default" :
service.bitmapString = arrayToString(pixels, 24);
break;
case "lzw" :
service.bitmapString = arrayToString(pixels, 16);
break;
case "palette" :
service.xStart = xStart;
service.xEnd = xEnd;
service.paletteString = arrayToString(palette, 24);
service.bitmapString = arrayToString(pixels, 32);
break;
case "palettelzw" :
service.xStart = xStart;
service.xEnd = xEnd;
service.paletteString = arrayToString(palette, 16);
service.bitmapString = arrayToString(pixels, 16);
}
retservice.onLoad = mx.utils.Delegate.create(this, onAddPixelBlock);
service.sendAndLoad(gatewayURL, retservice, "POST");
_global.setTimeout(this, "scanBitmap", 50);
} else {
onScanProgress(0.05 + (0.9 * ((top + lines) / bitmapHeight)), "Waiting for Server...");
_global.setTimeout(this, "addPixelBlock", 100, xStart, xEnd, top, lines);
}
}
function save() {
if (status == "sending") {
delete pixels;
delete palette;
setStatus("retrieving");
service = new LoadVars();
retservice = new LoadVars();
service.mode = "save";
service.uniqueID = uniqueID;
service.filename = filename;
service.quality = jpegQuality;
service.success = 0;
retservice.onLoad = mx.utils.Delegate.create(this, onSave);
service.sendAndLoad(gatewayURL, retservice, "POST");
}
}
function arrayToString(data, bits) {
var _local4 = emptycount.slice();
var _local1 = data.length;
var _local7 = _local1;
do {
var _local5 = bits;
n = data[_local1];
do {
_local4[(n >> _local5) & 255]++;
_local5 = _local5 - 8;
} while (_local5 > -1);
_local1--;
} while (_local1 > -1);
var _local2 = 2;
var _local8 = _local4[2] + _local4[3];
_local1 = 3;
while ((_local1 < 256) && (_local8 > 0)) {
if ((lookup[_local1].length == 1) && ((_local4[_local1] + _local4[1 ^ _local1]) < _local8)) {
_local8 = _local4[_local1] + _local4[1 ^ _local1];
_local2 = _local1;
}
_local1++;
}
var _local3 = lookup[_local2];
var n;
_local1 = 0;
switch (bits) {
case 8 :
do {
n = data[_local1++];
_local3 = _local3 + lookup[(n & 255) ^ _local2];
_local7--;
} while (_local7 > 0);
break;
case 16 :
do {
n = data[_local1++];
_local3 = _local3 + lookup[((n >> 8) & 255) ^ _local2];
_local3 = _local3 + lookup[(n & 255) ^ _local2];
_local7--;
} while (_local7 > 0);
break;
case 24 :
do {
n = data[_local1++];
_local3 = _local3 + lookup[((n >> 16) & 255) ^ _local2];
_local3 = _local3 + lookup[((n >> 8) & 255) ^ _local2];
_local3 = _local3 + lookup[(n & 255) ^ _local2];
_local7--;
} while (_local7 > 0);
break;
case 32 :
do {
n = data[_local1++];
_local3 = _local3 + lookup[((n >> 24) & 255) ^ _local2];
_local3 = _local3 + lookup[((n >> 16) & 255) ^ _local2];
_local3 = _local3 + lookup[((n >> 8) & 255) ^ _local2];
_local3 = _local3 + lookup[(n & 255) ^ _local2];
_local7--;
} while (_local7 > 0);
}
return(_local3);
}
function initLZW() {
dct = new Object();
var _local2 = 0;
while (_local2 < 256) {
dct[String.fromCharCode(_local2)] = _local2;
_local2++;
}
nextLZWIndex = 256;
LZWbuffer = Array();
}
function closeLZW(data) {
data.push(dct[LZWbuffer.join("-")]);
}
function addLZWNumber(data, n) {
var _local9 = Array();
if ((n >> 31) & true) {
var _local6 = 131072 /* 0x020000 */;
n = n & 2147483647;
} else {
var _local6 = 0;
}
var _local10 = 2;
var _local8 = n % encodeBase;
n = (n - _local8) >> 7;
_local9.push(chars[_local8], ",");
while ((n > 0) || (_local6 > 0)) {
_local8 = n % encodeBase;
n = (n - _local8) >> 7;
if (_local6 != 0) {
n = n | _local6;
var _local6 = 0;
}
_local9.unshift(chars[_local8]);
_local10++;
}
var _local7;
var _local5 = 0;
while (_local5 < _local10) {
var _local2 = _local9[_local5];
var _local4 = new String();
if (LZWbuffer.length == 0) {
_local7 = _local2;
} else {
_local4 = LZWbuffer.join("-");
_local7 = (_local4 + "-") + _local2;
}
if (dct[_local7] != undefined) {
LZWbuffer.push(_local2);
} else {
data.push(dct[_local4]);
dct[_local7] = nextLZWIndex++;
delete LZWbuffer;
LZWbuffer = [_local2];
}
_local5++;
}
}
function error(message) {
trace(message);
dispatchEvent({type:"error", target:this, message:"ERROR: " + message});
reset();
}
function onImageHandle(success) {
trace("On image handle variables: " + retservice.toString());
_global.clearTimeout(connectionTimeoutID);
if (!success) {
error("[onImageHandle] Could not get ImageHandle");
return(undefined);
}
if (status == "cancelled") {
reset();
return(undefined);
}
if (retservice.success == "1") {
uniqueID = retservice.uniqueID;
onScanProgress(0.05, "Analysing Bitmap");
_global.setTimeout(this, "scanBitmap", 50);
} else {
error("[onImageHandle] " + retservice.error);
}
}
function onAddPixelBlock(success) {
busy = false;
if (!success) {
error("[onAddPixelBlock] HTTP error");
}
if (status == "cancelled") {
reset();
return(undefined);
}
if (retservice.success != "1") {
error("[onAddPixelBlock] " + retservice.error);
} else {
sentBytes = sentBytes + Number(retservice.sentBytes);
}
}
function onSave(success) {
if (!success) {
error("[onSave] HTTP error");
return(undefined);
}
if (status == "cancelled") {
reset();
return(undefined);
}
if ((retservice.success == "1") || ((retservice.success == "0") && (retservice.error == undefined))) {
setStatus("downloading");
trace((retservice.url + " ") + retservice.loaded);
_global.imagename = retservice.url;
onComplete();
} else {
error((((("[onSave] " + retservice.error) + " ") + retservice.success) + " ") + retservice.toString());
}
}
function onDropImageHandle(success) {
if (!success) {
error("[onDropImageHandle] HTTP error");
}
}
function onScanProgress(progress, message) {
dispatchEvent({type:"progress", target:this, current:progress, total:1, message:message});
}
function onComplete() {
dispatchEvent({type:"complete", target:this, filename:null, compressionRatio:sentBytes / ((bitmapWidth * bitmapHeight) * 4)});
reset();
}
function onProgress(file, bytesLoaded, bytesTotal) {
dispatchEvent({type:"progress", target:this, current:bytesLoaded, total:bytesTotal, message:"downloading"});
}
function onConnectionTimeout() {
error("Connection Timeout - no response from server");
}
function setStatus(_status) {
status = _status;
dispatchEvent({type:"status", target:this, status:status});
}
static var gatewayURL = "http://10.1.10.180/dev/clients_master/mga/diamondz/site/htdocs/saveImage.php";
static var timeslice = 2000;
static var blocksize = 500000;
static var connectionTimeout = 5000;
var initialized = false;
var busy = false;
var status = "idle";
var encodeBase = 128;
}
Symbol 683 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 684 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 685 MovieClip [__Packages.Diamondz] Frame 0
class Diamondz
{
var so, Show, Jewelry, player_name, points, character;
function Diamondz () {
so = SharedObject.getLocal("Diamondz");
}
function deleteGame(id) {
for (var _local3 in so.data) {
if (_local3 == id) {
delete so.data[_local3];
return(true);
}
}
return(false);
}
function exportPlayerList() {
var _local4 = new Array();
for (var _local5 in so.data) {
_local4.push({player_name:_local5, points:so.data[_local5].points});
}
return(_local4);
}
function loadGame(id) {
Show = new Object();
Jewelry = new Object();
for (var _local3 in so.data) {
if (_local3 == id) {
player_name = id;
points = so.data[id].points;
character = so.data[id].character;
Show = so.data[id].Show;
Jewelry = so.data[id].Jewelry;
return(true);
}
}
return(false);
}
function newGame(player_name) {
Show = new Object();
Show.Clothing = new Object();
Show.Clothing.Top = undefined;
Show.Clothing.Pants = undefined;
Show.Clothing.Shoes = undefined;
Show.Clothing.Skirt = undefined;
Show.Clothing.Dress = undefined;
Show.Earings = undefined;
Show.Necklace = undefined;
Show.RightHand = new Object();
Show.RightHand.Bracelet = undefined;
Show.RightHand.Index = undefined;
Show.RightHand.Middle = undefined;
Show.RightHand.Ring = undefined;
Show.RightHand.Pinky = undefined;
Show.LeftHand = new Object();
Show.LeftHand.Bracelet = undefined;
Show.LeftHand.Index = undefined;
Show.LeftHand.Middle = undefined;
Show.LeftHand.Ring = undefined;
Show.LeftHand.Pinky = undefined;
Jewelry = new Object();
Jewelry.Rings = new Array();
Jewelry.Bracelets = new Array();
Jewelry.Earings = new Array();
Jewelry.Necklaces = new Array();
this.player_name = player_name;
points = 0;
return(saveGame());
}
function reportScore(score) {
points = points + score;
saveGame();
}
function saveGame() {
so.data[player_name] = new Object();
so.data[player_name].points = points;
so.data[player_name].character = character;
so.data[player_name].Show = Show;
so.data[player_name].Jewelry = Jewelry;
if (so.flush(1024) === true) {
return(true);
}
return(false);
}
function savePicture(mc) {
var _local4 = new flash.display.BitmapData(mc._width, mc._height);
_local4.draw(mc);
var _local5 = new Array();
var _local2 = 0;
while (_local2 < mc._width) {
var _local1 = 0;
while (_local1 < mc._height) {
_local5.push(_local4.getPixel(_local2, _local1));
_local1++;
}
_local2++;
}
}
}
Symbol 686 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 687 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 688 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 689 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 690 MovieClip [__Packages.Clothes] Frame 0
class Clothes extends MovieClip
{
var startPos, _y, _x, basetop, basebottom, startDrag, stopDrag, hitTest, _name;
function Clothes () {
super();
startPos = {x:_x, y:_y};
basetop = "top6";
basebottom = "pants1";
if ((_global.Diamondz.Show.Clothing.Dress == undefined) && (_global.Diamondz.Show.Clothing.Top == undefined)) {
_global.Diamondz.Show.Clothing.Top = basetop;
_global.CharacterDressUp.Tops.gotoAndStop(basetop);
}
if (((_global.Diamondz.Show.Clothing.Dress == undefined) && (_global.Diamondz.Show.Clothing.Pants == undefined)) && (_global.Diamondz.Show.Clothing.Skirt == undefined)) {
_global.Diamondz.Show.Clothing.Pants = basebottom;
_global.CharacterDressUp.Pants.gotoAndStop(basebottom);
}
}
function applyItem() {
}
function onPress() {
startDrag(false);
}
function onRelease() {
stopDrag();
if (hitTest(_global.CharacterDressUp)) {
applyItem();
if (this instanceof Dresses) {
_global.Diamondz.Show.Clothing.Pants = undefined;
_global.Diamondz.Show.Clothing.Skirt = undefined;
_global.Diamondz.Show.Clothing.Top = undefined;
trace(_name);
_global.Diamondz.Show.Clothing.Dress = _name;
} else if (this instanceof Skirts) {
_global.Diamondz.Show.Clothing.Dress = undefined;
_global.Diamondz.Show.Clothing.Pants = undefined;
_global.Diamondz.Show.Clothing.Skirt = _name;
if (_global.Diamondz.Show.Clothing.Top == undefined) {
_global.Diamondz.Show.Clothing.Top = basetop;
}
} else if (this instanceof Shoes) {
_global.Diamondz.Show.Clothing.Shoes = _name;
} else if (this instanceof Tops) {
_global.Diamondz.Show.Clothing.Dress = undefined;
_global.Diamondz.Show.Clothing.Top = _name;
if ((_global.Diamondz.Show.Clothing.Pants == undefined) && (_global.Diamondz.Show.Clothing.Skirt == undefined)) {
_global.Diamondz.Show.Clothing.Pants = basebottom;
}
} else if (this instanceof Pants) {
_global.Diamondz.Show.Clothing.Dress = undefined;
_global.Diamondz.Show.Clothing.Skirt = undefined;
_global.Diamondz.Show.Clothing.Pants = _name;
if (_global.Diamondz.Show.Clothing.Top == undefined) {
_global.Diamondz.Show.Clothing.Top = basetop;
}
}
_global.Diamondz.save();
}
backToPallette();
}
function backToPallette() {
_x = startPos.x;
_y = startPos.y;
}
}
Symbol 691 MovieClip [__Packages.Dresses] Frame 0
class Dresses extends Clothes
{
var _name;
function Dresses () {
super();
}
function applyItem() {
var _local3 = _global.CharacterDressUp;
_local3.Tops.gotoAndStop("none");
_local3.Pants.gotoAndStop("none");
_local3.Skirts.gotoAndStop("none");
_local3.Dresses.gotoAndStop(_name);
}
}
Symbol 692 MovieClip [__Packages.Skirts] Frame 0
class Skirts extends Clothes
{
var _name, basetop;
function Skirts () {
super();
}
function applyItem() {
var _local3 = _global.CharacterDressUp;
_local3.Dresses.gotoAndStop("none");
_local3.Pants.gotoAndStop("none");
_local3.Skirts.gotoAndStop(_name);
if (_global.Diamondz.Show.Clothing.Top == undefined) {
_local3.Tops.gotoAndStop(basetop);
}
}
}
Symbol 693 MovieClip [__Packages.Shoes] Frame 0
class Shoes extends Clothes
{
var _name;
function Shoes () {
super();
}
function applyItem() {
var _local3 = _global.CharacterDressUp;
_local3.Shoes.gotoAndStop(_name);
}
}
Symbol 694 MovieClip [__Packages.Tops] Frame 0
class Tops extends Clothes
{
var _name, basebottom;
function Tops () {
super();
}
function applyItem() {
var _local3 = _global.CharacterDressUp;
_local3.Dresses.gotoAndStop("none");
_local3.Tops.gotoAndStop(_name);
if ((_global.Diamondz.Show.Clothing.Pants == undefined) && (_global.Diamondz.Show.Clothing.Skirt == undefined)) {
_local3.Pants.gotoAndStop(basebottom);
}
}
}
Symbol 695 MovieClip [__Packages.Pants] Frame 0
class Pants extends Clothes
{
var _name, basetop;
function Pants () {
super();
}
function applyItem() {
var _local3 = _global.CharacterDressUp;
_local3.Dresses.gotoAndStop("none");
_local3.Skirts.gotoAndStop("none");
_local3.Pants.gotoAndStop(_name);
if (_global.Diamondz.Show.Clothing.Top == undefined) {
_local3.Tops.gotoAndStop(basetop);
}
}
}
Symbol 278 Button
on (release) {
if ((my_name.text && (my_name.length > 1)) && (!checkForSwears(my_name.text))) {
play();
} else {
_global.PopUp.open("swearing");
}
}
Symbol 280 Button
on (release) {
_global.PopUp.open("help");
}
Symbol 291 MovieClip Frame 1
function checkForSwears(str) {
var _local2 = 0;
while (_local2 < _global.swear_List.length) {
if (str.firstIndexOfString(_global.swear_List[_local2]) >= 0) {
return(true);
}
_local2++;
}
return(false);
}
Instance of Symbol 290 MovieClip in Symbol 291 MovieClip Frame 57
on (release) {
getURL ("http://games.bratz.com/diamondz/gallery.php");
}
Symbol 291 MovieClip Frame 61
stop();
Symbol 291 MovieClip Frame 75
if (_global.Diamondz.newGame(my_name.text)) {
_parent.gotoAndStop("landing2");
}
Symbol 297 Button
on (release) {
this.close();
}
Symbol 304 Button
on (release) {
_global.recipient = name.text;
_global.address = address.text;
this.gotoAndStop("ecard_two");
}
Symbol 311 Button
on (release) {
if (saying) {
getURL ((((("mailto:" + _global.address) + "?subject=Diamondz&body=Hey ") + _global.recipient) + ", ") + saying);
this.close();
}
}
Symbol 319 Button
on (release) {
reset("m0");
saying = "Diamondz are a Bratz\u2122 girl's best friend \u2013 and you're mine!";
}
Symbol 320 Button
on (release) {
reset("m1");
saying = "Thanks for being a super-sparklin' friend!";
}
Symbol 321 Button
on (release) {
reset("m2");
saying = "Glam greetings from your far-out fashion designer friend!";
}
Symbol 322 Button
on (release) {
reset("m3");
saying = "Have a dazzlin' day!";
}
Symbol 323 Button
on (release) {
reset("m4");
saying = "You sparkle like a diamond!";
}
Symbol 327 Button
on (release) {
_parent.gotoAndStop("dress_up");
this.close();
}
Symbol 330 Button
on (release) {
_global.End.postToGallery();
this.close();
}
Symbol 332 Button
on (release) {
this.gotoAndStop("player");
}
Symbol 337 Button
on (release) {
if (((((my_name.text && (my_name.length > 1)) && (my_age.length > 0)) && (my_state.length > 1)) && (!checkForSwears(my_name.text))) && (!checkForSwears(my_state.text))) {
_global.newname = my_name.text;
_global.age = my_age.text;
_global.hstate = my_state.text;
_global.End.postToGallery();
this.close();
} else {
trace((((my_name.text + " ") + (my_name.length > 1)) + " ") + (!checkForSwears(my_name.text)));
gotoAndPlay ("swearing");
}
}
Symbol 372 MovieClip Frame 1
function open(frame) {
gotoAndStop(frame);
this._visible = true;
}
function close(frame) {
gotoAndStop(frame);
this._visible = false;
}
function checkForSwears(str) {
trace("swearcheck");
var _local2 = 0;
while (_local2 < _global.swear_List.length) {
if (str.firstIndexOfString(_global.swear_List[_local2]) >= 0) {
return(true);
}
_local2++;
}
return(false);
}
_global.PopUp = this;
this._visible = false;
stop();
Symbol 372 MovieClip Frame 20
stop();
Symbol 372 MovieClip Frame 30
stop();
Symbol 372 MovieClip Frame 40
stop();
Symbol 372 MovieClip Frame 41
function reset(mc) {
var _local2 = 0;
while (_local2 < 5) {
this["m" + _local2]._visible = false;
_local2++;
}
if (mc) {
this[mc]._visible = true;
}
}
var saying;
reset();
Symbol 372 MovieClip Frame 50
stop();
Symbol 372 MovieClip Frame 70
stop();
Symbol 372 MovieClip Frame 79
stop();
Symbol 372 MovieClip Frame 80
my_name.text = _global.player_name;
Symbol 372 MovieClip Frame 89
stop();
Symbol 372 MovieClip Frame 99
stop();
Symbol 372 MovieClip Frame 109
stop();
Symbol 380 MovieClip Frame 1
function turnOn() {
this.status = "on";
this.gotoAndStop(this.status);
}
function turnOff() {
this.status = "off";
this.gotoAndStop(this.status);
}
function onRelease() {
if (this.status == "on") {
turnOff();
} else {
turnOn();
}
}
_global.Music = this;
var status;
turnOn();
stop();
Symbol 382 Button
on (release) {
if (selected_player != "Select Your Name") {
if (_global.Diamondz.loadGame(selected_player)) {
if (_global.Diamondz.character == undefined) {
_parent.gotoAndStop("character_select");
} else {
_parent.gotoAndStop("main_menu");
}
}
}
}
Symbol 387 MovieClip Frame 1
function reload() {
var _local3 = 0;
while (_local3 < currentList.length) {
removeMovieClip(currentList[_local3]);
_local3++;
}
currentList = new Array();
playersArray = _global.Diamondz.exportPlayerList();
_local3 = 0;
while (_local3 < playersArray.length) {
currentList.push(this.attachMovie("PlayerItem", playersArray[_local3].player_name, this.getNextHighestDepth(), {player_name:playersArray[_local3].player_name, points:playersArray[_local3].points, _y:_local3 * 50}));
_local3++;
}
}
function scrollTo(percent) {
if (this._height > max_visible) {
_y = (y - (((_height - max_visible) + 20) * percent));
}
}
var playersArray;
var currentList;
reload();
Symbol 390 MovieClip Frame 1
var top = _y;
var bot = (_y + 63);
var scroll_speed = 10;
onPress = function () {
this.startDrag(false, _x, top, _x, bot);
onMouseMove = function () {
sendPercent();
};
};
onRelease = function () {
this.stopDrag();
delete onMouseMove;
};
onReleaseOutside = onRelease;
var scrollUp = function () {
if ((_y - scroll_speed) > top) {
_y = (_y - scroll_speed);
} else {
_y = top;
}
sendPercent();
};
var scrollDown = function () {
if ((_y + scroll_speed) < bot) {
_y = (_y + scroll_speed);
} else {
_y = bot;
}
sendPercent();
};
var sendPercent = function () {
_parent.PlayerList.scrollTo(((_y - top) / (top - bot)) * -1);
};
Symbol 392 Button
on (release) {
scrollGrabber.scrollUp();
}
Symbol 393 Button
on (release) {
scrollGrabber.scrollDown();
}
Symbol 397 Button
on (release) {
_parent.gotoAndStop("landing1");
}
Symbol 399 MovieClip Frame 1
_global.Landing2 = this;
var selected_player = "Click Your Name";
Instance of Symbol 387 MovieClip "PlayerList" in Symbol 399 MovieClip Frame 9
onClipEvent (load) {
var max_visible = 115;
var y = _y;
}
Instance of Symbol 290 MovieClip in Symbol 399 MovieClip Frame 19
on (release) {
getURL ("http://games.bratz.com/diamondz/gallery.php");
}
Symbol 399 MovieClip Frame 21
stop();
Symbol 408 Button
on (release) {
_global.Diamondz.character = selected_char;
if (_global.Diamondz.saveGame()) {
_parent.gotoAndStop("main_menu");
}
}
Symbol 414 MovieClip Frame 1
function select(mc) {
var _local1 = 0;
while (_local1 < charArray.length) {
charArray[_local1].filters = undefined;
_local1++;
}
trace(mc);
var _local4 = new flash.filters.GlowFilter(16777215, 0.8, 20, 20, 1, 3, false, false);
selected_char = mc._name;
var _local2 = new Array();
_local2.push(_local4);
mc.filters = _local2;
delete glow;
}
var charArray = new Array();
var selected_char;
if (_global.Diamondz.character) {
selected_char = _global.Diamondz.character;
select(this[selected_char]);
}
Instance of Symbol 405 MovieClip "Sasha" in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
_parent.charArray.push(this);
}
on (release) {
_parent.select(this);
}
Instance of Symbol 407 MovieClip "Jade" in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
_parent.charArray.push(this);
}
on (release) {
_parent.select(this);
}
Instance of Symbol 267 MovieClip "Cloe" in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
_parent.charArray.push(this);
}
on (release) {
_parent.select(this);
}
Instance of Symbol 395 MovieClip "Yasmin" in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
_parent.charArray.push(this);
}
on (release) {
_parent.select(this);
}
Symbol 415 Button
on (release) {
_global.PopUp.open("help");
}
Symbol 417 Button
on (release) {
if (goto) {
_parent.gotoAndStop(goto);
}
}
Symbol 419 Button
on (release) {
game = "Matching Game";
goto = "concentration";
_parent.gotoAndStop(goto);
}
Symbol 420 Button
on (release) {
game = "Dress Up";
goto = "dress_up";
_parent.gotoAndStop(goto);
}
Symbol 421 Button
on (release) {
game = "Jewelry Store";
goto = "store";
_parent.gotoAndStop(goto);
}
Symbol 422 Button
on (release) {
game = "The Show";
goto = "show";
_parent.gotoAndStop(goto);
}
Symbol 424 Button
on (release) {
getURL ("http://www.mgae.com/");
}
Symbol 426 Button
on (release) {
_parent.gotoAndStop("character_select");
}
Symbol 431 MovieClip Frame 1
gotoAndStop(_global.Diamondz.character);
stop();
Symbol 433 MovieClip Frame 1
var game = "Pick Your Game";
var goto;
Symbol 443 Button
on (release) {
_parent.gotoAndStop("main_menu");
}
Symbol 445 Button
on (release) {
if (this.buyItem(Settings.settings_Array[Settings.setting_id], ItemBuildView.exportItem())) {
_global.PopUp.open("buy");
} else {
_global.PopUp.open("money");
}
}
Symbol 451 Button
on (release) {
ItemBuildView.changeColor("color2");
}
Symbol 453 Button
on (release) {
ItemBuildView.changeColor("color3");
}
Symbol 455 Button
on (release) {
ItemBuildView.changeColor("color1");
}
Symbol 458 Button
on (release) {
ItemBuildView.changeSize(100);
}
Symbol 459 Button
on (release) {
ItemBuildView.changeSize(85);
}
Symbol 460 Button
on (release) {
ItemBuildView.changeSize(70);
}
Symbol 461 Button
on (release) {
ItemBuildView.changeSize(55);
}
Symbol 462 Button
on (release) {
ItemBuildView.changeSize(40);
}
Symbol 463 Button
on (release) {
ItemBuildView.changeSize(25);
}
Symbol 464 Button
on (release) {
ItemBuildView.changeSize(18);
}
Symbol 471 Button
on (release) {
Settings.nextSetting();
}
Symbol 472 Button
on (release) {
Settings.prevSetting();
}
Symbol 473 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting3");
JewelryStore.ItemBuildView.changeGemLayout("ring1");
}
Symbol 474 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting5");
JewelryStore.ItemBuildView.changeGemLayout("ring1");
}
Symbol 475 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting7");
JewelryStore.ItemBuildView.changeGemLayout("ring1");
}
Symbol 476 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting1");
JewelryStore.ItemBuildView.changeGemLayout("ring1");
}
Symbol 477 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting8");
JewelryStore.ItemBuildView.changeGemLayout("ring1");
}
Symbol 478 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting4");
JewelryStore.ItemBuildView.changeGemLayout("ring1");
}
Symbol 479 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting6");
JewelryStore.ItemBuildView.changeGemLayout("ring1");
}
Symbol 480 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting9");
JewelryStore.ItemBuildView.changeGemLayout("ring1");
}
Instance of Symbol 17 MovieClip in Symbol 481 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting2");
JewelryStore.ItemBuildView.changeGemLayout("ring1");
}
Symbol 483 MovieClip Frame 1
var top = _y;
var bot = (_y + 105);
var scroll_speed = 10;
onPress = function () {
this.startDrag(false, _x, top, _x, bot);
onMouseMove = function () {
sendPercent();
};
};
onRelease = function () {
this.stopDrag();
delete onMouseMove;
};
onReleaseOutside = onRelease;
var scrollUp = function () {
if ((_y - scroll_speed) > top) {
_y = (_y - scroll_speed);
} else {
_y = top;
}
sendPercent();
};
var scrollDown = function () {
if ((_y + scroll_speed) < bot) {
_y = (_y + scroll_speed);
} else {
_y = bot;
}
sendPercent();
};
var sendPercent = function () {
_parent.SettingsList.scrollTo(((_y - top) / (top - bot)) * -1);
};
Symbol 484 Button
on (release) {
scrollGrabber.scrollUp();
}
Symbol 485 Button
on (release) {
scrollGrabber.scrollDown();
}
Symbol 486 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting3");
JewelryStore.ItemBuildView.changeGemLayout("bracelet3");
}
Symbol 487 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting5");
JewelryStore.ItemBuildView.changeGemLayout("bracelet5");
}
Symbol 488 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting7");
JewelryStore.ItemBuildView.changeGemLayout("bracelet7");
}
Symbol 489 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting1");
JewelryStore.ItemBuildView.changeGemLayout("bracelet1");
}
Symbol 490 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting8");
JewelryStore.ItemBuildView.changeGemLayout("bracelet8");
}
Symbol 491 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting4");
JewelryStore.ItemBuildView.changeGemLayout("bracelet4");
}
Symbol 492 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting6");
JewelryStore.ItemBuildView.changeGemLayout("bracelet6");
}
Symbol 493 Button
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting9");
JewelryStore.ItemBuildView.changeGemLayout("bracelet9");
}
Instance of Symbol 86 MovieClip in Symbol 494 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting2");
JewelryStore.ItemBuildView.changeGemLayout("bracelet2");
}
Instance of Symbol 142 MovieClip in Symbol 495 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting2");
JewelryStore.ItemBuildView.changeGemLayout("earing2");
}
Instance of Symbol 136 MovieClip in Symbol 495 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting1");
JewelryStore.ItemBuildView.changeGemLayout("earing1");
}
Instance of Symbol 148 MovieClip in Symbol 495 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting3");
JewelryStore.ItemBuildView.changeGemLayout("earing3");
}
Instance of Symbol 154 MovieClip in Symbol 495 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting4");
JewelryStore.ItemBuildView.changeGemLayout("earing4");
}
Instance of Symbol 160 MovieClip in Symbol 495 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting5");
JewelryStore.ItemBuildView.changeGemLayout("earing5");
}
Instance of Symbol 165 MovieClip in Symbol 495 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting6");
JewelryStore.ItemBuildView.changeGemLayout("earing6");
}
Instance of Symbol 171 MovieClip in Symbol 495 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting7");
JewelryStore.ItemBuildView.changeGemLayout("earing7");
}
Instance of Symbol 177 MovieClip in Symbol 495 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting8");
JewelryStore.ItemBuildView.changeGemLayout("earing8");
}
Instance of Symbol 181 MovieClip in Symbol 495 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting9");
JewelryStore.ItemBuildView.changeGemLayout("earing9");
}
Instance of Symbol 189 MovieClip in Symbol 496 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting1");
JewelryStore.ItemBuildView.changeGemLayout("necklace1");
}
Instance of Symbol 195 MovieClip in Symbol 496 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting2");
JewelryStore.ItemBuildView.changeGemLayout("necklace2");
}
Instance of Symbol 199 MovieClip in Symbol 496 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting3");
JewelryStore.ItemBuildView.changeGemLayout("necklace3");
}
Instance of Symbol 205 MovieClip in Symbol 496 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting4");
JewelryStore.ItemBuildView.changeGemLayout("necklace4");
}
Instance of Symbol 211 MovieClip in Symbol 496 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting5");
JewelryStore.ItemBuildView.changeGemLayout("necklace5");
}
Instance of Symbol 217 MovieClip in Symbol 496 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting6");
JewelryStore.ItemBuildView.changeGemLayout("necklace6");
}
Instance of Symbol 223 MovieClip in Symbol 496 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting7");
JewelryStore.ItemBuildView.changeGemLayout("necklace7");
}
Instance of Symbol 229 MovieClip in Symbol 496 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting8");
JewelryStore.ItemBuildView.changeGemLayout("necklace8");
}
Instance of Symbol 235 MovieClip in Symbol 496 MovieClip Frame 1
on (release) {
JewelryStore.ItemBuildView.changeSetting("setting9");
JewelryStore.ItemBuildView.changeGemLayout("necklace9");
}
Symbol 497 MovieClip Frame 1
function nextSetting() {
(((this.setting_id + 1) >= this.settings_Array.length) ? ((this.setting_id = 0)) : ((this.setting_id = this.setting_id + 1)));
gotoSetting();
}
function prevSetting() {
(((this.setting_id - 1) < 0) ? ((this.setting_id = this.settings_Array.length - 1)) : ((this.setting_id = this.setting_id - 1)));
gotoSetting();
}
function gotoSetting() {
_parent.setting_type = this.settings_Array[this.setting_id];
if (_parent.setting_type == "Earings") {
_parent.setting_type = "Earrings";
}
this.scrollGrabber._y = this.scrollGrabber.top;
_parent.ItemBuildView.changeType(this.settings_Array[this.setting_id]);
gotoAndStop(this.settings_Array[this.setting_id]);
}
var settings_Array = new Array("Rings", "Bracelets", "Earings", "Necklaces");
var setting_id = 0;
_parent.setting_type = "Rings";
this.gotoSetting();
stop();
Instance of Symbol 481 MovieClip "SettingsList" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
function scrollTo(percent) {
if (this._height > max_visible) {
_y = (y - (((_height - max_visible) + 20) * percent));
}
}
var max_visible = 100;
var y = _y;
}
Instance of Symbol 494 MovieClip "SettingsList" in Symbol 497 MovieClip Frame 21
onClipEvent (load) {
function scrollTo(percent) {
if (this._height > max_visible) {
_y = (y - (((_height - max_visible) + 20) * percent));
}
}
var max_visible = 142;
var y = _y;
}
Instance of Symbol 495 MovieClip "SettingsList" in Symbol 497 MovieClip Frame 31
onClipEvent (load) {
function scrollTo(percent) {
if (this._height > max_visible) {
_y = (y - (((_height - max_visible) + 20) * percent));
}
}
var max_visible = 142;
var y = _y;
}
Instance of Symbol 496 MovieClip "SettingsList" in Symbol 497 MovieClip Frame 41
onClipEvent (load) {
function scrollTo(percent) {
if (this._height > max_visible) {
_y = (y - (((_height - max_visible) + 20) * percent));
}
}
var max_visible = 142;
var y = _y;
}
Symbol 500 Button
on (release) {
ItemBuildView.changeGem("radiant");
}
Symbol 501 Button
on (release) {
ItemBuildView.changeGem("emerald");
}
Symbol 502 Button
on (release) {
ItemBuildView.changeGem("marquise");
}
Symbol 503 Button
on (release) {
ItemBuildView.changeGem("princess");
}
Symbol 504 Button
on (release) {
ItemBuildView.changeGem("round");
}
Symbol 505 Button
on (release) {
ItemBuildView.changeGem("oval");
}
Symbol 511 MovieClip Frame 1
var top = _y;
var bot = (_y + 94);
var percent = 0;
var percent_txt = percent;
_global.JewelryStore.ItemBuildView.Gems.setHue(percent);
onPress = function () {
startDrag (this, false, _x, top, _x, bot);
onMouseMove = function () {
percent = (_y - top) / (bot - top);
percent_txt = Math.round(percent * 100);
_global.JewelryStore.ItemBuildView.changeHue(percent);
};
};
onRelease = function () {
stopDrag();
delete onMouseMove;
};
onReleaseOutside = onRelease;
Symbol 513 MovieClip Frame 1
function buyItem(type, obj) {
if (obj.cost <= _global.Diamondz.points) {
_global.Diamondz.points = _global.Diamondz.points - obj.cost;
_global.Diamondz.Jewelry[type].push(obj);
_global.Diamondz.saveGame();
return(true);
}
return(false);
}
_global[this._name] = this;
var points;
var item_cost = "";
var onEnterFrame = function () {
points = _global.Diamondz.points;
item_cost = ("Cost: " + ItemBuildView.getCost()) + " points";
};
Symbol 521 Button
on (release) {
this.Clothes.nextPallette();
}
Symbol 522 Button
on (release) {
this.Clothes.prevPallette();
}
Symbol 524 MovieClip [Pants6] Frame 1
#initclip 43
Object.registerClass("Pants6", Pants);
#endinitclip
Symbol 526 MovieClip [Pants5] Frame 1
#initclip 15
Object.registerClass("Pants5", Pants);
#endinitclip
Symbol 528 MovieClip [Pants1] Frame 1
#initclip 16
Object.registerClass("Pants1", Pants);
#endinitclip
Symbol 530 MovieClip [Pants2] Frame 1
#initclip 17
Object.registerClass("Pants2", Pants);
#endinitclip
Symbol 532 MovieClip [Pants3] Frame 1
#initclip 18
Object.registerClass("Pants3", Pants);
#endinitclip
Symbol 534 MovieClip [Pants4] Frame 1
#initclip 19
Object.registerClass("Pants4", Pants);
#endinitclip
Symbol 537 MovieClip [Top1] Frame 1
#initclip 20
Object.registerClass("Top1", Tops);
#endinitclip
Symbol 539 MovieClip [Top2] Frame 1
#initclip 21
Object.registerClass("Top2", Tops);
#endinitclip
Symbol 541 MovieClip [Top3] Frame 1
#initclip 22
Object.registerClass("Top3", Tops);
#endinitclip
Symbol 543 MovieClip [Top4] Frame 1
#initclip 23
Object.registerClass("Top4", Tops);
#endinitclip
Symbol 545 MovieClip [Top5] Frame 1
#initclip 24
Object.registerClass("Top5", Tops);
#endinitclip
Symbol 547 MovieClip [Top6] Frame 1
#initclip 25
Object.registerClass("Top6", Tops);
#endinitclip
Symbol 549 MovieClip [Top7] Frame 1
#initclip 26
Object.registerClass("Top7", Tops);
#endinitclip
Symbol 553 MovieClip [Shoes1] Frame 1
#initclip 27
Object.registerClass("Shoes1", Shoes);
#endinitclip
Symbol 556 MovieClip [Shoes2] Frame 1
#initclip 28
Object.registerClass("Shoes2", Shoes);
#endinitclip
Symbol 559 MovieClip [Shoes3] Frame 1
#initclip 29
Object.registerClass("Shoes3", Shoes);
#endinitclip
Symbol 562 MovieClip [Shoes4] Frame 1
#initclip 30
Object.registerClass("Shoes4", Shoes);
#endinitclip
Symbol 565 MovieClip [Shoes5] Frame 1
#initclip 31
Object.registerClass("Shoes5", Shoes);
#endinitclip
Symbol 568 MovieClip [Skirt1] Frame 1
#initclip 32
Object.registerClass("Skirt1", Skirts);
#endinitclip
Symbol 570 MovieClip [Skirt2] Frame 1
#initclip 33
Object.registerClass("Skirt2", Skirts);
#endinitclip
Symbol 572 MovieClip [Skirt3] Frame 1
#initclip 34
Object.registerClass("Skirt3", Skirts);
#endinitclip
Symbol 574 MovieClip [Skirt4] Frame 1
#initclip 35
Object.registerClass("Skirt4", Skirts);
#endinitclip
Symbol 576 MovieClip [Skirt5] Frame 1
#initclip 36
Object.registerClass("Skirt5", Skirts);
#endinitclip
Symbol 578 MovieClip [Skirt6] Frame 1
#initclip 37
Object.registerClass("Skirt6", Skirts);
#endinitclip
Symbol 582 Button
on (release) {
jewelscroll.Jewelry._y = 0;
jewelscroll.Jewelry.nextType();
}
Symbol 583 Button
on (release) {
jewelscroll.Jewelry._y = 0;
jewelscroll.Jewelry.prevType();
}
Symbol 586 Button
on (release) {
_parent.gotoAndStop("show");
}
Symbol 592 MovieClip Frame 1
if (_global.Diamondz.Show.Clothing[this._name]) {
gotoAndStop(_global.Diamondz.Show.Clothing[this._name]);
}
stop();
Symbol 593 MovieClip Frame 1
if (_global.Diamondz.Show.Clothing[this._name]) {
gotoAndStop(_global.Diamondz.Show.Clothing[this._name]);
}
stop();
Symbol 600 MovieClip Frame 1
if (_global.Diamondz.Show.Clothing.Skirt) {
gotoAndStop(_global.Diamondz.Show.Clothing.Skirt);
}
stop();
Symbol 606 MovieClip Frame 1
if (_global.Diamondz.Show.Clothing.Dress) {
gotoAndStop(_global.Diamondz.Show.Clothing.Dress);
}
stop();
Symbol 607 MovieClip Frame 1
if (_global.Diamondz.Show.Clothing.Top) {
gotoAndStop(_global.Diamondz.Show.Clothing.Top);
}
stop();
Symbol 612 MovieClip Frame 1
gotoAndStop(_global.Diamondz.character);
stop();
Symbol 616 MovieClip Frame 1
function countBling() {
var _local1 = 0;
if (LEar._visible) {
_local1 = _local1 + REar.getCost();
_local1 = _local1 + LEar.getCost();
}
if (Neck._visible) {
_local1 = _local1 + Neck.getCost();
}
if (LHWrist._visible) {
_local1 = _local1 + LHWrist.getCost();
}
if (LHIndex._visible) {
_local1 = _local1 + LHIndex.getCost();
}
if (LHMiddle._visible) {
_local1 = _local1 + LHMiddle.getCost();
}
if (LHRing._visible) {
_local1 = _local1 + LHRing.getCost();
}
if (LHPinky._visible) {
_local1 = _local1 + LHPinky.getCost();
}
if (RHWrist._visible) {
_local1 = _local1 + RHWrist.getCost();
}
if (RHIndex._visible) {
_local1 = _local1 + RHIndex.getCost();
}
if (RHMiddle._visible) {
_local1 = _local1 + RHMiddle.getCost();
}
if (RHRing._visible) {
_local1 = _local1 + RHRing.getCost();
}
if (RHPinky._visible) {
_local1 = _local1 + RHPinky.getCost();
}
return(_local1);
}
_global.CharacterDressUp = this;
gotoAndStop(_global.Diamondz.character);
stop();
Symbol 617 MovieClip Frame 1
function loadPallette() {
removeMovieClip("Pallette");
_parent.pallette_name = this.pallettes[this.pallette_id];
this.attachMovie(this.pallettes[this.pallette_id], "Pallette", this.getNextHighestDepth());
}
function nextPallette() {
(((this.pallette_id + 1) >= this.pallettes.length) ? ((this.pallette_id = 0)) : ((this.pallette_id = this.pallette_id + 1)));
this.jewelry_type = this.pallettes[this.pallette_id];
this.loadPallette();
}
function prevPallette() {
(((this.pallette_id - 1) < 0) ? ((this.pallette_id = this.pallettes.length - 1)) : ((this.pallette_id = this.pallette_id - 1)));
this.jewelry_type = this.pallettes[this.pallette_id];
this.loadPallette();
}
var pallettes = new Array("Dresses", "Pants", "Tops", "Shoes", "Skirts");
var pallette_id = 0;
this.loadPallette();
Symbol 619 MovieClip Frame 1
function assignItem(obj) {
switch (obj.type) {
case "rings" :
if (!index._visible) {
_global.Diamondz.Show[this._name].Index = obj;
} else if (!middle._visible) {
_global.Diamondz.Show[this._name].Middle = obj;
} else if (!ring._visible) {
_global.Diamondz.Show[this._name].Ring = obj;
} else if (!pinky._visible) {
_global.Diamondz.Show[this._name].Pinky = obj;
}
break;
case "bracelets" :
_global.Diamondz.Show[this._name].Bracelet = obj;
}
_global.Diamondz.save();
this.loadItem();
}
function loadItem() {
if ((obj = _global.Diamondz.Show[this._name].Bracelet)) {
wrist._visible = true;
wrist.loadItem(obj);
}
if ((obj = _global.Diamondz.Show[this._name].Index)) {
index._visible = true;
index.loadItem(obj);
}
if ((obj = _global.Diamondz.Show[this._name].Middle)) {
middle._visible = true;
middle.loadItem(obj);
}
if ((obj = _global.Diamondz.Show[this._name].Ring)) {
ring._visible = true;
ring.loadItem(obj);
}
if ((obj = _global.Diamondz.Show[this._name].Pinky)) {
pinky._visible = true;
pinky.loadItem(obj);
}
}
function resetRings() {
index._visible = false;
middle._visible = false;
ring._visible = false;
pinky._visible = false;
_global.Diamondz.Show[this._name].Index = undefined;
_global.Diamondz.Show[this._name].Middle = undefined;
_global.Diamondz.Show[this._name].Ring = undefined;
_global.Diamondz.Show[this._name].Pinky = undefined;
_global.Diamondz.save();
}
function resetBracelets() {
wrist._visible = false;
_global.Diamondz.Show[this._name].Bracelet = undefined;
_global.Diamondz.save();
}
var index = _parent.Character[this.hand + "Index"];
var middle = _parent.Character[this.hand + "Middle"];
var ring = _parent.Character[this.hand + "Ring"];
var pinky = _parent.Character[this.hand + "Pinky"];
var wrist = _parent.Character[this.hand + "Wrist"];
this.loadItem();
Symbol 620 MovieClip Frame 1
function assignItem(obj) {
_global.Diamondz.Show.Earings = obj;
_global.Diamondz.save();
this.loadItem();
}
function loadItem() {
if ((obj = _global.Diamondz.Show.Earings)) {
_parent.Character.REar.loadItem(obj);
_parent.Character.LEar.loadItem(obj);
_parent.Character.REar._visible = true;
_parent.Character.LEar._visible = true;
}
}
function reset() {
_parent.Character.REar._visible = false;
_parent.Character.LEar._visible = false;
_global.Diamondz.Show.Earings = undefined;
_global.Diamondz.save();
}
this.loadItem();
Symbol 621 MovieClip Frame 1
function assignItem(obj) {
_global.Diamondz.Show.Necklace = obj;
_global.Diamondz.save();
this.loadItem();
}
function loadItem() {
if ((obj = _global.Diamondz.Show.Necklace)) {
_parent.Character.Neck.loadItem(obj);
_parent.Character.Neck._visible = true;
}
}
function reset() {
_parent.Character.Neck._visible = false;
_global.Diamondz.Show.Necklace = undefined;
_global.Diamondz.save();
}
this.loadItem();
Symbol 625 MovieClip Frame 1
function loadJewelry() {
var _local4 = 0;
while (_local4 < this.items_loaded) {
removeMovieClip(this["CustomItem" + _local4]);
_local4++;
}
removeMovieClip(_parent.Remove);
_parent._parent.jewelry_type = this.jewelry_type;
if (_parent._parent.jewelry_type == "Earings") {
_parent._parent.jewelry_type = "Earrings";
}
this.items_loaded = _global.Diamondz.Jewelry[this.jewelry_type].length;
_local4 = 0;
while (_local4 < this.items_loaded) {
this.attachMovie("CustomItem", "CustomItem" + _local4, this.getNextHighestDepth(), {_x:(_local4 % 2) * 100, _y:Math.floor(_local4 / 2) * 50, _xscale:35, _yscale:35, id:_local4, from_array:jewelry_type, image:_global.Diamondz.Jewelry[this.jewelry_type][_local4]});
_local4++;
}
_parent.attachMovie("Remove" + this.jewelry_type, "Remove", this.getNextHighestDepth(), {_x:0, _y:-80});
}
function nextType() {
(((this.type_id + 1) >= this.jewelry_types.length) ? ((this.type_id = 0)) : ((this.type_id = this.type_id + 1)));
this.jewelry_type = this.jewelry_types[this.type_id];
this.loadJewelry();
}
function prevType() {
(((this.type_id - 1) < 0) ? ((this.type_id = this.jewelry_types.length - 1)) : ((this.type_id = this.type_id - 1)));
this.jewelry_type = this.jewelry_types[this.type_id];
this.loadJewelry();
}
var jewelry_types = new Array("Rings", "Bracelets", "Earings", "Necklaces");
var type_id = 0;
var jewelry_type;
var items_loaded;
this.jewelry_type = this.jewelry_types[0];
this.items_loaded = 0;
this.loadJewelry();
Symbol 628 MovieClip Frame 1
var top = _y;
var bot = (_y + 105);
var scroll_speed = 10;
onPress = function () {
this.startDrag(false, _x, top, _x, bot);
onMouseMove = function () {
sendPercent();
};
};
onRelease = function () {
this.stopDrag();
delete onMouseMove;
};
onReleaseOutside = onRelease;
var scrollUp = function () {
if ((_y - scroll_speed) > top) {
_y = (_y - scroll_speed);
} else {
_y = top;
}
sendPercent();
};
var scrollDown = function () {
if ((_y + scroll_speed) < bot) {
_y = (_y + scroll_speed);
} else {
_y = bot;
}
sendPercent();
};
var sendPercent = function () {
_parent.Jewelry.scrollTo(((_y - top) / (top - bot)) * -1);
};
Instance of Symbol 625 MovieClip "Jewelry" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
function scrollTo(percent) {
if (this._height > max_visible) {
_y = (y - (((_height - max_visible) + 20) * percent));
}
}
var max_visible = 142;
var y = _y;
}
Symbol 633 MovieClip Frame 1
function setMeter(p) {
trace("P: " + p);
if (p >= 100) {
p = 100;
}
var _local3 = 100 / sections;
var _local4 = Math.floor(p / _local3);
p = _local4 * _local3;
this.Mask._x = maskx + (this.Mask._width * (p / 100));
}
function onEnterFrame() {
var _local3 = _parent.Character.countBling();
trace("Count on enter frame: " + _local3);
_local3 = (_local3 / this.max_bling) * 100;
_local3 = Math.round(_local3);
bling = _local3;
trace("Bling on enter: " + bling);
setMeter(bling);
}
var maskx = this.Mask._x;
var sections = 4;
var max_bling = 800;
var bling;
Symbol 636 MovieClip [Dress5] Frame 1
#initclip 38
Object.registerClass("Dress5", Dresses);
#endinitclip
Symbol 637 MovieClip [Dress4] Frame 1
#initclip 39
Object.registerClass("Dress4", Dresses);
#endinitclip
Symbol 638 MovieClip [Dress3] Frame 1
#initclip 40
Object.registerClass("Dress3", Dresses);
#endinitclip
Symbol 639 MovieClip [Dress2] Frame 1
#initclip 41
Object.registerClass("Dress2", Dresses);
#endinitclip
Symbol 640 MovieClip [Dress1] Frame 1
#initclip 42
Object.registerClass("Dress1", Dresses);
#endinitclip
Symbol 642 Button
on (release) {
_parent._parent.LeftHand.resetRings();
_parent._parent.RightHand.resetRings();
}
Symbol 645 Button
on (release) {
_parent._parent.LeftHand.resetBracelets();
_parent._parent.RightHand.resetBracelets();
}
Symbol 648 Button
on (release) {
_parent._parent.Head.reset();
}
Symbol 651 Button
on (release) {
_parent._parent.Neck.reset();
}
Symbol 654 MovieClip Frame 1
var points;
onEnterFrame = function () {
points = _global.Diamondz.points;
};
var curjewelry_type = "";
Instance of Symbol 619 MovieClip "LeftHand" in Symbol 654 MovieClip Frame 1
onClipEvent (load) {
this.hand = "LH";
}
Instance of Symbol 619 MovieClip "RightHand" in Symbol 654 MovieClip Frame 1
onClipEvent (load) {
this.hand = "RH";
}
Symbol 669 MovieClip Frame 1
function calcStage() {
var _local6 = 4;
var _local3 = this.Character.countBling();
if (_local3 == undefined) {
return(false);
}
_local3 = (_local3 / 1000) * 100;
_local3 = Math.round(_local3);
p = _local3;
if (p >= 100) {
p = 100;
}
var _local5 = 100 / _local6;
var _local4 = Math.floor(p / _local5);
basetop = "top6";
basebottom = "pants1";
if ((_global.Diamondz.Show.Clothing.Dress == undefined) && (_global.Diamondz.Show.Clothing.Top == undefined)) {
_global.Diamondz.Show.Clothing.Top = basetop;
_global.CharacterDressUp.Tops.gotoAndStop(basetop);
}
if (((_global.Diamondz.Show.Clothing.Dress == undefined) && (_global.Diamondz.Show.Clothing.Pants == undefined)) && (_global.Diamondz.Show.Clothing.Skirt == undefined)) {
_global.Diamondz.Show.Clothing.Pants = basebottom;
_global.CharacterDressUp.Pants.gotoAndStop(basebottom);
}
gotoAndStop("stage" + _local4);
}
onEnterFrame = function () {
this.calcStage();
};
var player_name = _global.Diamondz.player_name;
stop();
Instance of Symbol 616 MovieClip "Character" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
image = new Object();
}
Instance of Symbol 619 MovieClip "LeftHand" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
this.hand = "LH";
}
Instance of Symbol 619 MovieClip "RightHand" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
this.hand = "RH";
}
Symbol 669 MovieClip Frame 11
var player_name = _global.Diamondz.player_name;
Symbol 669 MovieClip Frame 21
var player_name = _global.Diamondz.player_name;
Symbol 669 MovieClip Frame 31
var player_name = _global.Diamondz.player_name;
Symbol 670 Button
on (release) {
_global.PopUp.open("posting");
}
Symbol 672 Button
on (release) {
_global.PopUp.open("ecard_one");
}
Symbol 674 Button
on (release) {
var pj = new PrintJob();
Screeny._rotation = Screeny._rotation + 90;
pj.start();
pj.addPage(Screeny, {xMin:-10, xMax:900, yMin:0, yMax:500}, null);
pj.send();
delete pj;
Screeny._rotation = Screeny._rotation - 90;
}
Symbol 676 Button
on (release) {
_parent.gotoAndStop("main_menu");
}
Symbol 678 Button
on (release) {
_parent.gotoAndStop("dress_up");
}
Symbol 681 MovieClip Frame 1
function postToGallery() {
_parent.attachMovie("ImageCapture", "ImageCapture", _parent.getNextHighestDepth());
}
_global.End = this;
Symbol 681 MovieClip Frame 18
stop();