Section 1
//btnCheckbox1_74 (Bully_fla.btnCheckbox1_74)
package Bully_fla {
import flash.display.*;
public dynamic class btnCheckbox1_74 extends MovieClip {
public function btnCheckbox1_74(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 2
//btnCombo_44 (Bully_fla.btnCombo_44)
package Bully_fla {
import flash.display.*;
public dynamic class btnCombo_44 extends MovieClip {
public function btnCombo_44(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 3
//btnNaughty_7 (Bully_fla.btnNaughty_7)
package Bully_fla {
import flash.display.*;
public dynamic class btnNaughty_7 extends MovieClip {
public function btnNaughty_7(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 4
//btnPoints_43 (Bully_fla.btnPoints_43)
package Bully_fla {
import flash.display.*;
public dynamic class btnPoints_43 extends MovieClip {
public function btnPoints_43(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 5
//chloeExpression_33 (Bully_fla.chloeExpression_33)
package Bully_fla {
import flash.display.*;
public dynamic class chloeExpression_33 extends MovieClip {
public function chloeExpression_33(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 6
//finisher_Jen_9 (Bully_fla.finisher_Jen_9)
package Bully_fla {
import flash.display.*;
public dynamic class finisher_Jen_9 extends MovieClip {
public var btnLook:MovieClip;
public var btnHide:MovieClip;
public function finisher_Jen_9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 7
//hollyExpression_25 (Bully_fla.hollyExpression_25)
package Bully_fla {
import flash.display.*;
public dynamic class hollyExpression_25 extends MovieClip {
public function hollyExpression_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 8
//jenExpression_21 (Bully_fla.jenExpression_21)
package Bully_fla {
import flash.display.*;
public dynamic class jenExpression_21 extends MovieClip {
public function jenExpression_21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 9
//keyPad_49 (Bully_fla.keyPad_49)
package Bully_fla {
import flash.display.*;
public dynamic class keyPad_49 extends MovieClip {
public var btnLeft:MovieClip;
public var btnUp:MovieClip;
public var btnSpace:MovieClip;
public var btnDown:MovieClip;
public var btnRight:MovieClip;
public function keyPad_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 10
//laverneExpression_37 (Bully_fla.laverneExpression_37)
package Bully_fla {
import flash.display.*;
public dynamic class laverneExpression_37 extends MovieClip {
public function laverneExpression_37(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 11
//lizzieExpression_17 (Bully_fla.lizzieExpression_17)
package Bully_fla {
import flash.display.*;
public dynamic class lizzieExpression_17 extends MovieClip {
public function lizzieExpression_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 12
//MainTimeline (Bully_fla.MainTimeline)
package Bully_fla {
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var txtScore:TextField;
public var finisher_jen:MovieClip;
public var finisherLizzie:MovieClip;
public var keyPad:MovieClip;
public var sprChair:MovieClip;
public var wndNames:MovieClip;
public var btnIntroStart:introStartButton;
public var btnFinish:MovieClip;
public var sprMara:MovieClip;
public var finisher_Holly:MovieClip;
public var wndLevel:MovieClip;
public var finisher_chloe:MovieClip;
public var txtInfo:TextField;
public var sprLaverne:MovieClip;
public var wndClassroom:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var wndTeacherWatching:MovieClip;
public var sprChloe:MovieClip;
public var sprCrawl1:MovieClip;
public var btnNaughty:MovieClip;
public var wndTricks:MovieClip;
public var btnPoints2:MovieClip;
public var sprWedgieGirl2:MovieClip;
public var sprCrawl2:MovieClip;
public var btnTouch:MovieClip;
public var btnPoints3:MovieClip;
public var btnMoves:MovieClip;
public var sprJen:MovieClip;
public var btnTouch2:MovieClip;
public var btnPoints1:MovieClip;
public var sprLizzie:MovieClip;
public var sprWedgieGirl1:MovieClip;
public var wndSpank:MovieClip;
public var btnPoints4:MovieClip;
public var btnInfo:MovieClip;
public var sprHolly:MovieClip;
public var btnBrutal:MovieClip;
public var btnCombo:MovieClip;
public var btnPoints5:MovieClip;
public var bTouch:Boolean;
public var iTouchType;
public var iMode;
public var iCurrentRow;
public var iRow;
public var iStage;
public var strBuffer:String;
public var iCurrentChar;
public var iRepulseCountdown;
public var objWedgieGirl;
public var iActiveWedgie;
public var iScore;
public var iComboScore;
public var iMaxScore;
public var tweenP1:Tween;
public var tweenP2:Tween;
public var tweenP3:Tween;
public var tweenP4:Tween;
public var tweenP5:Tween;
public var tweenTeacher:Tween;
public var tweenCombo:Tween;
public var tweenBrutal:Tween;
public var tweenFinish:Tween;
public var iComboMultiplier;
public var bRepulseEnabled;
public var arrAnnoyance:Array;
public var iSpankCount;
public var iTeacherWalking;
public var bHoldTeacher;
public var iBonusSpank;
public var iSpankCounter;
public var iCurrentPointBubble;
public var myInterval:uint;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
loader_mc.scaleX = _local4;
loaded_txt.text = (("Loading... " + Math.round((_local4 * 100))) + "%");
}
public function onComplete(_arg1:Event):void{
loaded_txt.text = "Finished loading.";
var _local2:* = this.loaderInfo.url;
var _local3:* = false;
if (_local2.search("file:") != -1){
_local3 = true;
};
if (_local3 == true){
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
btnTouch.alpha = 1;
btnTouch.addEventListener(MouseEvent.CLICK, startGameWithTouch);
btnTouch2.alpha = 1;
btnTouch2.addEventListener(MouseEvent.CLICK, startGameWithTouch2);
};
}
public function startGame(_arg1:MouseEvent):void{
btnIntroStart.removeEventListener(MouseEvent.CLICK, startGame);
btnTouch.removeEventListener(MouseEvent.CLICK, startGameWithTouch);
btnTouch2.removeEventListener(MouseEvent.CLICK, startGameWithTouch2);
bTouch = false;
gotoAndStop(2);
}
public function startGameWithTouch(_arg1:MouseEvent):void{
btnIntroStart.removeEventListener(MouseEvent.CLICK, startGame);
btnTouch.removeEventListener(MouseEvent.CLICK, startGameWithTouch);
btnTouch2.removeEventListener(MouseEvent.CLICK, startGameWithTouch2);
bTouch = true;
iTouchType = 1;
gotoAndStop(2);
}
public function startGameWithTouch2(_arg1:MouseEvent):void{
btnIntroStart.removeEventListener(MouseEvent.CLICK, startGame);
btnTouch.removeEventListener(MouseEvent.CLICK, startGameWithTouch);
btnTouch2.removeEventListener(MouseEvent.CLICK, startGameWithTouch2);
bTouch = true;
iTouchType = 2;
gotoAndStop(2);
}
public function mouseClicked(_arg1:MouseEvent):void{
if (_arg1.target.name == "btnInfo"){
wndTricks.y = -700;
wndLevel.y = 645;
} else {
if (_arg1.target.name == "btnMoves"){
wndLevel.y = -10;
wndTricks.y = 0;
} else {
if (_arg1.target.name == "btnLook"){
finisher_jen.gotoAndStop(2);
} else {
if (_arg1.target.name == "btnHide"){
finisher_jen.gotoAndStop(1);
} else {
if (_arg1.target.name == "btnClose"){
wndLevel.y = -10;
wndTricks.y = -700;
} else {
if (_arg1.target.name == "btnSpace"){
spacePressed();
} else {
if (_arg1.target.name == "btnLeft"){
leftPressed();
} else {
if (_arg1.target.name == "btnRight"){
rightPressed();
} else {
if (_arg1.target.name == "btnUp"){
upPressed();
} else {
if (_arg1.target.name == "btnDown"){
downPressed();
};
};
};
};
};
};
};
};
};
};
}
public function basicWedgieCheck():void{
if (iCurrentRow == 1){
if (iRow == 0){
wndLevel.wndTask.chk1.gotoAndStop(2);
};
if (iRow == 1){
wndLevel.wndTask.chk2.gotoAndStop(2);
};
if (iRow == 2){
wndLevel.wndTask.chk3.gotoAndStop(2);
};
} else {
if (iRow == 0){
wndLevel.wndTask.chk4.gotoAndStop(2);
};
if (iRow == 1){
wndLevel.wndTask.chk5.gotoAndStop(2);
};
if (iRow == 2){
wndLevel.wndTask.chk6.gotoAndStop(2);
};
};
}
public function upPressed():void{
if (iMode == 1){
if ((((iCurrentRow == 0)) && ((sprCrawl2.x >= 860)))){
iCurrentRow = 1;
sprCrawl1.gotoAndStop(sprCrawl2.currentFrame);
sprCrawl1.x = (sprCrawl2.x + 98);
sprCrawl2.x = 1500;
};
} else {
if (iMode == 2){
strBuffer = (strBuffer + "U");
if (iStage == 1){
basicWedgieCheck();
};
};
};
}
public function downPressed():void{
if (iMode == 1){
if ((((iCurrentRow == 1)) && ((sprCrawl1.x >= 908)))){
iCurrentRow = 0;
sprCrawl2.gotoAndStop(sprCrawl1.currentFrame);
sprCrawl2.x = (sprCrawl1.x - 98);
sprCrawl1.x = 1500;
};
} else {
if (iMode == 2){
strBuffer = (strBuffer + "D");
if (iStage == 1){
basicWedgieCheck();
};
};
};
}
public function leftPressed():void{
if (iMode == 1){
moveSpriteLeft();
} else {
if (iMode == 2){
strBuffer = (strBuffer + "L");
if (iStage == 1){
basicWedgieCheck();
};
};
};
}
public function rightPressed():void{
if (iMode == 1){
moveSpriteRight();
} else {
if (iMode == 2){
strBuffer = (strBuffer + "R");
if (iStage == 1){
basicWedgieCheck();
};
};
};
}
public function spacePressed():void{
iComboMultiplier = 0;
wndNames.y = -100;
if (iMode == 0){
iMode = 1;
sprChair.gotoAndStop(2);
iCurrentRow = 0;
sprCrawl2.gotoAndStop(1);
sprCrawl2.x = 960;
} else {
if (iMode == 1){
if (iCurrentRow == 0){
if (sprCrawl2.x >= 860){
iMode = 0;
sprCrawl2.x = 1500;
sprChair.gotoAndStop(1);
checkLevelAchievements();
} else {
if ((((sprCrawl2.x >= 10)) && ((sprCrawl2.x <= 110)))){
if (sprMara.char.currentFrame == 1){
iCurrentChar = 1;
objWedgieGirl = sprWedgieGirl2;
sprWedgieGirl2.x = 2;
iRow = 0;
if ((((bRepulseEnabled == true)) && ((Math.floor((Math.random() * 100)) < arrAnnoyance[iCurrentChar])))){
doRepulse();
} else {
startWedgieMode();
};
};
} else {
if ((((sprCrawl2.x >= 310)) && ((sprCrawl2.x <= 410)))){
if (sprChloe.char.currentFrame == 1){
iCurrentChar = 3;
objWedgieGirl = sprWedgieGirl2;
sprWedgieGirl2.x = 302;
iRow = 1;
if ((((bRepulseEnabled == true)) && ((Math.floor((Math.random() * 100)) < arrAnnoyance[iCurrentChar])))){
doRepulse();
} else {
startWedgieMode();
};
};
} else {
if ((((sprCrawl2.x >= 610)) && ((sprCrawl2.x <= 710)))){
if (sprLaverne.char.currentFrame == 1){
iCurrentChar = 5;
objWedgieGirl = sprWedgieGirl2;
sprWedgieGirl2.x = 602;
iRow = 2;
if ((((bRepulseEnabled == true)) && ((Math.floor((Math.random() * 100)) < arrAnnoyance[iCurrentChar])))){
doRepulse();
} else {
startWedgieMode();
};
};
};
};
};
};
} else {
if (sprCrawl1.x >= 908){
iMode = 0;
sprCrawl1.x = 1500;
sprChair.gotoAndStop(1);
checkLevelAchievements();
} else {
if ((((sprCrawl1.x >= 158)) && ((sprCrawl1.x <= 258)))){
if (sprLizzie.char.currentFrame == 1){
iCurrentChar = 2;
objWedgieGirl = sprWedgieGirl1;
sprWedgieGirl1.x = 137;
iRow = 0;
if ((((bRepulseEnabled == true)) && ((Math.floor((Math.random() * 100)) < arrAnnoyance[iCurrentChar])))){
doRepulse();
} else {
startWedgieMode();
};
};
} else {
if ((((sprCrawl1.x >= 458)) && ((sprCrawl1.x <= 558)))){
if (sprJen.char.currentFrame == 1){
iCurrentChar = 4;
objWedgieGirl = sprWedgieGirl1;
sprWedgieGirl1.x = 437;
iRow = 1;
if ((((bRepulseEnabled == true)) && ((Math.floor((Math.random() * 100)) < arrAnnoyance[iCurrentChar])))){
doRepulse();
} else {
startWedgieMode();
};
};
} else {
if ((((sprCrawl1.x >= 758)) && ((sprCrawl1.x <= 858)))){
if (sprHolly.char.currentFrame == 1){
iCurrentChar = 6;
objWedgieGirl = sprWedgieGirl1;
sprWedgieGirl1.x = 737;
iRow = 2;
if ((((bRepulseEnabled == true)) && ((Math.floor((Math.random() * 100)) < arrAnnoyance[iCurrentChar])))){
doRepulse();
} else {
startWedgieMode();
};
};
};
};
};
};
};
} else {
if (iMode == 2){
iMode = 1;
strBuffer = "";
sprCrawl1.alpha = 1;
sprCrawl2.alpha = 1;
objWedgieGirl.gotoAndStop(1);
doWedgie(iRow, iCurrentRow, 0);
iActiveWedgie = 0;
iComboScore = 0;
updateEmotion(iCurrentChar, 0);
};
};
};
}
public function keyPressed(_arg1:KeyboardEvent):void{
var _local2:* = _arg1.keyCode;
if ((((_local2 == Keyboard.UP)) || ((_local2 == 87)))){
upPressed();
} else {
if ((((_local2 == Keyboard.DOWN)) || ((_local2 == 83)))){
downPressed();
} else {
if ((((_local2 == Keyboard.LEFT)) || ((_local2 == 65)))){
if (iMode == 0){
strBuffer = (strBuffer + "A");
} else {
leftPressed();
};
} else {
if ((((_local2 == Keyboard.RIGHT)) || ((_local2 == 68)))){
rightPressed();
} else {
if (_local2 == 67){
wndLevel.y = -10;
wndTricks.y = -700;
} else {
if (_local2 == 78){
strBuffer = "";
strBuffer = (strBuffer + "N");
} else {
if (_local2 == 82){
if (iMode == 0){
if (sprMara.char.currentFrame < 25){
doWedgie(0, 0, 0);
};
if (sprLizzie.char.currentFrame < 25){
doWedgie(0, 1, 0);
};
if (sprChloe.char.currentFrame < 25){
doWedgie(1, 0, 0);
};
if (sprJen.char.currentFrame < 25){
doWedgie(1, 1, 0);
};
if (sprLaverne.char.currentFrame < 25){
doWedgie(2, 0, 0);
};
if (sprHolly.char.currentFrame < 25){
doWedgie(2, 1, 0);
};
};
} else {
if (_local2 == 85){
strBuffer = (strBuffer + "U");
} else {
if (_local2 == 71){
strBuffer = (strBuffer + "G");
} else {
if (_local2 == 72){
strBuffer = (strBuffer + "H");
} else {
if (_local2 == 84){
strBuffer = (strBuffer + "T");
} else {
if (_local2 == 89){
strBuffer = (strBuffer + "Y");
if (strBuffer == "NAUGHTY"){
if (bHoldTeacher == true){
bHoldTeacher = false;
btnNaughty.gotoAndStop(1);
} else {
bHoldTeacher = true;
btnNaughty.gotoAndStop(2);
};
trace(bHoldTeacher);
};
} else {
if (_local2 == 72){
finisher_jen.gotoAndStop(1);
} else {
if (_local2 == 73){
wndTricks.y = -700;
wndLevel.y = 645;
} else {
if (_local2 == 76){
finisher_jen.gotoAndStop(2);
} else {
if (_local2 == 77){
wndLevel.y = -10;
wndTricks.y = 0;
} else {
if (_local2 == 32){
spacePressed();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function resetAfterFinisher():void{
iMode = 1;
strBuffer = "";
sprCrawl1.alpha = 1;
sprCrawl2.alpha = 1;
objWedgieGirl.gotoAndStop(1);
iActiveWedgie = 0;
iComboScore = 0;
iComboMultiplier = 0;
showFinishBubble();
}
public function myTimer():void{
var _local1:*;
var _local2:*;
var _local3:*;
if (iTeacherWalking > 0){
iTeacherWalking++;
if (iTeacherWalking == 15){
tweenTeacher.stop();
wndClassroom.sprTeacherWindow.x = -80;
if (iMode > 0){
iMode = 3;
startSpank();
} else {
iMode = 5;
wndTeacherWatching.x = 120;
};
} else {
if ((((iTeacherWalking == 19)) && ((iMode == 5)))){
if (sprMara.char.currentFrame < 25){
doWedgie(0, 0, 0);
};
if (sprLizzie.char.currentFrame < 25){
doWedgie(0, 1, 0);
};
if (sprChloe.char.currentFrame < 25){
doWedgie(1, 0, 0);
};
if (sprJen.char.currentFrame < 25){
doWedgie(1, 1, 0);
};
if (sprLaverne.char.currentFrame < 25){
doWedgie(2, 0, 0);
};
if (sprHolly.char.currentFrame < 25){
doWedgie(2, 1, 0);
};
} else {
if ((((iTeacherWalking == 21)) && ((iMode == 5)))){
wndTeacherWatching.x = -400;
wndClassroom.sprTeacherWindow.gotoAndStop(2);
tweenTeacher.stop();
tweenTeacher = new Tween(wndClassroom.sprTeacherWindow, "x", None.easeNone, -80, 110, 4, true);
tweenTeacher.FPS = 40;
} else {
if ((((iTeacherWalking == 33)) && ((iMode == 5)))){
iMode = 0;
iTeacherWalking = 0;
};
};
};
};
};
if (iMode == 0){
degradeAnnoyances();
} else {
if (iMode == 3){
iSpankCount++;
if (iSpankCount == 2){
wndSpank.gotoAndPlay((iBonusSpank + 2));
showPointBubble(0);
iScore = (iScore - 10);
iSpankCounter++;
if (iSpankCounter > 9){
iBonusSpank = 10;
};
if (iScore < 0){
iScore = 0;
};
txtScore.text = ((iScore + "/") + iMaxScore);
if (iScore == 0){
wndSpank.x = -400;
sprChair.gotoAndStop(1);
iMode = 5;
iTeacherWalking = 15;
wndTeacherWatching.x = 120;
iSpankCount = 10;
} else {
iSpankCount = 0;
};
};
} else {
if (iMode == 4){
iRepulseCountdown--;
if (iRepulseCountdown == 7){
if (iCurrentChar == 1){
sprMara.char.gotoAndStop(1);
updateEmotion(1, 0);
} else {
if (iCurrentChar == 2){
sprLizzie.char.gotoAndStop(1);
updateEmotion(2, 0);
} else {
if (iCurrentChar == 3){
sprChloe.char.gotoAndStop(1);
updateEmotion(3, 0);
} else {
if (iCurrentChar == 4){
sprJen.char.gotoAndStop(1);
updateEmotion(4, 0);
} else {
if (iCurrentChar == 5){
sprLaverne.char.gotoAndStop(1);
updateEmotion(5, 0);
} else {
if (iCurrentChar == 6){
sprHolly.char.gotoAndStop(1);
updateEmotion(6, 0);
};
};
};
};
};
};
};
if (iRepulseCountdown < 1){
sprCrawl1.alpha = 1;
sprCrawl2.alpha = 1;
objWedgieGirl.gotoAndStop(1);
iCurrentChar = 0;
iMode = 1;
};
};
};
};
if (iMode == 2){
if (strBuffer.length > 7){
strBuffer = strBuffer.substring((strBuffer.length - 7));
};
_local1 = strBuffer.substring((strBuffer.length - 5));
_local2 = strBuffer.substring((strBuffer.length - 3));
_local3 = strBuffer.substring((strBuffer.length - 2));
if ((((strBuffer == "LLLUUUD")) && ((iStage > 6)))){
if (iCurrentChar == 2){
sprLizzie.char.gotoAndStop(25);
sprLizzie.expression.gotoAndStop(10);
finisherLizzie.y = 96;
resetAfterFinisher();
registerWedgie(10, 100);
wndLevel.wndTask.chk1.gotoAndStop(2);
wndTricks.btnLevel7.keys15.txtKeys.text = "LLLUUUD";
};
} else {
if ((((((strBuffer == "UULLRUD")) || ((strBuffer == "UURRLUD")))) && ((iStage > 6)))){
if (iCurrentChar == 1){
sprMara.char.gotoAndStop(25);
sprMara.expression.gotoAndStop(10);
resetAfterFinisher();
registerWedgie(10, 100);
wndLevel.wndTask.chk4.gotoAndStop(2);
wndTricks.btnLevel7.keys16.txtKeys.text = "UULLRUD or UURRLUD";
};
} else {
if ((((((strBuffer == "LLLRRRD")) || ((strBuffer == "RRRLLLD")))) && ((iStage > 6)))){
if (iCurrentChar == 4){
sprJen.char.gotoAndStop(25);
sprJen.expression.gotoAndStop(10);
finisher_jen.y = 68;
resetAfterFinisher();
registerWedgie(10, 100);
wndLevel.wndTask.chk2.gotoAndStop(2);
wndTricks.btnLevel7.keys17.txtKeys.text = "LLLRRRD or RRRLLLD";
};
} else {
if ((((strBuffer == "UUUUUUD")) && ((iStage > 6)))){
if (iCurrentChar == 3){
sprChloe.char.gotoAndStop(25);
sprChloe.expression.gotoAndStop(10);
finisher_chloe.y = 12;
resetAfterFinisher();
registerWedgie(10, 100);
wndLevel.wndTask.chk5.gotoAndStop(2);
wndTricks.btnLevel7.keys18.txtKeys.text = "UUUUUUD";
};
} else {
if ((((strBuffer == "RRRUUUD")) && ((iStage > 6)))){
if (iCurrentChar == 6){
sprHolly.char.gotoAndStop(25);
sprHolly.expression.gotoAndStop(10);
finisher_Holly.y = 83;
resetAfterFinisher();
registerWedgie(10, 100);
wndLevel.wndTask.chk3.gotoAndStop(2);
wndTricks.btnLevel7.keys19.txtKeys.text = "RRRUUUD";
};
} else {
if ((((((strBuffer == "RRLLUUD")) || ((strBuffer == "LLRRUUD")))) && ((iStage > 6)))){
if (iCurrentChar == 5){
sprLaverne.char.gotoAndStop(25);
sprLaverne.expression.gotoAndStop(10);
resetAfterFinisher();
registerWedgie(10, 100);
wndLevel.wndTask.chk6.gotoAndStop(2);
wndTricks.btnLevel7.keys20.txtKeys.text = "RRLLUUD or LLRRUUD";
};
} else {
if ((((_local1 == "UURRD")) && ((iStage > 4)))){
if ((((((iCurrentChar == 1)) || ((iCurrentChar == 3)))) || ((iCurrentChar == 5)))){
if (checkGirlNeutral(iCurrentChar) == true){
doWedgie(iRow, iCurrentRow, 10);
registerWedgie(10, 50);
resetAfterFinisher();
if (iStage == 5){
wndLevel.wndTask.chk1.gotoAndStop(2);
};
updateEmotion(iCurrentChar, 1);
updateEmotion((iCurrentChar + 1), 1);
wndTricks.btnLevel5.keys10.txtKeys.text = "UURRD";
};
};
} else {
if ((((_local1 == "UULLD")) && ((iStage > 4)))){
if ((((((iCurrentChar == 1)) || ((iCurrentChar == 3)))) || ((iCurrentChar == 5)))){
if (checkGirlNeutral(iCurrentChar) == true){
doWedgie(iRow, iCurrentRow, 11);
registerWedgie(10, 50);
resetAfterFinisher();
if (iStage == 5){
wndLevel.wndTask.chk1.gotoAndStop(2);
};
updateEmotion(iCurrentChar, 1);
updateEmotion((iCurrentChar + 1), 1);
wndTricks.btnLevel5.keys11.txtKeys.text = "UULLD";
};
};
} else {
if ((((((_local1 == "LRUUD")) || ((_local1 == "RLUUD")))) && ((iStage > 4)))){
doWedgie(iRow, iCurrentRow, 5);
registerWedgie(10, 50);
resetAfterFinisher();
if (iStage == 5){
wndLevel.wndTask.chk1.gotoAndStop(2);
};
updateEmotion(iCurrentChar, 3);
wndTricks.btnLevel5.keys12.txtKeys.text = "LRUUD or RLUUD";
} else {
if ((((((_local1 == "ULRUD")) || ((_local1 == "URLUD")))) && ((iStage > 5)))){
if ((((((iCurrentChar == 1)) || ((iCurrentChar == 3)))) || ((iCurrentChar == 5)))){
if (checkGirlNeutral(iCurrentChar) == true){
doWedgie(iRow, iCurrentRow, 12);
registerWedgie(10, 70);
resetAfterFinisher();
if (iStage == 6){
wndLevel.wndTask.chk1.gotoAndStop(2);
};
updateEmotion(iCurrentChar, 1);
updateEmotion((iCurrentChar + 1), 1);
wndTricks.btnLevel6.keys13.txtKeys.text = "ULRUD or URLUD";
};
};
} else {
if ((((((_local1 == "LLRRD")) || ((_local1 == "RRLLD")))) && ((iStage > 5)))){
if ((((((iCurrentChar == 1)) || ((iCurrentChar == 3)))) || ((iCurrentChar == 5)))){
if (checkGirlNeutral(iCurrentChar) == true){
doWedgie(iRow, iCurrentRow, 13);
registerWedgie(10, 70);
resetAfterFinisher();
if (iStage == 6){
wndLevel.wndTask.chk1.gotoAndStop(2);
};
updateEmotion(iCurrentChar, 1);
updateEmotion((iCurrentChar + 1), 1);
wndTricks.btnLevel6.keys14.txtKeys.text = "LLRRD or RRLLD";
};
};
} else {
if ((((_local1 == "UUUUD")) && ((iStage > 3)))){
doWedgie(iRow, iCurrentRow, 3);
registerWedgie(10, 50);
resetAfterFinisher();
if (iStage == 4){
wndLevel.wndTask.chk1.gotoAndStop(2);
};
updateEmotion(iCurrentChar, 1);
wndTricks.btnLevel4.keys7.txtKeys.text = "UUUUD";
} else {
if ((((_local1 == "UUDDD")) && ((iStage > 3)))){
doWedgie(iRow, iCurrentRow, 2);
registerWedgie(10, 50);
resetAfterFinisher();
if (iStage == 4){
wndLevel.wndTask.chk1.gotoAndStop(2);
};
updateEmotion(iCurrentChar, 1);
wndTricks.btnLevel4.keys8.txtKeys.text = "UUDDD";
} else {
if ((((((_local1 == "LUURD")) || ((_local1 == "RUULD")))) && ((iStage > 3)))){
doWedgie(iRow, iCurrentRow, 4);
registerWedgie(10, 50);
resetAfterFinisher();
updateEmotion(iCurrentChar, 1);
wndTricks.btnLevel4.keys9.txtKeys.text = "LUURD or RUULD";
} else {
if ((((_local2 == "LLU")) && ((iStage > 2)))){
objWedgieGirl.gotoAndStop(9);
doWedgie(iRow, iCurrentRow, 6);
registerWedgie(6, 20);
if (iStage == 3){
wndLevel.wndTask.chk1.gotoAndStop(2);
};
updateEmotion(iCurrentChar, 1);
wndTricks.btnLevel3.keys4.txtKeys.text = "LLU";
} else {
if ((((_local2 == "RRU")) && ((iStage > 2)))){
objWedgieGirl.gotoAndStop(8);
doWedgie(iRow, iCurrentRow, 6);
registerWedgie(5, 20);
if (iStage == 3){
wndLevel.wndTask.chk2.gotoAndStop(2);
};
updateEmotion(iCurrentChar, 1);
wndTricks.btnLevel3.keys5.txtKeys.text = "RRU";
} else {
if ((((((_local2 == "LRU")) || ((_local2 == "RLU")))) && ((iStage > 3)))){
objWedgieGirl.gotoAndStop(10);
doWedgie(iRow, iCurrentRow, 6);
registerWedgie(4, 20);
if (iStage == 4){
wndLevel.wndTask.chk2.gotoAndStop(2);
};
updateEmotion(iCurrentChar, 1);
wndTricks.btnLevel4.keys6.txtKeys.text = "LRU or RLU";
} else {
if ((((_local3 == "RR")) && ((iStage > 1)))){
objWedgieGirl.gotoAndStop(6);
doWedgie(iRow, iCurrentRow, 6);
registerWedgie(3, 10);
if (iStage == 2){
wndLevel.wndTask.chk3.gotoAndStop(2);
};
wndTricks.btnLevel2.keys3.txtKeys.text = "RR";
updateEmotion(iCurrentChar, 1);
} else {
if ((((_local3 == "LL")) && ((iStage > 1)))){
objWedgieGirl.gotoAndStop(5);
doWedgie(iRow, iCurrentRow, 6);
registerWedgie(2, 10);
if (iStage == 2){
wndLevel.wndTask.chk2.gotoAndStop(2);
};
wndTricks.btnLevel2.keys2.txtKeys.text = "LL";
updateEmotion(iCurrentChar, 1);
} else {
if ((((_local3 == "UU")) && ((iStage > 1)))){
objWedgieGirl.gotoAndStop(7);
doWedgie(iRow, iCurrentRow, 6);
registerWedgie(1, 10);
if (iStage == 2){
wndLevel.wndTask.chk1.gotoAndStop(2);
};
wndTricks.btnLevel2.keys1.txtKeys.text = "UU";
updateEmotion(iCurrentChar, 1);
} else {
if ((((strBuffer == "NAUGHTY")) && ((iStage > 4)))){
trace("NAUGHTY");
} else {
if (_local3.length > 0){
objWedgieGirl.gotoAndStop(4);
doWedgie(iRow, iCurrentRow, 6);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function moveSpriteLeft():void{
var _local1:*;
var _local2:*;
if (iCurrentRow == 0){
_local1 = sprCrawl2;
_local2 = 60;
} else {
_local1 = sprCrawl1;
_local2 = 158;
};
if (_local1.currentFrame > 2){
_local1.gotoAndStop(1);
} else {
if (_local1.x > _local2){
_local1.x = (_local1.x - 50);
_local1.gotoAndStop((3 - _local1.currentFrame));
} else {
_local1.gotoAndStop((3 - _local1.currentFrame));
};
};
}
public function moveSpriteRight():void{
var _local1:*;
var _local2:*;
if (iCurrentRow == 0){
_local1 = sprCrawl2;
_local2 = 960;
} else {
_local1 = sprCrawl1;
_local2 = 1058;
};
if (_local1.currentFrame < 3){
_local1.gotoAndStop(3);
} else {
if (_local1.x < _local2){
_local1.x = (_local1.x + 50);
_local1.gotoAndStop((5 - (_local1.currentFrame - 2)));
} else {
_local1.gotoAndStop((5 - (_local1.currentFrame - 2)));
};
};
}
public function doWedgie(_arg1, _arg2, _arg3):void{
var _local4:*;
var _local5:*;
var _local6:*;
if (_arg1 == 0){
_local4 = sprMara;
_local5 = sprLizzie;
} else {
if (_arg1 == 1){
_local4 = sprChloe;
_local5 = sprJen;
} else {
_local4 = sprLaverne;
_local5 = sprHolly;
};
};
if (_arg2 == 0){
_local6 = _local4;
} else {
_local6 = _local5;
};
if (_arg3 == 0){
_local6.char.gotoAndStop(1);
_local6.wedgie.gotoAndStop(1);
_local6.expression.gotoAndStop(1);
} else {
if (_arg3 < 5){
_local6.char.gotoAndPlay(5);
_local6.wedgie.gotoAndStop(_arg3);
} else {
if (_arg3 == 5){
_local6.char.gotoAndStop(15);
_local6.wedgie.gotoAndStop(1);
} else {
if (_arg3 == 6){
_local6.char.gotoAndPlay(5);
_local6.wedgie.gotoAndStop(1);
} else {
if (_arg3 == 7){
_local6.char.gotoAndStop(20);
_local6.wedgie.gotoAndStop(1);
} else {
if (_arg3 == 10){
_local5.char.gotoAndStop(5);
_local5.wedgie.gotoAndStop(1);
_local5.expression.gotoAndStop(3);
_local4.char.gotoAndPlay(5);
_local4.wedgie.gotoAndStop(10);
_local4.expression.gotoAndStop(3);
} else {
if (_arg3 == 11){
_local5.char.gotoAndPlay(5);
_local5.wedgie.gotoAndStop(1);
_local5.expression.gotoAndStop(3);
_local4.char.gotoAndStop(5);
_local4.wedgie.gotoAndStop(11);
_local4.expression.gotoAndStop(3);
} else {
if (_arg3 == 12){
_local5.char.gotoAndPlay(5);
_local5.wedgie.gotoAndStop(1);
_local5.expression.gotoAndStop(3);
_local4.char.gotoAndPlay(5);
_local4.wedgie.gotoAndStop(12);
_local4.expression.gotoAndStop(3);
} else {
if (_arg3 == 13){
_local5.char.gotoAndPlay(5);
_local5.wedgie.gotoAndStop(1);
_local5.expression.gotoAndStop(3);
_local4.char.gotoAndPlay(5);
_local4.wedgie.gotoAndStop(13);
_local4.expression.gotoAndStop(3);
};
};
};
};
};
};
};
};
};
}
public function startWedgieMode():void{
iMode = 2;
sprCrawl1.alpha = 0;
sprCrawl2.alpha = 0;
objWedgieGirl.gotoAndStop(2);
}
public function doRepulse():void{
iRepulseCountdown = 10;
iMode = 4;
sprCrawl1.alpha = 0;
sprCrawl2.alpha = 0;
objWedgieGirl.gotoAndStop(3);
if (iCurrentChar == 1){
sprMara.char.gotoAndStop(20);
sprMara.expression.gotoAndStop(10);
} else {
if (iCurrentChar == 2){
sprLizzie.char.gotoAndStop(20);
sprLizzie.expression.gotoAndStop(10);
} else {
if (iCurrentChar == 3){
sprChloe.char.gotoAndStop(20);
sprChloe.expression.gotoAndStop(10);
} else {
if (iCurrentChar == 4){
sprJen.char.gotoAndStop(20);
sprJen.expression.gotoAndStop(10);
} else {
if (iCurrentChar == 5){
sprLaverne.char.gotoAndStop(20);
sprLaverne.expression.gotoAndStop(10);
} else {
if (iCurrentChar == 6){
sprHolly.char.gotoAndStop(20);
sprHolly.expression.gotoAndStop(10);
};
};
};
};
};
};
}
public function registerWedgie(_arg1, _arg2):void{
if (_arg1 != iActiveWedgie){
iActiveWedgie = _arg1;
if ((((iComboScore <= 100)) && (((iComboScore + _arg2) > 100)))){
showBrutalBubble();
};
if ((((((_arg1 == 6)) || ((_arg1 == 5)))) || ((_arg1 == 4)))){
showComboBubble();
};
iComboScore = (iComboScore + _arg2);
iScore = (iScore + _arg2);
if (bRepulseEnabled == true){
arrAnnoyance[iCurrentChar] = (arrAnnoyance[iCurrentChar] + _arg2);
if (arrAnnoyance[iCurrentChar] > 120){
arrAnnoyance[iCurrentChar] = 120;
};
};
if (iScore > iMaxScore){
iScore = iMaxScore;
};
txtScore.text = ((iScore + "/") + iMaxScore);
showPointBubble(_arg2);
if (iScore == iMaxScore){
wndLevel.wndTask.chk0.gotoAndStop(2);
} else {
wndLevel.wndTask.chk0.gotoAndStop(1);
};
if ((((iComboScore > 40)) && ((bHoldTeacher == false)))){
if (iTeacherWalking == 0){
startTeacherWalking();
};
};
};
}
public function showPointBubble(_arg1):void{
var _local2:*;
var _local3:*;
iCurrentPointBubble++;
if (iCurrentPointBubble > 5){
iCurrentPointBubble = 1;
};
if (iCurrentPointBubble == 1){
_local2 = btnPoints1;
} else {
if (iCurrentPointBubble == 2){
_local2 = btnPoints2;
} else {
if (iCurrentPointBubble == 3){
_local2 = btnPoints3;
} else {
if (iCurrentPointBubble == 4){
_local2 = btnPoints4;
} else {
_local2 = btnPoints5;
};
};
};
};
_local2.stop();
if (_arg1 == 20){
_local2.gotoAndStop(2);
} else {
if (_arg1 == 50){
_local2.gotoAndStop(3);
} else {
if (_arg1 == 70){
_local2.gotoAndStop(4);
} else {
if (_arg1 == 100){
_local2.gotoAndStop(5);
} else {
if (_arg1 == 0){
_local2.gotoAndStop(10);
} else {
_local2.gotoAndStop(1);
};
};
};
};
};
if (_arg1 == 0){
_local2.x = ((600 + Math.floor((Math.random() * 100))) + 10);
_local3 = (450 + Math.floor((Math.random() * 20)));
} else {
_local2.x = ((objWedgieGirl.x + Math.floor((Math.random() * 100))) + 10);
_local3 = ((250 + Math.floor((Math.random() * 20))) - (iCurrentRow * 85));
};
if (iCurrentPointBubble == 1){
tweenP1 = new Tween(_local2, "y", Strong.easeIn, _local3, -20, 2, true);
tweenP1.FPS = 40;
} else {
if (iCurrentPointBubble == 2){
tweenP2 = new Tween(_local2, "y", Strong.easeIn, _local3, -20, 2, true);
tweenP2.FPS = 40;
} else {
if (iCurrentPointBubble == 3){
tweenP3 = new Tween(_local2, "y", Strong.easeIn, _local3, -20, 2, true);
tweenP3.FPS = 40;
} else {
if (iCurrentPointBubble == 4){
tweenP4 = new Tween(_local2, "y", Strong.easeIn, _local3, -20, 2, true);
tweenP4.FPS = 40;
} else {
tweenP5 = new Tween(_local2, "y", Strong.easeIn, _local3, -20, 2, true);
tweenP5.FPS = 40;
};
};
};
};
}
public function showBrutalBubble():void{
tweenBrutal.stop();
btnBrutal.x = (objWedgieGirl.x + 50);
btnBrutal.y = (200 - (iCurrentRow * 85));
btnBrutal.rotation = (-10 + Math.floor((Math.random() * 21)));
tweenBrutal = new Tween(btnBrutal, "alpha", Strong.easeIn, 1, 0, 4, true);
tweenBrutal.FPS = 40;
}
public function showFinishBubble():void{
tweenFinish.stop();
btnFinish.x = (objWedgieGirl.x + 350);
btnFinish.y = (200 - (iCurrentRow * 85));
btnFinish.rotation = (-10 + Math.floor((Math.random() * 21)));
tweenFinish = new Tween(btnFinish, "alpha", Strong.easeIn, 1, 0, 4, true);
tweenFinish.FPS = 40;
}
public function showComboBubble():void{
iComboMultiplier++;
tweenCombo.stop();
btnCombo.x = (objWedgieGirl.x + 200);
btnCombo.y = (160 - (iCurrentRow * 85));
btnCombo.rotation = (-10 + Math.floor((Math.random() * 21)));
btnCombo.gotoAndStop(iComboMultiplier);
tweenCombo = new Tween(btnCombo, "alpha", Strong.easeIn, 1, 0, 4, true);
tweenCombo.FPS = 40;
if ((((iComboMultiplier == 3)) && ((iStage == 3)))){
wndLevel.wndTask.chk3.gotoAndStop(2);
};
}
public function checkLevelAchievements():void{
var _local1:* = 0;
if (iStage == 1){
if (wndLevel.wndTask.chk1.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk2.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk3.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk4.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk5.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk6.currentFrame == 2){
_local1++;
};
if (_local1 == 6){
wndLevel.wndTask.chk1.gotoAndStop(1);
wndLevel.wndTask.chk2.gotoAndStop(1);
wndLevel.wndTask.chk3.gotoAndStop(1);
wndLevel.wndTask.chk4.gotoAndStop(1);
wndLevel.wndTask.chk5.gotoAndStop(1);
wndLevel.wndTask.chk6.gotoAndStop(1);
iStage = 2;
wndTricks.btnLevel2.alpha = 1;
iMaxScore = 120;
wndLevel.wndTask.gotoAndStop(2);
wndLevel.y = 645;
};
} else {
if (iStage == 2){
if (wndLevel.wndTask.chk0.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk1.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk2.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk3.currentFrame == 2){
_local1++;
};
if (_local1 == 4){
wndLevel.wndTask.chk0.gotoAndStop(1);
wndLevel.wndTask.chk1.gotoAndStop(1);
wndLevel.wndTask.chk2.gotoAndStop(1);
wndLevel.wndTask.chk3.gotoAndStop(1);
iStage = 3;
wndTricks.btnLevel3.alpha = 1;
iMaxScore = 240;
wndLevel.wndTask.gotoAndStop(3);
wndLevel.y = 645;
};
} else {
if (iStage == 3){
if (wndLevel.wndTask.chk0.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk1.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk2.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk3.currentFrame == 2){
_local1++;
};
if (_local1 == 4){
wndLevel.wndTask.chk0.gotoAndStop(1);
wndLevel.wndTask.chk1.gotoAndStop(1);
wndLevel.wndTask.chk2.gotoAndStop(1);
wndLevel.wndTask.chk3.gotoAndStop(1);
iStage = 4;
wndTricks.btnLevel4.alpha = 1;
iMaxScore = 400;
wndLevel.wndTask.gotoAndStop(4);
wndLevel.y = 645;
bRepulseEnabled = true;
};
} else {
if (iStage == 4){
if (wndLevel.wndTask.chk0.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk1.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk2.currentFrame == 2){
_local1++;
};
if (_local1 == 3){
wndLevel.wndTask.chk0.gotoAndStop(1);
wndLevel.wndTask.chk1.gotoAndStop(1);
wndLevel.wndTask.chk2.gotoAndStop(1);
iStage = 5;
wndTricks.btnLevel5.alpha = 1;
iMaxScore = 800;
wndLevel.wndTask.gotoAndStop(5);
wndLevel.y = 645;
};
} else {
if (iStage == 5){
if (wndLevel.wndTask.chk0.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk1.currentFrame == 2){
_local1++;
};
if (_local1 == 2){
wndLevel.wndTask.chk0.gotoAndStop(1);
wndLevel.wndTask.chk1.gotoAndStop(1);
iStage = 6;
wndTricks.btnLevel6.alpha = 1;
iMaxScore = 1200;
wndLevel.wndTask.gotoAndStop(6);
wndLevel.y = 645;
};
} else {
if (iStage == 6){
if (wndLevel.wndTask.chk0.currentFrame == 2){
_local1++;
};
if (wndLevel.wndTask.chk1.currentFrame == 2){
_local1++;
};
if (_local1 == 2){
wndLevel.wndTask.chk0.gotoAndStop(1);
wndLevel.wndTask.chk1.gotoAndStop(1);
iStage = 7;
wndTricks.btnLevel7.alpha = 1;
iMaxScore = 9999;
txtScore.alpha = 0.5;
wndLevel.wndTask.gotoAndStop(7);
wndLevel.y = 645;
};
};
};
};
};
};
};
}
public function degradeAnnoyances():void{
if (arrAnnoyance[1] > 10){
var _local1 = arrAnnoyance;
var _local2 = 1;
var _local3 = (_local1[_local2] - 1);
_local1[_local2] = _local3;
if (sprMara.char.currentFrame == 1){
updateEmotion(1, 0);
};
};
if (arrAnnoyance[2] > 10){
_local1 = arrAnnoyance;
_local2 = 2;
_local3 = (_local1[_local2] - 1);
_local1[_local2] = _local3;
if (sprLizzie.char.currentFrame == 1){
updateEmotion(2, 0);
};
};
if (arrAnnoyance[3] > 10){
_local1 = arrAnnoyance;
_local2 = 3;
_local3 = (_local1[_local2] - 1);
_local1[_local2] = _local3;
if (sprChloe.char.currentFrame == 1){
updateEmotion(3, 0);
};
};
if (arrAnnoyance[4] > 10){
_local1 = arrAnnoyance;
_local2 = 4;
_local3 = (_local1[_local2] - 1);
_local1[_local2] = _local3;
if (sprJen.char.currentFrame == 1){
updateEmotion(4, 0);
};
};
if (arrAnnoyance[5] > 10){
_local1 = arrAnnoyance;
_local2 = 5;
_local3 = (_local1[_local2] - 1);
_local1[_local2] = _local3;
if (sprLaverne.char.currentFrame == 1){
updateEmotion(5, 0);
};
};
if (arrAnnoyance[6] > 10){
_local1 = arrAnnoyance;
_local2 = 6;
_local3 = (_local1[_local2] - 1);
_local1[_local2] = _local3;
if (sprHolly.char.currentFrame == 1){
updateEmotion(6, 0);
};
};
}
public function updateEmotion(_arg1, _arg2){
var _local3:*;
if (_arg1 == 1){
_local3 = sprMara.expression;
} else {
if (_arg1 == 2){
_local3 = sprLizzie.expression;
} else {
if (_arg1 == 3){
_local3 = sprChloe.expression;
} else {
if (_arg1 == 4){
_local3 = sprJen.expression;
} else {
if (_arg1 == 5){
_local3 = sprLaverne.expression;
} else {
if (_arg1 == 6){
_local3 = sprHolly.expression;
};
};
};
};
};
};
if (_arg2 == 0){
if (arrAnnoyance[_arg1] < 21){
_local3.gotoAndStop(1);
} else {
if (arrAnnoyance[_arg1] < 61){
_local3.gotoAndStop(2);
} else {
_local3.gotoAndStop(3);
};
};
} else {
if (_arg2 == 1){
if (arrAnnoyance[_arg1] < 50){
_local3.gotoAndStop(4);
} else {
if (arrAnnoyance[_arg1] < 100){
_local3.gotoAndStop(5);
} else {
_local3.gotoAndStop(6);
};
};
} else {
_local3.gotoAndStop(10);
};
};
}
public function startSpank():void{
iSpankCount = 0;
iBonusSpank = 0;
iSpankCounter = 0;
sprCrawl1.x = 1500;
sprCrawl2.x = 1500;
sprCrawl1.alpha = 1;
sprCrawl2.alpha = 1;
objWedgieGirl.gotoAndStop(1);
sprChair.gotoAndStop(2);
wndSpank.gotoAndStop(1);
wndSpank.x = 400;
iMode = 3;
}
public function startTeacherWalking():void{
iTeacherWalking = 1;
wndClassroom.sprTeacherWindow.gotoAndStop(1);
tweenTeacher.stop();
tweenTeacher = new Tween(wndClassroom.sprTeacherWindow, "x", None.easeNone, 110, -80, 4, true);
tweenTeacher.FPS = 40;
}
public function checkGirlNeutral(_arg1):Boolean{
var _local2:* = false;
if (_arg1 == 1){
if ((((sprMara.char.currentFrame < 25)) && ((sprLizzie.char.currentFrame < 25)))){
_local2 = true;
};
} else {
if (_arg1 == 3){
if ((((sprChloe.char.currentFrame < 25)) && ((sprJen.char.currentFrame < 25)))){
_local2 = true;
};
} else {
if (_arg1 == 5){
if ((((sprLaverne.char.currentFrame < 25)) && ((sprHolly.char.currentFrame < 25)))){
_local2 = true;
};
};
};
};
return (_local2);
}
function frame1(){
stop();
bTouch = false;
iTouchType = 1;
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
stop();
iMode = 0;
iCurrentRow = 0;
iRow = 0;
iStage = 1;
strBuffer = "";
iCurrentChar = 0;
iRepulseCountdown = 0;
objWedgieGirl = null;
iActiveWedgie = 0;
iScore = 0;
iComboScore = 0;
iMaxScore = 0;
iComboMultiplier = 0;
bRepulseEnabled = false;
arrAnnoyance = [0, 0, 0, 0, 0, 0, 0];
iSpankCount = 0;
iTeacherWalking = 0;
bHoldTeacher = false;
iBonusSpank = 0;
iSpankCounter = 0;
iCurrentPointBubble = 0;
myInterval = setInterval(myTimer, 300);
if (bTouch == true){
btnInfo.scaleX = 2.5;
btnInfo.scaleY = 2.5;
btnInfo.alpha = 0.5;
btnMoves.scaleX = 2.5;
btnMoves.scaleY = 2.5;
btnMoves.x = 125;
btnMoves.alpha = 0.5;
wndTricks.btnClose.scaleX = 2.5;
wndTricks.btnClose.scaleY = 2.5;
wndLevel.btnClose.scaleX = 2.5;
wndLevel.btnClose.scaleY = 2.5;
keyPad.x = 822;
keyPad.gotoAndStop(iTouchType);
};
tweenP1 = new Tween(btnPoints1, "y", Strong.easeIn, -22, -22, 2, true);
tweenP2 = new Tween(btnPoints2, "y", Strong.easeIn, -22, -22, 2, true);
tweenP3 = new Tween(btnPoints3, "y", Strong.easeIn, -22, -22, 2, true);
tweenP4 = new Tween(btnPoints4, "y", Strong.easeIn, -22, -22, 2, true);
tweenP5 = new Tween(btnPoints5, "y", Strong.easeIn, -22, -22, 2, true);
tweenCombo = new Tween(btnCombo, "alpha", Strong.easeIn, 1, 0, 2, true);
tweenBrutal = new Tween(btnBrutal, "alpha", Strong.easeIn, 1, 0, 2, true);
tweenFinish = new Tween(btnFinish, "alpha", Strong.easeIn, 1, 0, 2, true);
tweenTeacher = new Tween(wndClassroom.sprTeacherWindow, "alpha", None.easeNone, 1, 1, 2, true);
wndTricks.btnLevel3.keys4.txtKeys.text = "???";
wndTricks.btnLevel3.keys5.txtKeys.text = "???";
wndTricks.btnLevel4.keys6.txtKeys.text = "???";
wndTricks.btnLevel4.keys7.txtKeys.text = "?????";
wndTricks.btnLevel4.keys8.txtKeys.text = "?????";
wndTricks.btnLevel4.keys9.txtKeys.text = "?????";
wndTricks.btnLevel5.keys10.txtKeys.text = "?????";
wndTricks.btnLevel5.keys11.txtKeys.text = "?????";
wndTricks.btnLevel5.keys12.txtKeys.text = "?????";
wndTricks.btnLevel6.keys13.txtKeys.text = "?????";
wndTricks.btnLevel6.keys14.txtKeys.text = "?????";
wndTricks.btnLevel7.keys15.txtKeys.text = "???????";
wndTricks.btnLevel7.keys16.txtKeys.text = "???????";
wndTricks.btnLevel7.keys17.txtKeys.text = "???????";
wndTricks.btnLevel7.keys18.txtKeys.text = "???????";
wndTricks.btnLevel7.keys19.txtKeys.text = "???????";
wndTricks.btnLevel7.keys20.txtKeys.text = "???????";
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
}
}
}//package Bully_fla
Section 13
//maraExpression_29 (Bully_fla.maraExpression_29)
package Bully_fla {
import flash.display.*;
public dynamic class maraExpression_29 extends MovieClip {
public function maraExpression_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 14
//spr_Chloe_base_32 (Bully_fla.spr_Chloe_base_32)
package Bully_fla {
import flash.display.*;
public dynamic class spr_Chloe_base_32 extends MovieClip {
public function spr_Chloe_base_32(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndPlay(5);
}
}
}//package Bully_fla
Section 15
//sprChair_39 (Bully_fla.sprChair_39)
package Bully_fla {
import flash.display.*;
public dynamic class sprChair_39 extends MovieClip {
public function sprChair_39(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 16
//sprChloeWedgies_34 (Bully_fla.sprChloeWedgies_34)
package Bully_fla {
import flash.display.*;
public dynamic class sprChloeWedgies_34 extends MovieClip {
public function sprChloeWedgies_34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 17
//sprCrawl_13 (Bully_fla.sprCrawl_13)
package Bully_fla {
import flash.display.*;
public dynamic class sprCrawl_13 extends MovieClip {
public function sprCrawl_13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 18
//sprHollyBase_24 (Bully_fla.sprHollyBase_24)
package Bully_fla {
import flash.display.*;
public dynamic class sprHollyBase_24 extends MovieClip {
public function sprHollyBase_24(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndPlay(5);
}
}
}//package Bully_fla
Section 19
//sprHollyWedgie_26 (Bully_fla.sprHollyWedgie_26)
package Bully_fla {
import flash.display.*;
public dynamic class sprHollyWedgie_26 extends MovieClip {
public function sprHollyWedgie_26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 20
//sprJenBasic_20 (Bully_fla.sprJenBasic_20)
package Bully_fla {
import flash.display.*;
public dynamic class sprJenBasic_20 extends MovieClip {
public function sprJenBasic_20(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndPlay(5);
}
}
}//package Bully_fla
Section 21
//sprJenWedgie_22 (Bully_fla.sprJenWedgie_22)
package Bully_fla {
import flash.display.*;
public dynamic class sprJenWedgie_22 extends MovieClip {
public function sprJenWedgie_22(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 22
//sprLaverneBase_36 (Bully_fla.sprLaverneBase_36)
package Bully_fla {
import flash.display.*;
public dynamic class sprLaverneBase_36 extends MovieClip {
public function sprLaverneBase_36(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndPlay(5);
}
}
}//package Bully_fla
Section 23
//sprLaverneWedgies_38 (Bully_fla.sprLaverneWedgies_38)
package Bully_fla {
import flash.display.*;
public dynamic class sprLaverneWedgies_38 extends MovieClip {
public function sprLaverneWedgies_38(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 24
//sprLizzie_16 (Bully_fla.sprLizzie_16)
package Bully_fla {
import flash.display.*;
public dynamic class sprLizzie_16 extends MovieClip {
public function sprLizzie_16(){
addFrameScript(0, frame1, 8, frame9, 14, frame15);
}
function frame1(){
stop();
}
function frame9(){
gotoAndPlay(5);
}
function frame15(){
stop();
}
}
}//package Bully_fla
Section 25
//sprLizzieWedgie_18 (Bully_fla.sprLizzieWedgie_18)
package Bully_fla {
import flash.display.*;
public dynamic class sprLizzieWedgie_18 extends MovieClip {
public function sprLizzieWedgie_18(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 26
//sprMara_28 (Bully_fla.sprMara_28)
package Bully_fla {
import flash.display.*;
public dynamic class sprMara_28 extends MovieClip {
public function sprMara_28(){
addFrameScript(0, frame1, 8, frame9, 14, frame15);
}
function frame1(){
stop();
}
function frame9(){
gotoAndPlay(5);
}
function frame15(){
stop();
}
}
}//package Bully_fla
Section 27
//sprMaraWedgies_30 (Bully_fla.sprMaraWedgies_30)
package Bully_fla {
import flash.display.*;
public dynamic class sprMaraWedgies_30 extends MovieClip {
public function sprMaraWedgies_30(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 28
//sprTeacherWindow_6 (Bully_fla.sprTeacherWindow_6)
package Bully_fla {
import flash.display.*;
public dynamic class sprTeacherWindow_6 extends MovieClip {
public function sprTeacherWindow_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 29
//sprWedgieGirl_14 (Bully_fla.sprWedgieGirl_14)
package Bully_fla {
import flash.display.*;
public dynamic class sprWedgieGirl_14 extends MovieClip {
public function sprWedgieGirl_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 30
//wndSpank_47 (Bully_fla.wndSpank_47)
package Bully_fla {
import flash.display.*;
public dynamic class wndSpank_47 extends MovieClip {
public function wndSpank_47(){
addFrameScript(0, frame1, 2, frame3, 10, frame11, 12, frame13);
}
function frame1(){
stop();
}
function frame3(){
gotoAndStop(1);
}
function frame11(){
stop();
}
function frame13(){
gotoAndStop(11);
}
}
}//package Bully_fla
Section 31
//wndTask_73 (Bully_fla.wndTask_73)
package Bully_fla {
import flash.display.*;
public dynamic class wndTask_73 extends MovieClip {
public var chk0:MovieClip;
public var chk1:MovieClip;
public var chk2:MovieClip;
public var chk3:MovieClip;
public var chk4:MovieClip;
public var chk5:MovieClip;
public var chk6:MovieClip;
public function wndTask_73(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Bully_fla
Section 32
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 33
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 34
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
public var isPlaying:Boolean;// = false
public var obj:Object;// = null
public var prop:String;// = ""
public var func:Function;
public var begin:Number;// = NAN
public var change:Number;// = NAN
public var useSeconds:Boolean;// = false
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var looping:Boolean;// = false
private var _duration:Number;// = NAN
private var _time:Number;// = NAN
private var _fps:Number;// = NAN
private var _position:Number;// = NAN
private var _startTime:Number;// = NAN
private var _intervalID:uint;// = 0
private var _finish:Number;// = NAN
private var _timer:Timer;// = null
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function get time():Number{
return (this._time);
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get FPS():Number{
return (this._fps);
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
}
}//package fl.transitions
Section 35
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_RESUME:String = "motionResume";
public static const MOTION_LOOP:String = "motionLoop";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 36
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 37
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package