Section 1
//MochiScores (mochi.MochiScores)
package mochi {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public static function showLeaderboard(_arg1:Object=null):void{
var options = _arg1;
if (options != null){
if (options.clip != null){
if ((options.clip is Sprite)){
MochiServices.setContainer(options.clip);
};
delete options.clip;
} else {
MochiServices.setContainer();
};
MochiServices.stayOnTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
//unresolved jump
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
//unresolved jump
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.play();
//unresolved jump
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2);
}
public static function requestList(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_requestList", null, _arg1, _arg2);
}
public static function scoresArrayToObjects(_arg1:Object):Object{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
_local2 = {};
for (_local7 in _arg1) {
if (typeof(_arg1[_local7]) == "object"){
if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){
_local2[_local7] = [];
_local5 = _arg1[_local7];
_local4 = 0;
while (_local4 < _local5.rows.length) {
_local6 = {};
_local3 = 0;
while (_local3 < _local5.cols.length) {
_local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3];
_local3++;
};
_local2[_local7].push(_local6);
_local4++;
};
} else {
_local2[_local7] = {};
for (_local8 in _arg1[_local7]) {
_local2[_local7][_local8] = _arg1[_local7][_local8];
};
};
} else {
_local2[_local7] = _arg1[_local7];
};
};
return (_local2);
}
public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (_arg1 != null){
if (_arg1.error != null){
if (_arg1.error == true){
if (onErrorHandler != null){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
};
};
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi
Section 2
//MochiServices (mochi.MochiServices)
package mochi {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiServices {
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _swfVersion:String;
private static var _sendChannel:LocalConnection;
private static var _rcvChannelName:String;
private static var _gatewayURL:String = "http://www.mochiads.com/static/lib/services/services.swf";
private static var _clip:MovieClip;
private static var _loader:Loader;
private static var _id:String;
private static var _listenChannel:LocalConnection;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _startTime:Number;
private static var _connecting:Boolean = false;
public static var onError:Object;
private static var _listenChannelName:String = "__mochiservices";
private static var _rcvChannel:LocalConnection;
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
onError("NotConnected");
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
};
if (_clip != null){
if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){
_clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_clip._nextcallbackID++;
};
};
}
public static function get connected():Boolean{
return (_connected);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (_clip != null){
if (_clip._queue != null){
while (_clip._queue.length > 0) {
_local2 = _clip._queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _clip._callbacks[_local2.callbackID];
};
delete _clip._callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
public static function get childClip():Object{
return (_clip);
}
public static function get id():String{
return (_id);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
public static function getVersion():String{
return ("1.32");
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_listenChannel.close();
_rcvChannel.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
Security.allowDomain("*");
Security.allowInsecureDomain("*");
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
return (_local2);
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
if (_clip.parent != null){
Sprite(_clip.parent).removeChild(_clip);
};
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_arg1 != null){
if ((_arg1 is Sprite)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is Sprite)){
Sprite(_container).addChild(_clip);
};
};
}
private static function onStatus(_arg1:StatusEvent):void{
switch (_arg1.level){
case "error":
_connected = false;
_listenChannel.connect(_listenChannelName);
break;
};
}
private static function initComChannels():void{
if (!_connected){
_sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion()});
_rcvChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_clip.onReceive = function (_arg1:Object):void{
var cb:String;
var cblst:Object;
var method:*;
var methodName:String;
var obj:Object;
var pkg = _arg1;
cb = pkg.callbackID;
cblst = this.client._callbacks[cb];
if (!cblst){
return;
};
method = cblst.callbackMethod;
methodName = "";
obj = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
//unresolved jump
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
};
};
};
delete this.client._callbacks[cb];
};
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
_rcvChannel.connect(_rcvChannelName);
_connecting = false;
_connected = true;
_listenChannel.close();
while (_clip._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function listen():void{
_listenChannel = new LocalConnection();
_listenChannel.client = _clip;
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
_listenChannel.allowDomain("*", "localhost");
_listenChannel.allowInsecureDomain("*", "localhost");
_listenChannel.connect(_listenChannelName);
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
public static function get clip():Object{
return (_container);
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
_rcvChannelName = _arg1;
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var clipname:String;
var f:Function;
var req:URLRequest;
var id = _arg1;
var clip = _arg2;
clipname = ("_mochiservices_com_" + id);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
MochiServices.allowDomains(_gatewayURL);
_clip = createEmptyMovieClip(clip, clipname, 10336, false);
_loader = new Loader();
_timer = new Timer(1000, 0);
_startTime = getTimer();
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
f = function (_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
MochiServices.disconnect();
MochiServices.onError("IOError");
};
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f);
req = new URLRequest(_gatewayURL);
_loader.load(req);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain("*", "localhost");
_rcvChannel.allowInsecureDomain("*", "localhost");
_rcvChannel.client = _clip;
_clip._nextcallbackID = 0;
_clip._callbacks = {};
listen();
return (_clip);
}
public static function bringToTop(_arg1:Event):void{
var e = _arg1;
if (MochiServices.clip != null){
if (MochiServices.childClip != null){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
};
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
if ((clip is DisplayObject)){
if (((!(_connected)) && ((_clip == null)))){
_connecting = true;
init(id, clip);
};
//unresolved jump
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
};
};
};
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{
var mc:MovieClip;
var parent = _arg1;
var name = _arg2;
var depth = _arg3;
var doAdd = _arg4;
mc = new MovieClip();
if (doAdd){
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
};
try {
parent[name] = mc;
} catch(e:Error) {
throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
mc["_name"] = name;
return (mc);
}
public static function connectWait(_arg1:TimerEvent):void{
if ((getTimer() - _startTime) > 10000){
if (!_connected){
_clip._mochiad_ctr_failed = true;
MochiServices.disconnect();
MochiServices.onError("IOError");
};
_timer.stop();
};
}
}
}//package mochi
Section 3
//AAbutton_17 (PAM2008_fla.AAbutton_17)
package PAM2008_fla {
import flash.display.*;
public dynamic class AAbutton_17 extends MovieClip {
public function AAbutton_17(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package PAM2008_fla
Section 4
//anterior17box_7 (PAM2008_fla.anterior17box_7)
package PAM2008_fla {
import flash.display.*;
public dynamic class anterior17box_7 extends MovieClip {
public function anterior17box_7(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package PAM2008_fla
Section 5
//anterior8box_5 (PAM2008_fla.anterior8box_5)
package PAM2008_fla {
import flash.display.*;
public dynamic class anterior8box_5 extends MovieClip {
public function anterior8box_5(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package PAM2008_fla
Section 6
//begin_48 (PAM2008_fla.begin_48)
package PAM2008_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class begin_48 extends MovieClip {
public function begin_48(){
addFrameScript(29, frame30, 30, frame31, 31, frame32, 65, frame66, 100, frame101);
}
function frame101(){
MovieClip(root).Zing.play();
}
function frame30(){
this.gotoAndPlay("begin");
}
function frame31(){
stop();
}
function frame32(){
MovieClip(root).Zing.play();
}
function frame66(){
MovieClip(root).Zing.play();
}
}
}//package PAM2008_fla
Section 7
//feedback_1 (PAM2008_fla.feedback_1)
package PAM2008_fla {
import flash.display.*;
public dynamic class feedback_1 extends MovieClip {
public function feedback_1(){
addFrameScript(0, frame1, 5, frame6, 13, frame14, 19, frame20, 25, frame26, 31, frame32, 37, frame38, 43, frame44, 49, frame50, 55, frame56, 61, frame62, 67, frame68, 73, frame74, 79, frame80, 85, frame86);
}
function frame74(){
stop();
}
function frame80(){
stop();
}
function frame86(){
stop();
}
function frame14(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame26(){
stop();
}
function frame20(){
stop();
}
function frame38(){
stop();
}
function frame44(){
stop();
}
function frame32(){
stop();
}
function frame56(){
stop();
}
function frame50(){
stop();
}
function frame62(){
stop();
}
function frame68(){
stop();
}
}
}//package PAM2008_fla
Section 8
//hand_27 (PAM2008_fla.hand_27)
package PAM2008_fla {
import flash.display.*;
public dynamic class hand_27 extends MovieClip {
public function hand_27(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
this.gotoAndStop("point");
}
function frame1(){
stop();
}
}
}//package PAM2008_fla
Section 9
//LEVELONEbox_2 (PAM2008_fla.LEVELONEbox_2)
package PAM2008_fla {
import flash.display.*;
public dynamic class LEVELONEbox_2 extends MovieClip {
public function LEVELONEbox_2(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package PAM2008_fla
Section 10
//LEVELTHREEbox_4 (PAM2008_fla.LEVELTHREEbox_4)
package PAM2008_fla {
import flash.display.*;
public dynamic class LEVELTHREEbox_4 extends MovieClip {
public function LEVELTHREEbox_4(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package PAM2008_fla
Section 11
//LEVELTWObox_3 (PAM2008_fla.LEVELTWObox_3)
package PAM2008_fla {
import flash.display.*;
public dynamic class LEVELTWObox_3 extends MovieClip {
public function LEVELTWObox_3(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package PAM2008_fla
Section 12
//lock_11 (PAM2008_fla.lock_11)
package PAM2008_fla {
import flash.display.*;
public dynamic class lock_11 extends MovieClip {
public function lock_11(){
addFrameScript(0, frame1, 7, frame8, 45, frame46, 46, frame47);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
function frame46(){
this.gotoAndPlay("loop");
}
function frame47(){
stop();
}
}
}//package PAM2008_fla
Section 13
//MainTimeline (PAM2008_fla.MainTimeline)
package PAM2008_fla {
import flash.display.*;
import flash.events.*;
import mochi.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var L1APtopScores:Array;
public var L2PScompleteCheck:Boolean;
public var labelBrachialis:MovieClip;
public var SLatissimusDorsi:sLatissimusDorsi;
public var mochiClip1:MovieClip;
public var mochiClip2:MovieClip;
public var labelTrapezius:MovieClip;
public var L3PPmuscleTimes:Array;
public var slowerMuscleScore:TextField;
public var L1AScompleteCheck:Boolean;
public var anteriorWristFlexors:MovieClip;
public var L1PPList:Array;
public var labelSartorius:MovieClip;
public var L3PSmuscleTimes:Array;
public var clickCount:uint;
public var hand:MovieClip;
public var poseBicepsBrachii:MovieClip;
public var celebrationTrack;
public var LEVELTWObox:MovieClip;
public var labelTeresMajor:MovieClip;
public var posePeroneusLongus:MovieClip;
public var posteriorUnderlay:MovieClip;
public var labelInfraspinatus:MovieClip;
public var SBrachioradialis:sBrachioradialis;
public var L1ASscore:TextField;
public var placeShine:Timer;
public var L1PSscan:MovieClip;
public var L2AStopScores:Array;
public var beginL1APbtn:MovieClip;
public var SGastrocnemius:sGastrocnemius;
public var L1PPlock:MovieClip;
public var anteriorTensorFasciaeLatae:MovieClip;
public var L2ASList:Array;
public var labelAdductors:MovieClip;
public var index:uint;
public var fasterMuscle:TextField;
public var someTransform;
public var STricepsBrachii:sTricepsBrachii;
public var fastMuscle:TextField;
public var posteriorGastrocnemius:MovieClip;
public var L3PPcompleteCheck:Boolean;
public var L2APscorebox:MovieClip;
public var greenKnockOutGlow:GlowFilter;
public var myMenu:ContextMenu;
public var anteriorRectusFemoris:MovieClip;
public var L2ASlock:MovieClip;
public var PAMtime:Timer;
public var beginL1PPbtn:MovieClip;
public var Zing:Zing1;
public var L1PPtopScores:Array;
public var L3PPscore:TextField;
public var SSemimembranosus:sSemimembranosus;
public var totalPoints:Number;
public var L2AScomplete:uint;
public var L2APcompleteCheck:Boolean;
public var whiteGlow:GlowFilter;
public var beginL2APbtn:MovieClip;
public var L1PSscore:TextField;
public var muscle:MovieClip;
public var poseBrachialis:MovieClip;
public var SWristFlexors:sWristFlexors;
public var muscleNameDisplay:TextField;
public var anteriorDeltoid:MovieClip;
public var feedbackTimerF:Timer;
public var poseDeltoid:MovieClip;
public var L1APcomplete:uint;
public var posteriorWristExtensors:MovieClip;
public var fastestMuscleScore:TextField;
public var SInfraspinatus:sInfraspinatus;
public var L3PSscorebox:MovieClip;
public var fastMuscleScore:TextField;
public var posteriorGluteusMaximus:MovieClip;
public var clickDiff:Number;
public var anteriorBicepsBrachii:MovieClip;
public var poseSkin:MovieClip;
public var slowestMuscle:TextField;
public var labelTricepsBrachii:MovieClip;
public var fastestMuscle:TextField;
public var STensorFasciaeLatae:sTensorFasciaeLatae;
public var L3PPpoke:MovieClip;
public var whereTo:String;
public var redGlow:GlowFilter;
public var posteriorInfraspinatus:MovieClip;
public var sSquwelch3:Squwelch3;
public var PAMcomplete:uint;
public var STrapezius:sTrapezius;
public var L2PPscorebox:MovieClip;
public var SSartorius:sSartorius;
public var L1APpoke:MovieClip;
public var beginL2PPbtn:MovieClip;
public var timeBar:MovieClip;
public var L2PStopScores:Array;
public var labelTensorFasciaeLatae:MovieClip;
public var SHamstrings:sHamstrings;
public var L2PScomplete:uint;
public var resetL1AP:MovieClip;
public var L2PSList:Array;
public var anterior17box:MovieClip;
public var L1PScompleteCheck:Boolean;
public var resetL1AS:MovieClip;
public var APectoralisMajor:MovieClip;
public var L2APList:Array;
public var pose24box:MovieClip;
public var L1PPcomplete:uint;
public var SAdductors:sAdductors;
public var labelRectusFemoris:MovieClip;
public var beginL3PPbtn:MovieClip;
public var L2PSlock:MovieClip;
public var L2ASscan:MovieClip;
public var seconds:uint;
public var poseTibialisAnterior:MovieClip;
public var anteriorUnderlay:MovieClip;
public var L2APlock:MovieClip;
public var anteriorTibialisAnterior:MovieClip;
public var posteriorDeltoid:MovieClip;
public var correctCount:uint;
public var posteriorWristFlexors:MovieClip;
public var slowMuscle:TextField;
public var anteriorRectusAbdominis:MovieClip;
public var musicOn:Boolean;
public var labelBicepsBrachii:MovieClip;
public var labelTibialisAnterior:MovieClip;
public var SExternalOblique:sExternalOblique;
public var musicChannel;
public var labelRectusAbdominis:MovieClip;
public var L3PSscore:TextField;
public var L2PPcompleteCheck:Boolean;
public var L1PPpoke:MovieClip;
public var SWristExtensors:sWristExtensors;
public var L1ASscorebox:MovieClip;
public var PAMTotalScore:Number;
public var posteriorLatissimusDorsi:MovieClip;
public var labelLatissimusDorsi:MovieClip;
public var L1AStopScores:Array;
public var SGluteusMaximus:sGluteusMaximus;
public var posteriorTeresMajor:MovieClip;
public var SRectusFemoris:sRectusFemoris;
public var SVastusMedialis:sVastusMedialis;
public var resetL3PS:MovieClip;
public var resetL3PP:MovieClip;
public var L1APmuscleTimes:Array;
public var labelHamstrings:MovieClip;
public var poseUnderlay:MovieClip;
public var feedback:MovieClip;
public var L1APcompleteCheck:Boolean;
public var SVastusLateralis:sVastusLateralis;
public var scannerHand:MovieClip;
public var SDeltoid:sDeltoid;
public var anteriorBrachioradialis:MovieClip;
public var AGastrocnemius:MovieClip;
public var L2APscore:TextField;
public var L1ASmuscleTimes:Array;
public var L2PPList:Array;
public var poseSerratusAnterior:MovieClip;
public var AExternalObliques:MovieClip;
public var L1ASready:uint;
public var AQuadriceps:MovieClip;
public var titleTimer:Timer;
public var labelBrachioradialis:MovieClip;
public var anteriorSerratusAnterior:MovieClip;
public var poseRectusAbdominis:MovieClip;
public var labelErectorSpinae:MovieClip;
public var ADeltoid:MovieClip;
public var L2PSscan:MovieClip;
public var SPectoralisMajor:sPectoralisMajor;
public var resetL1PP:MovieClip;
public var resetL1PS:MovieClip;
public var SBicepsBrachii:sBicepsBrachii;
public var labelBicepsFemoris:MovieClip;
public var muscleLabel:MovieClip;
public var posteriorTrapezius:MovieClip;
public var labelSerratusAnterior:MovieClip;
public var L2PPlock:MovieClip;
public var L3PPtopScores:Array;
public var percentageScore:Number;
public var poseLatissimusDorsi:MovieClip;
public var L1PSscorebox:MovieClip;
public var anteriorExternalObliques:MovieClip;
public var scores:TextField;
public var labelWristExtensors:MovieClip;
public var posteriorSemitendinosus:MovieClip;
public var PAMinterface:MovieClip;
public var labelGluteusMaximus:MovieClip;
public var labelVastusMedialis:MovieClip;
public var anteriorSkin:MovieClip;
public var muscleNames:String;
public var L2APcomplete:uint;
public var labelExternalObliques:MovieClip;
public var purpleKnockOutGlow:GlowFilter;
public var SSoleus:sSoleus;
public var L2PPscore:TextField;
public var posteriorSemimembranosus:MovieClip;
public var posteriorAdductors:MovieClip;
public var poseBrachioradialis:MovieClip;
public var poseTricepsBrachii:MovieClip;
public var labelSemimembranosus:MovieClip;
public var L3PPscorebox:MovieClip;
public var L1PStopScores:Array;
public var poseWristFlexors:MovieClip;
public var SPeroneusLongus:sPeroneusLongus;
public var sClick:Click;
public var SErectorSpinae:sErectorSpinae;
public var PAMtopScores:Array;
public var L3PScomplete:uint;
public var posterior15box:MovieClip;
public var dropShadow:DropShadowFilter;
public var SBicepsFemoris:sBicepsFemoris;
public var anteriorTrapezius:MovieClip;
public var L1PPmuscleTimes:Array;
public var posteriorErectorSpinae:MovieClip;
public var anteriorVastusMedialis:MovieClip;
public var anteriorSartorius:MovieClip;
public var splashTimer:Timer;
public var L2PPcomplete:uint;
public var levelTwoNotice:MovieClip;
public var L2APmuscleTimes:Array;
public var L1PSmuscleTimes:Array;
public var L2APpoke:MovieClip;
public var posteriorBicepsFemoris:MovieClip;
public var whereFrom:String;
public var L2ASmuscleTimes:Array;
public var whiteFlash:MovieClip;
public var L1PPcompleteCheck:Boolean;
public var poseGastrocnemius:MovieClip;
public var PAMcompleted:MovieClip;
public var anterior8box:MovieClip;
public var _mochiads_game_id:String;
public var SQuadriceps:sQuadriceps;
public var L2APtopScores:Array;
public var L3PSList:Array;
public var L2ASscore:TextField;
public var slowerMuscle:TextField;
public var anteriorAdductors:MovieClip;
public var labelPeroneusLongus:MovieClip;
public var L1ASList:Array;
public var totalScore:TextField;
public var splashScreen:MovieClip;
public var levelOneNotice:MovieClip;
public var posteriorSkin:MovieClip;
public var redKnockOutGlow:GlowFilter;
public var titleTimerIn:Timer;
public var titleTrack;
public var labelDeltoid:MovieClip;
public var L3PSlock:MovieClip;
public var fasterMuscleScore:TextField;
public var beginL1ASbtn:MovieClip;
public var resetL2AP:MovieClip;
public var L3PScompleteCheck:Boolean;
public var resetL2AS:MovieClip;
public var SSemitendinosus:sSemitendinosus;
public var comments:TextField;
public var L1ASlock:MovieClip;
public var L2ASscorebox:MovieClip;
public var muscleSound:Object;
public var poseSoleus:MovieClip;
public var LEVELONEbox:MovieClip;
public var ARectusAbdominis:MovieClip;
public var AAdductors:MovieClip;
public var L2AScompleteCheck:Boolean;
public var labelSoleus:MovieClip;
public var L2PSscore:TextField;
public var labelExternalOblique:MovieClip;
public var STibialisAnterior:sTibialisAnterior;
public var L1APscorebox:MovieClip;
public var beginL1PSbtn:MovieClip;
public var posteriorHamstrings:MovieClip;
public var poseTensorFasciaeLatae:MovieClip;
public var beginL2ASbtn:MovieClip;
public var slowestMuscleScore:TextField;
public var L2PPpoke:MovieClip;
public var anteriorGastrocnemius:MovieClip;
public var anteriorVastusLateralis:MovieClip;
public var L1AScomplete:uint;
public var labelWristFlexors:MovieClip;
public var L2PPtopScores:Array;
public var posterior8box:MovieClip;
public var L2PPmuscleTimes:Array;
public var labelQuadriceps:MovieClip;
public var SBrachialis:sBrachialis;
public var L1APscore:TextField;
public var labelVastusLateralis:MovieClip;
public var feedbackTimer:Timer;
public var ABicepsBrachii:MovieClip;
public var L2PSmuscleTimes:Array;
public var labelSemitendinosus:MovieClip;
public var slowMuscleScore:TextField;
public var L2PSscorebox:MovieClip;
public var anteriorPectoralisMajor:MovieClip;
public var L3PPList:Array;
public var L1PSList:Array;
public var LEVELTHREEbox:MovieClip;
public var poseWristExtensors:MovieClip;
public var beginL2PSbtn:MovieClip;
public var Buzz:buzz;
public var L1APList:Array;
public var poseExternalOblique:MovieClip;
public var poseGluteusMaximus:MovieClip;
public var STeresMajor:sTeresMajor;
public var L1PPscorebox:MovieClip;
public var posteriorTricepsBrachii:MovieClip;
public var labelPectoralisMajor:MovieClip;
public var poseVastusMedialis:MovieClip;
public var L3PSscan:MovieClip;
public var greenGlow:GlowFilter;
public var toggleMusic:MovieClip;
public var unlockNotice:MovieClip;
public var L3PPlock:MovieClip;
public var L1PSlock:MovieClip;
public var L1ASscan:MovieClip;
public var poseTrapezius:MovieClip;
public var L1PScomplete:uint;
public var L3PStopScores:Array;
public var SSerratusAnterior:sSerratusAnterior;
public var poseSartorius:MovieClip;
public var L1APlock:MovieClip;
public var item1:ContextMenuItem;
public var poseVastusLateralis:MovieClip;
public var AAbutton:MovieClip;
public var L1PPscore:TextField;
public var countdownTimer:Timer;
public var beginL3PSbtn:MovieClip;
public var resetL2PP:MovieClip;
public var resetL2PS:MovieClip;
public var labelGastrocnemius:MovieClip;
public var poseAdductors:MovieClip;
public var SRectusAbdominis:sRectusAbdominus;
public var L3PPcomplete:uint;
public var poseRectusFemoris:MovieClip;
public var posePectoralisMajor:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 7, frame8, 12, frame13, 13, frame14, 22, frame23, 23, frame24, 32, frame33, 33, frame34, 42, frame43, 43, frame44, 52, frame53, 53, frame54, 62, frame63, 63, frame64, 72, frame73, 73, frame74, 83, frame84, 84, frame85, 93, frame94, 94, frame95, 103, frame104, 104, frame105);
}
public function L2AS():void{
var randomizeL2ASArray:*;
var beginL2AS:Function;
var L2ASgoing:Function;
beginL2AS = function (_arg1:MouseEvent){
var countdownFeedback:Function;
var event = _arg1;
countdownFeedback = function (_arg1:TimerEvent){
countdownTimer.removeEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.stop();
beginL2ASbtn.visible = false;
L2ASgoing();
};
hand.stopDrag();
hand.visible = false;
scannerHand.visible = true;
scannerHand.startDrag(true);
L2ASList.sort(randomizeL2ASArray);
L2ASmuscleTimes.splice(0, 17);
totalPoints = 0;
index = 0;
correctCount = 0;
seconds = 101;
percentageScore = 0;
clickCount = 0;
clickDiff = 0;
feedback.visible = false;
labelDeltoid.visible = false;
labelPectoralisMajor.visible = false;
labelBicepsBrachii.visible = false;
labelRectusAbdominis.visible = false;
labelExternalObliques.visible = false;
labelAdductors.visible = false;
labelGastrocnemius.visible = false;
labelTrapezius.visible = false;
labelSerratusAnterior.visible = false;
labelBrachioradialis.visible = false;
labelWristFlexors.visible = false;
labelTensorFasciaeLatae.visible = false;
labelSartorius.visible = false;
labelVastusLateralis.visible = false;
labelRectusFemoris.visible = false;
labelVastusMedialis.visible = false;
labelTibialisAnterior.visible = false;
anteriorDeltoid.alpha = 0.01;
anteriorPectoralisMajor.alpha = 0.01;
anteriorBicepsBrachii.alpha = 0.01;
anteriorRectusAbdominis.alpha = 0.01;
anteriorExternalObliques.alpha = 0.01;
anteriorAdductors.alpha = 0.01;
anteriorGastrocnemius.alpha = 0.01;
anteriorTrapezius.alpha = 0.01;
anteriorSerratusAnterior.alpha = 0.01;
anteriorBrachioradialis.alpha = 0.01;
anteriorWristFlexors.alpha = 0.01;
anteriorTensorFasciaeLatae.alpha = 0.01;
anteriorSartorius.alpha = 0.01;
anteriorVastusLateralis.alpha = 0.01;
anteriorRectusFemoris.alpha = 0.01;
anteriorVastusMedialis.alpha = 0.01;
anteriorTibialisAnterior.alpha = 0.01;
anteriorUnderlay.visible = true;
anteriorUnderlay.mask = scannerHand.scanner;
muscleNameDisplay.text = "";
scores.text = "";
comments.text = "Good Luck. Hunt fast.";
timeBar.visible = false;
fastestMuscleScore.text = "";
fasterMuscleScore.text = "";
fastMuscleScore.text = "";
fastestMuscle.text = "";
fasterMuscle.text = "";
fastMuscle.text = "";
slowestMuscleScore.text = "";
slowerMuscleScore.text = "";
slowMuscleScore.text = "";
slowestMuscle.text = "";
slowerMuscle.text = "";
slowMuscle.text = "";
anteriorSkin.visible = true;
resetL2AS.visible = false;
beginL2ASbtn.gotoAndPlay("countdown");
beginL2ASbtn.removeEventListener(MouseEvent.CLICK, beginL2AS);
countdownTimer = new Timer(3000, 1);
countdownTimer.addEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.start();
};
L2ASgoing = function ():void{
var L2ASticking:Function;
var L2ASnextMuscle:Function;
var clickCounter:Function;
var clickL2ASmuscle:Function;
var L2ASfinish:Function;
L2ASticking = function (_arg1:TimerEvent){
seconds--;
timeBar.scaleX = (seconds / 101);
if (seconds == 0){
removeEventListener(MouseEvent.CLICK, clickCounter);
L2ASList[index].muscle.mask = null;
L2ASList[index].muscle.removeEventListener(MouseEvent.CLICK, clickL2ASmuscle);
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L2ASticking);
scannerHand.stopDrag();
scannerHand.visible = false;
hand.startDrag(true);
hand.visible = true;
anteriorSkin.visible = false;
muscleNameDisplay.text = "";
anteriorUnderlay.mask = null;
anteriorUnderlay.visible = false;
timeBar.visible = false;
anteriorDeltoid.alpha = 0.01;
anteriorPectoralisMajor.alpha = 0.01;
anteriorBicepsBrachii.alpha = 0.01;
anteriorRectusAbdominis.alpha = 0.01;
anteriorExternalObliques.alpha = 0.01;
anteriorAdductors.alpha = 0.01;
anteriorGastrocnemius.alpha = 0.01;
anteriorTrapezius.alpha = 0.01;
anteriorSerratusAnterior.alpha = 0.01;
anteriorBrachioradialis.alpha = 0.01;
anteriorWristFlexors.alpha = 0.01;
anteriorTensorFasciaeLatae.alpha = 0.01;
anteriorSartorius.alpha = 0.01;
anteriorVastusLateralis.alpha = 0.01;
anteriorRectusFemoris.alpha = 0.01;
anteriorVastusMedialis.alpha = 0.01;
anteriorTibialisAnterior.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / 100)) / 20);
scores.text = String(percentageScore);
L2AStopScores.push(percentageScore);
L2ASscore.text = L2AStopScores[0];
if (percentageScore > L2AStopScores[0]){
L2AStopScores[0] = percentageScore;
L2ASscore.text = L2AStopScores[0];
};
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
};
};
};
};
};
};
};
resetL2AS.gotoAndPlay("loop");
whereFrom = "L2AS";
titleFadeIn();
levelCheck();
};
};
L2ASnextMuscle = function ():void{
var nameL2ASmuscle:Function;
nameL2ASmuscle = function ():void{
var playSound:Function;
playSound = function (_arg1:Object){
var _local2:SoundChannel;
_local2 = _arg1.play();
};
muscleNameDisplay.text = L2ASList[index].muscleNames;
playSound(L2ASList[index].muscleSound);
};
L2ASList[index].muscle.addEventListener(MouseEvent.CLICK, clickL2ASmuscle);
seconds = 101;
nameL2ASmuscle();
L2ASList[index].muscle.alpha = 1;
L2ASList[index].muscle.mask = scannerHand.mscanner;
};
clickCounter = function (_arg1:MouseEvent){
clickCount++;
clickDiff = (clickCount - correctCount);
if (clickDiff > 5){
seconds = 1;
};
};
clickL2ASmuscle = function (_arg1:MouseEvent){
var L2ASWhereTo:Function;
var event = _arg1;
L2ASWhereTo = function ():void{
if (correctCount == 17){
removeEventListener(MouseEvent.CLICK, clickCounter);
L2ASfinish();
} else {
removeEventListener(MouseEvent.CLICK, clickCounter);
L2ASgoing();
};
};
scannerHand.gotoAndPlay("scanClick");
Buzz.play();
L2ASmuscleTimes.push({L2ASscoreMuscleName:L2ASList[index].muscleNames, L2ASmuscleScore:seconds, L2ASmuscleScoreLabel:L2ASList[index].muscleLabel});
totalPoints = (totalPoints + seconds);
L2ASList[index].muscle.mask = null;
L2ASList[index].muscle.removeEventListener(MouseEvent.CLICK, clickL2ASmuscle);
index++;
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L2ASticking);
correctCount++;
L2ASWhereTo();
};
L2ASfinish = function ():void{
scannerHand.stopDrag();
scannerHand.x = 0;
scannerHand.y = 0;
scannerHand.visible = false;
hand.startDrag(true);
hand.visible = true;
anteriorUnderlay.mask = null;
anteriorUnderlay.visible = false;
anteriorSkin.visible = false;
muscleNameDisplay.text = "";
timeBar.visible = false;
anteriorDeltoid.alpha = 0.01;
anteriorPectoralisMajor.alpha = 0.01;
anteriorBicepsBrachii.alpha = 0.01;
anteriorRectusAbdominis.alpha = 0.01;
anteriorExternalObliques.alpha = 0.01;
anteriorAdductors.alpha = 0.01;
anteriorGastrocnemius.alpha = 0.01;
anteriorTrapezius.alpha = 0.01;
anteriorSerratusAnterior.alpha = 0.01;
anteriorBrachioradialis.alpha = 0.01;
anteriorWristFlexors.alpha = 0.01;
anteriorTensorFasciaeLatae.alpha = 0.01;
anteriorSartorius.alpha = 0.01;
anteriorVastusLateralis.alpha = 0.01;
anteriorRectusFemoris.alpha = 0.01;
anteriorVastusMedialis.alpha = 0.01;
anteriorTibialisAnterior.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / (correctCount * 10))) / 10);
scores.text = String(percentageScore);
L2AStopScores.push(percentageScore);
L2ASscore.text = L2AStopScores[0];
if (percentageScore > L2AStopScores[0]){
L2AStopScores[0] = percentageScore;
L2ASscore.text = L2AStopScores[0];
};
if (L2AStopScores[0] >= 80){
L2AScomplete++;
};
whereFrom = "L2AS";
levelCheck();
titleFadeIn();
L2ASmuscleTimes.sortOn("L2ASmuscleScore", Array.DESCENDING);
fastestMuscle.text = L2ASmuscleTimes[0].L2ASscoreMuscleName;
fastestMuscleScore.text = L2ASmuscleTimes[0].L2ASmuscleScore;
fasterMuscle.text = L2ASmuscleTimes[1].L2ASscoreMuscleName;
fasterMuscleScore.text = L2ASmuscleTimes[1].L2ASmuscleScore;
fastMuscle.text = L2ASmuscleTimes[2].L2ASscoreMuscleName;
fastMuscleScore.text = L2ASmuscleTimes[2].L2ASmuscleScore;
slowMuscle.text = L2ASmuscleTimes[14].L2ASscoreMuscleName;
slowMuscleScore.text = L2ASmuscleTimes[14].L2ASmuscleScore;
slowerMuscle.text = L2ASmuscleTimes[15].L2ASscoreMuscleName;
slowerMuscleScore.text = L2ASmuscleTimes[15].L2ASmuscleScore;
slowestMuscle.text = L2ASmuscleTimes[16].L2ASscoreMuscleName;
slowestMuscleScore.text = L2ASmuscleTimes[16].L2ASmuscleScore;
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
} else {
if (percentageScore < 86){
feedback.gotoAndStop("pass1");
comments.text = "You can be proud of that effort.";
} else {
if (percentageScore < 90){
feedback.gotoAndStop("pass2");
comments.text = "Oh yeah. Bring it on.";
} else {
if (percentageScore < 92){
feedback.gotoAndStop("pass3");
comments.text = "YES!";
} else {
if (percentageScore < 93){
feedback.gotoAndStop("pass4");
comments.text = "Bang! Cop that.";
} else {
if (percentageScore < 94){
feedback.gotoAndStop("pass5");
comments.text = "Maaaate, that was massive!";
} else {
if (percentageScore < 95){
feedback.gotoAndStop("pass6");
comments.text = "Stand clear. Poke-A-Muscle legend charging through.";
} else {
if (percentageScore >= 95){
feedback.gotoAndStop("pass7");
comments.text = "Seriously dude, you rock!";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
anteriorDeltoid.alpha = 0.01;
anteriorPectoralisMajor.alpha = 0.01;
anteriorBicepsBrachii.alpha = 0.01;
anteriorRectusAbdominis.alpha = 0.01;
anteriorExternalObliques.alpha = 0.01;
anteriorAdductors.alpha = 0.01;
anteriorGastrocnemius.alpha = 0.01;
anteriorTrapezius.alpha = 0.01;
anteriorSerratusAnterior.alpha = 0.01;
anteriorBrachioradialis.alpha = 0.01;
anteriorWristFlexors.alpha = 0.01;
anteriorTensorFasciaeLatae.alpha = 0.01;
anteriorSartorius.alpha = 0.01;
anteriorVastusLateralis.alpha = 0.01;
anteriorRectusFemoris.alpha = 0.01;
anteriorVastusMedialis.alpha = 0.01;
anteriorTibialisAnterior.alpha = 0.01;
comments.text = "";
addEventListener(MouseEvent.CLICK, clickCounter);
timeBar.visible = true;
PAMtime = new Timer(100, 101);
PAMtime.addEventListener(TimerEvent.TIMER, L2ASticking);
PAMtime.start();
L2ASnextMuscle();
};
L2ASList.splice(0, 17);
L2ASList.push({muscle:anteriorDeltoid, muscleNames:"Deltoid", muscleLabel:labelDeltoid, muscleSound:SDeltoid});
L2ASList.push({muscle:anteriorPectoralisMajor, muscleNames:"Pectoralis Major", muscleLabel:labelPectoralisMajor, muscleSound:SPectoralisMajor});
L2ASList.push({muscle:anteriorBicepsBrachii, muscleNames:"Biceps Brachii", muscleLabel:labelBicepsBrachii, muscleSound:SBicepsBrachii});
L2ASList.push({muscle:anteriorRectusAbdominis, muscleNames:"Rectus Abdominis", muscleLabel:labelRectusAbdominis, muscleSound:SRectusAbdominis});
L2ASList.push({muscle:anteriorExternalObliques, muscleNames:"External Obliques", muscleLabel:labelExternalObliques, muscleSound:SExternalOblique});
L2ASList.push({muscle:anteriorAdductors, muscleNames:"Adductors", muscleLabel:labelAdductors, muscleSound:SAdductors});
L2ASList.push({muscle:anteriorGastrocnemius, muscleNames:"Gastrocnemius", muscleLabel:labelGastrocnemius, muscleSound:SGastrocnemius});
L2ASList.push({muscle:anteriorTrapezius, muscleNames:"Trapezius", muscleLabel:labelTrapezius, muscleSound:STrapezius});
L2ASList.push({muscle:anteriorSerratusAnterior, muscleNames:"Serratus Anterior", muscleLabel:labelSerratusAnterior, muscleSound:SSerratusAnterior});
L2ASList.push({muscle:anteriorBrachioradialis, muscleNames:"Brachioradialis", muscleLabel:labelBrachioradialis, muscleSound:SBrachioradialis});
L2ASList.push({muscle:anteriorWristFlexors, muscleNames:"Wrist Flexors", muscleLabel:labelWristFlexors, muscleSound:SWristFlexors});
L2ASList.push({muscle:anteriorTensorFasciaeLatae, muscleNames:"Tensor Fasciae Latae", muscleLabel:labelTensorFasciaeLatae, muscleSound:STensorFasciaeLatae});
L2ASList.push({muscle:anteriorSartorius, muscleNames:"Sartorius", muscleLabel:labelSartorius, muscleSound:SSartorius});
L2ASList.push({muscle:anteriorVastusLateralis, muscleNames:"Vastus Lateralis", muscleLabel:labelVastusLateralis, muscleSound:SVastusLateralis});
L2ASList.push({muscle:anteriorRectusFemoris, muscleNames:"Rectus Femoris", muscleLabel:labelRectusFemoris, muscleSound:SRectusFemoris});
L2ASList.push({muscle:anteriorVastusMedialis, muscleNames:"Vastus Medialis", muscleLabel:labelVastusMedialis, muscleSound:SVastusMedialis});
L2ASList.push({muscle:anteriorTibialisAnterior, muscleNames:"Tibialis Anterior", muscleLabel:labelTibialisAnterior, muscleSound:STibialisAnterior});
randomizeL2ASArray = function (_arg1:Object, _arg2:Object):Number{
return (Math.floor((Math.random() * 16)));
};
L2ASList.sort(randomizeL2ASArray);
muscleNameDisplay.text = "";
comments.text = "LEVEL 2 - Anterior View - Scan Stage Take your time to study the extra muscles on this level.";
scores.text = "";
timeBar.visible = false;
anteriorUnderlay.visible = true;
anteriorSkin.visible = false;
feedback.visible = false;
unlockNotice.visible = false;
labelDeltoid.visible = true;
labelPectoralisMajor.visible = true;
labelBicepsBrachii.visible = true;
labelRectusAbdominis.visible = true;
labelExternalObliques.visible = true;
labelAdductors.visible = true;
labelGastrocnemius.visible = true;
labelTrapezius.visible = true;
labelSerratusAnterior.visible = true;
labelBrachioradialis.visible = true;
labelWristFlexors.visible = true;
labelTensorFasciaeLatae.visible = true;
labelSartorius.visible = true;
labelVastusLateralis.visible = true;
labelRectusFemoris.visible = true;
labelVastusMedialis.visible = true;
labelTibialisAnterior.visible = true;
beginL2ASbtn.visible = false;
resetL2AS.gotoAndStop("reset");
resetL2AS.visible = false;
anteriorDeltoid.alpha = 1;
anteriorPectoralisMajor.alpha = 1;
anteriorBicepsBrachii.alpha = 1;
anteriorRectusAbdominis.alpha = 1;
anteriorExternalObliques.alpha = 1;
anteriorAdductors.alpha = 1;
anteriorGastrocnemius.alpha = 1;
anteriorTrapezius.alpha = 1;
anteriorSerratusAnterior.alpha = 1;
anteriorBrachioradialis.alpha = 1;
anteriorWristFlexors.alpha = 1;
anteriorTensorFasciaeLatae.alpha = 1;
anteriorSartorius.alpha = 1;
anteriorVastusLateralis.alpha = 1;
anteriorRectusFemoris.alpha = 1;
anteriorVastusMedialis.alpha = 1;
anteriorTibialisAnterior.alpha = 1;
LEVELTWObox.gotoAndStop("active");
anterior17box.gotoAndStop("active");
L2ASlock.gotoAndStop("unlockedActive");
L2ASscorebox.gotoAndStop("active");
whereFrom = "L2AS";
beginL2ASbtn.visible = true;
beginL2ASbtn.addEventListener(MouseEvent.CLICK, beginL2AS);
}
public function L2AP():void{
var randomizeL2APArray:*;
var beginL2AP:Function;
var L2APgoing:Function;
beginL2AP = function (_arg1:MouseEvent){
var countdownFeedback:Function;
var event = _arg1;
countdownFeedback = function (_arg1:TimerEvent){
countdownTimer.removeEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.stop();
beginL2APbtn.visible = false;
L2APgoing();
};
L2APList.sort(randomizeL2APArray);
L2APmuscleTimes.splice(0, 17);
totalPoints = 0;
index = 0;
correctCount = 0;
seconds = 101;
percentageScore = 0;
clickCount = 0;
clickDiff = 0;
feedback.visible = false;
labelDeltoid.visible = false;
labelPectoralisMajor.visible = false;
labelBicepsBrachii.visible = false;
labelRectusAbdominis.visible = false;
labelExternalObliques.visible = false;
labelAdductors.visible = false;
labelGastrocnemius.visible = false;
labelTrapezius.visible = false;
labelSerratusAnterior.visible = false;
labelBrachioradialis.visible = false;
labelWristFlexors.visible = false;
labelTensorFasciaeLatae.visible = false;
labelSartorius.visible = false;
labelVastusLateralis.visible = false;
labelRectusFemoris.visible = false;
labelVastusMedialis.visible = false;
labelTibialisAnterior.visible = false;
anteriorDeltoid.alpha = 0.01;
anteriorPectoralisMajor.alpha = 0.01;
anteriorBicepsBrachii.alpha = 0.01;
anteriorRectusAbdominis.alpha = 0.01;
anteriorExternalObliques.alpha = 0.01;
anteriorAdductors.alpha = 0.01;
anteriorGastrocnemius.alpha = 0.01;
anteriorTrapezius.alpha = 0.01;
anteriorSerratusAnterior.alpha = 0.01;
anteriorBrachioradialis.alpha = 0.01;
anteriorWristFlexors.alpha = 0.01;
anteriorTensorFasciaeLatae.alpha = 0.01;
anteriorSartorius.alpha = 0.01;
anteriorVastusLateralis.alpha = 0.01;
anteriorRectusFemoris.alpha = 0.01;
anteriorVastusMedialis.alpha = 0.01;
anteriorTibialisAnterior.alpha = 0.01;
anteriorUnderlay.visible = true;
anteriorSkin.visible = false;
muscleNameDisplay.text = "";
scores.text = "";
comments.text = "Good Luck. Poke fast.";
timeBar.visible = false;
fastestMuscleScore.text = "";
fasterMuscleScore.text = "";
fastMuscleScore.text = "";
fastestMuscle.text = "";
fasterMuscle.text = "";
fastMuscle.text = "";
slowestMuscleScore.text = "";
slowerMuscleScore.text = "";
slowMuscleScore.text = "";
slowestMuscle.text = "";
slowerMuscle.text = "";
slowMuscle.text = "";
anteriorSkin.visible = true;
resetL2AP.visible = false;
beginL2APbtn.gotoAndPlay("countdown");
beginL2APbtn.removeEventListener(MouseEvent.CLICK, beginL2AP);
countdownTimer = new Timer(3000, 1);
countdownTimer.addEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.start();
};
L2APgoing = function ():void{
var L2APticking:Function;
var L2APnextMuscle:Function;
var clickCounter:Function;
var clickL2APmuscle:Function;
var L2APfinish:Function;
L2APticking = function (_arg1:TimerEvent){
seconds--;
timeBar.scaleX = (seconds / 101);
L2APList[index].muscle.alpha = ((seconds / -100) + 1);
if (seconds == 0){
removeEventListener(MouseEvent.CLICK, clickCounter);
L2APList[index].muscle.removeEventListener(MouseEvent.MOUSE_DOWN, clickL2APmuscle);
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L2APticking);
anteriorSkin.visible = false;
muscleNameDisplay.text = "";
anteriorUnderlay.visible = false;
timeBar.visible = false;
anteriorDeltoid.alpha = 0.01;
anteriorPectoralisMajor.alpha = 0.01;
anteriorBicepsBrachii.alpha = 0.01;
anteriorRectusAbdominis.alpha = 0.01;
anteriorExternalObliques.alpha = 0.01;
anteriorAdductors.alpha = 0.01;
anteriorGastrocnemius.alpha = 0.01;
anteriorTrapezius.alpha = 0.01;
anteriorSerratusAnterior.alpha = 0.01;
anteriorBrachioradialis.alpha = 0.01;
anteriorWristFlexors.alpha = 0.01;
anteriorTensorFasciaeLatae.alpha = 0.01;
anteriorSartorius.alpha = 0.01;
anteriorVastusLateralis.alpha = 0.01;
anteriorRectusFemoris.alpha = 0.01;
anteriorVastusMedialis.alpha = 0.01;
anteriorTibialisAnterior.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / 100)) / 20);
scores.text = String(percentageScore);
L2APtopScores.push(percentageScore);
L2APscore.text = L2APtopScores[0];
if (percentageScore > L2APtopScores[0]){
L2APtopScores[0] = percentageScore;
L2APscore.text = L2APtopScores[0];
};
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
};
};
};
};
};
};
};
resetL2AP.gotoAndPlay("loop");
whereFrom = "L2AP";
titleFadeIn();
levelCheck();
};
};
L2APnextMuscle = function ():void{
var nameL2APmuscle:Function;
nameL2APmuscle = function ():void{
var playSound:Function;
playSound = function (_arg1:Object){
var _local2:SoundChannel;
_local2 = _arg1.play();
};
muscleNameDisplay.text = L2APList[index].muscleNames;
playSound(L2APList[index].muscleSound);
};
L2APList[index].muscle.addEventListener(MouseEvent.MOUSE_DOWN, clickL2APmuscle);
seconds = 101;
nameL2APmuscle();
};
clickCounter = function (_arg1:MouseEvent){
clickCount++;
clickDiff = (clickCount - correctCount);
if (clickDiff > 5){
seconds = 1;
};
};
clickL2APmuscle = function (_arg1:MouseEvent){
var L2APWhereTo:Function;
var event = _arg1;
L2APWhereTo = function ():void{
if (correctCount == 17){
removeEventListener(MouseEvent.CLICK, clickCounter);
L2APfinish();
} else {
removeEventListener(MouseEvent.CLICK, clickCounter);
L2APgoing();
};
};
sSquwelch3.play();
L2APmuscleTimes.push({L2APscoreMuscleName:L2APList[index].muscleNames, L2APmuscleScore:seconds, L2APmuscleScoreLabel:L2APList[index].muscleLabel});
totalPoints = (totalPoints + seconds);
L2APList[index].muscle.removeEventListener(MouseEvent.MOUSE_DOWN, clickL2APmuscle);
index++;
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L2APticking);
correctCount++;
L2APWhereTo();
};
L2APfinish = function ():void{
anteriorSkin.visible = false;
anteriorUnderlay.visible = false;
muscleNameDisplay.text = "";
timeBar.visible = false;
anteriorDeltoid.alpha = 0.01;
anteriorPectoralisMajor.alpha = 0.01;
anteriorBicepsBrachii.alpha = 0.01;
anteriorRectusAbdominis.alpha = 0.01;
anteriorExternalObliques.alpha = 0.01;
anteriorAdductors.alpha = 0.01;
anteriorGastrocnemius.alpha = 0.01;
anteriorTrapezius.alpha = 0.01;
anteriorSerratusAnterior.alpha = 0.01;
anteriorBrachioradialis.alpha = 0.01;
anteriorWristFlexors.alpha = 0.01;
anteriorTensorFasciaeLatae.alpha = 0.01;
anteriorSartorius.alpha = 0.01;
anteriorVastusLateralis.alpha = 0.01;
anteriorRectusFemoris.alpha = 0.01;
anteriorVastusMedialis.alpha = 0.01;
anteriorTibialisAnterior.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / (correctCount * 10))) / 10);
scores.text = String(percentageScore);
L2APtopScores.push(percentageScore);
L2APscore.text = L2APtopScores[0];
if (percentageScore > L2APtopScores[0]){
L2APtopScores[0] = percentageScore;
L2APscore.text = L2APtopScores[0];
};
if (L2APtopScores[0] >= 80){
L2APcomplete++;
};
whereFrom = "L2AP";
levelCheck();
titleFadeIn();
L2APmuscleTimes.sortOn("L2APmuscleScore", Array.DESCENDING);
fastestMuscle.text = L2APmuscleTimes[0].L2APscoreMuscleName;
fastestMuscleScore.text = L2APmuscleTimes[0].L2APmuscleScore;
fasterMuscle.text = L2APmuscleTimes[1].L2APscoreMuscleName;
fasterMuscleScore.text = L2APmuscleTimes[1].L2APmuscleScore;
fastMuscle.text = L2APmuscleTimes[2].L2APscoreMuscleName;
fastMuscleScore.text = L2APmuscleTimes[2].L2APmuscleScore;
slowMuscle.text = L2APmuscleTimes[14].L2APscoreMuscleName;
slowMuscleScore.text = L2APmuscleTimes[14].L2APmuscleScore;
slowerMuscle.text = L2APmuscleTimes[15].L2APscoreMuscleName;
slowerMuscleScore.text = L2APmuscleTimes[15].L2APmuscleScore;
slowestMuscle.text = L2APmuscleTimes[16].L2APscoreMuscleName;
slowestMuscleScore.text = L2APmuscleTimes[16].L2APmuscleScore;
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
} else {
if (percentageScore < 86){
feedback.gotoAndStop("pass1");
comments.text = "You can be proud of that effort.";
} else {
if (percentageScore < 90){
feedback.gotoAndStop("pass2");
comments.text = "Oh yeah. Bring it on.";
} else {
if (percentageScore < 92){
feedback.gotoAndStop("pass3");
comments.text = "YES!";
} else {
if (percentageScore < 93){
feedback.gotoAndStop("pass4");
comments.text = "Bang! Cop that.";
} else {
if (percentageScore < 94){
feedback.gotoAndStop("pass5");
comments.text = "Maaaate, that was massive!";
} else {
if (percentageScore < 95){
feedback.gotoAndStop("pass6");
comments.text = "Stand clear. Poke-A-Muscle legend charging through.";
} else {
if (percentageScore >= 95){
feedback.gotoAndStop("pass7");
comments.text = "Seriously dude, you rock!";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
anteriorDeltoid.alpha = 0.01;
anteriorPectoralisMajor.alpha = 0.01;
anteriorBicepsBrachii.alpha = 0.01;
anteriorRectusAbdominis.alpha = 0.01;
anteriorExternalObliques.alpha = 0.01;
anteriorAdductors.alpha = 0.01;
anteriorGastrocnemius.alpha = 0.01;
anteriorTrapezius.alpha = 0.01;
anteriorSerratusAnterior.alpha = 0.01;
anteriorBrachioradialis.alpha = 0.01;
anteriorWristFlexors.alpha = 0.01;
anteriorTensorFasciaeLatae.alpha = 0.01;
anteriorSartorius.alpha = 0.01;
anteriorVastusLateralis.alpha = 0.01;
anteriorRectusFemoris.alpha = 0.01;
anteriorVastusMedialis.alpha = 0.01;
anteriorTibialisAnterior.alpha = 0.01;
comments.text = "";
addEventListener(MouseEvent.CLICK, clickCounter);
timeBar.visible = true;
PAMtime = new Timer(100, 101);
PAMtime.addEventListener(TimerEvent.TIMER, L2APticking);
PAMtime.start();
L2APnextMuscle();
};
L2APList.splice(0, 17);
L2APList.push({muscle:anteriorDeltoid, muscleNames:"Deltoid", muscleLabel:labelDeltoid, muscleSound:SDeltoid});
L2APList.push({muscle:anteriorPectoralisMajor, muscleNames:"Pectoralis Major", muscleLabel:labelPectoralisMajor, muscleSound:SPectoralisMajor});
L2APList.push({muscle:anteriorBicepsBrachii, muscleNames:"Biceps Brachii", muscleLabel:labelBicepsBrachii, muscleSound:SBicepsBrachii});
L2APList.push({muscle:anteriorRectusAbdominis, muscleNames:"Rectus Abdominis", muscleLabel:labelRectusAbdominis, muscleSound:SRectusAbdominis});
L2APList.push({muscle:anteriorExternalObliques, muscleNames:"External Obliques", muscleLabel:labelExternalObliques, muscleSound:SExternalOblique});
L2APList.push({muscle:anteriorAdductors, muscleNames:"Adductors", muscleLabel:labelAdductors, muscleSound:SAdductors});
L2APList.push({muscle:anteriorGastrocnemius, muscleNames:"Gastrocnemius", muscleLabel:labelGastrocnemius, muscleSound:SGastrocnemius});
L2APList.push({muscle:anteriorTrapezius, muscleNames:"Trapezius", muscleLabel:labelTrapezius, muscleSound:STrapezius});
L2APList.push({muscle:anteriorSerratusAnterior, muscleNames:"Serratus Anterior", muscleLabel:labelSerratusAnterior, muscleSound:SSerratusAnterior});
L2APList.push({muscle:anteriorBrachioradialis, muscleNames:"Brachioradialis", muscleLabel:labelBrachioradialis, muscleSound:SBrachioradialis});
L2APList.push({muscle:anteriorWristFlexors, muscleNames:"Wrist Flexors", muscleLabel:labelWristFlexors, muscleSound:SWristFlexors});
L2APList.push({muscle:anteriorTensorFasciaeLatae, muscleNames:"Tensor Fasciae Latae", muscleLabel:labelTensorFasciaeLatae, muscleSound:STensorFasciaeLatae});
L2APList.push({muscle:anteriorSartorius, muscleNames:"Sartorius", muscleLabel:labelSartorius, muscleSound:SSartorius});
L2APList.push({muscle:anteriorVastusLateralis, muscleNames:"Vastus Lateralis", muscleLabel:labelVastusLateralis, muscleSound:SVastusLateralis});
L2APList.push({muscle:anteriorRectusFemoris, muscleNames:"Rectus Femoris", muscleLabel:labelRectusFemoris, muscleSound:SRectusFemoris});
L2APList.push({muscle:anteriorVastusMedialis, muscleNames:"Vastus Medialis", muscleLabel:labelVastusMedialis, muscleSound:SVastusMedialis});
L2APList.push({muscle:anteriorTibialisAnterior, muscleNames:"Tibialis Anterior", muscleLabel:labelTibialisAnterior, muscleSound:STibialisAnterior});
randomizeL2APArray = function (_arg1:Object, _arg2:Object):Number{
return (Math.floor((Math.random() * 16)));
};
L2APList.sort(randomizeL2APArray);
muscleNameDisplay.text = "";
comments.text = "LEVEL 2 - Anterior View - Poke Stage";
scores.text = "";
timeBar.visible = false;
anteriorSkin.visible = false;
anteriorUnderlay.visible = true;
feedback.visible = false;
unlockNotice.visible = false;
labelDeltoid.visible = true;
labelPectoralisMajor.visible = true;
labelBicepsBrachii.visible = true;
labelRectusAbdominis.visible = true;
labelExternalObliques.visible = true;
labelAdductors.visible = true;
labelGastrocnemius.visible = true;
labelTrapezius.visible = true;
labelSerratusAnterior.visible = true;
labelBrachioradialis.visible = true;
labelWristFlexors.visible = true;
labelTensorFasciaeLatae.visible = true;
labelSartorius.visible = true;
labelVastusLateralis.visible = true;
labelRectusFemoris.visible = true;
labelVastusMedialis.visible = true;
labelTibialisAnterior.visible = true;
anteriorDeltoid.alpha = 1;
anteriorPectoralisMajor.alpha = 1;
anteriorBicepsBrachii.alpha = 1;
anteriorRectusAbdominis.alpha = 1;
anteriorExternalObliques.alpha = 1;
anteriorAdductors.alpha = 1;
anteriorGastrocnemius.alpha = 1;
anteriorTrapezius.alpha = 1;
anteriorSerratusAnterior.alpha = 1;
anteriorBrachioradialis.alpha = 1;
anteriorWristFlexors.alpha = 1;
anteriorTensorFasciaeLatae.alpha = 1;
anteriorSartorius.alpha = 1;
anteriorVastusLateralis.alpha = 1;
anteriorRectusFemoris.alpha = 1;
anteriorVastusMedialis.alpha = 1;
anteriorTibialisAnterior.alpha = 1;
whereFrom = "L2AP";
resetL2AP.gotoAndStop("reset");
resetL2AP.visible = false;
beginL2APbtn.visible = true;
beginL2APbtn.addEventListener(MouseEvent.CLICK, beginL2AP);
}
function frame14(){
gotoAndStop("L1AntScan");
}
function frame13(){
stop();
L1AS();
}
function frame23(){
stop();
L1AP();
}
function frame24(){
gotoAndStop("L1AntPoke");
}
function frame33(){
stop();
L2AS();
}
function frame34(){
gotoAndStop("L2AntScan");
}
function frame43(){
stop();
L2AP();
}
function frame44(){
gotoAndStop("L2AntPoke");
}
function frame53(){
stop();
L1PS();
}
function frame54(){
gotoAndStop("L1PostScan");
}
function frame63(){
stop();
L1PP();
}
function frame64(){
gotoAndStop("L1PostPoke");
}
function frame73(){
stop();
L2PS();
}
function frame74(){
gotoAndStop("L2PostScan");
}
function frame84(){
stop();
L2PP();
}
function frame85(){
gotoAndStop("L2PostPoke");
}
function frame95(){
gotoAndStop("L3PoseScan");
}
function frame94(){
stop();
L3PS();
}
function frame105(){
gotoAndStop("L3PosePoke");
}
function frame104(){
stop();
L3PP();
}
public function titleFadeOut():void{
var titleVolume:Number;
var titleFading:Function;
titleFading = function ():void{
var _local1:SoundTransform;
titleVolume = (titleVolume - (1 / 20));
_local1 = new SoundTransform(titleVolume, 0);
musicChannel.soundTransform = _local1;
};
titleVolume = 1;
titleTimer = new Timer(100, 20);
titleTimer.addEventListener(TimerEvent.TIMER, titleFading);
titleTimer.start();
}
public function L2PP():void{
var randomizeL2PPArray:*;
var beginL2PP:Function;
var L2PPgoing:Function;
beginL2PP = function (_arg1:MouseEvent){
var countdownFeedback:Function;
var event = _arg1;
countdownFeedback = function (_arg1:TimerEvent){
countdownTimer.removeEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.stop();
beginL2PPbtn.visible = false;
L2PPgoing();
};
L2PPList.sort(randomizeL2PPArray);
L2PPmuscleTimes.splice(0, 15);
totalPoints = 0;
index = 0;
correctCount = 0;
seconds = 101;
percentageScore = 0;
clickCount = 0;
clickDiff = 0;
feedback.visible = false;
labelTrapezius.visible = false;
labelDeltoid.visible = false;
labelTricepsBrachii.visible = false;
labelLatissimusDorsi.visible = false;
labelGluteusMaximus.visible = false;
labelAdductors.visible = false;
labelGastrocnemius.visible = false;
labelInfraspinatus.visible = false;
labelTeresMajor.visible = false;
labelWristExtensors.visible = false;
labelWristFlexors.visible = false;
labelErectorSpinae.visible = false;
labelBicepsFemoris.visible = false;
labelSemimembranosus.visible = false;
labelSemitendinosus.visible = false;
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
posteriorInfraspinatus.alpha = 0.01;
posteriorTeresMajor.alpha = 0.01;
posteriorWristExtensors.alpha = 0.01;
posteriorWristFlexors.alpha = 0.01;
posteriorErectorSpinae.alpha = 0.01;
posteriorBicepsFemoris.alpha = 0.01;
posteriorSemimembranosus.alpha = 0.01;
posteriorSemitendinosus.alpha = 0.01;
posteriorUnderlay.visible = true;
posteriorSkin.visible = false;
muscleNameDisplay.text = "";
scores.text = "";
comments.text = "Good Luck. Poke fast.";
timeBar.visible = false;
fastestMuscleScore.text = "";
fasterMuscleScore.text = "";
fastMuscleScore.text = "";
fastestMuscle.text = "";
fasterMuscle.text = "";
fastMuscle.text = "";
slowestMuscleScore.text = "";
slowerMuscleScore.text = "";
slowMuscleScore.text = "";
slowestMuscle.text = "";
slowerMuscle.text = "";
slowMuscle.text = "";
posteriorSkin.visible = true;
resetL2PP.visible = false;
beginL2PPbtn.gotoAndPlay("countdown");
beginL2PPbtn.removeEventListener(MouseEvent.CLICK, beginL2PP);
countdownTimer = new Timer(3000, 1);
countdownTimer.addEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.start();
};
L2PPgoing = function ():void{
var L2PPticking:Function;
var L2PPnextMuscle:Function;
var clickCounter:Function;
var clickL2PPmuscle:Function;
var L2PPfinish:Function;
L2PPticking = function (_arg1:TimerEvent){
seconds--;
timeBar.scaleX = (seconds / 101);
L2PPList[index].muscle.alpha = ((seconds / -100) + 1);
if (seconds == 0){
removeEventListener(MouseEvent.CLICK, clickCounter);
L2PPList[index].muscle.removeEventListener(MouseEvent.MOUSE_DOWN, clickL2PPmuscle);
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L2PPticking);
posteriorSkin.visible = false;
muscleNameDisplay.text = "";
posteriorUnderlay.visible = false;
timeBar.visible = false;
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
posteriorInfraspinatus.alpha = 0.01;
posteriorTeresMajor.alpha = 0.01;
posteriorWristExtensors.alpha = 0.01;
posteriorWristFlexors.alpha = 0.01;
posteriorErectorSpinae.alpha = 0.01;
posteriorBicepsFemoris.alpha = 0.01;
posteriorSemimembranosus.alpha = 0.01;
posteriorSemitendinosus.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / 100)) / 20);
scores.text = String(percentageScore);
L2PPtopScores.push(percentageScore);
L2PPscore.text = L2PPtopScores[0];
if (percentageScore > L2PPtopScores[0]){
L2PPtopScores[0] = percentageScore;
L2PPscore.text = L2PPtopScores[0];
};
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
};
};
};
};
};
};
};
resetL2PP.gotoAndPlay("loop");
whereFrom = "L2PP";
titleFadeIn();
levelCheck();
};
};
L2PPnextMuscle = function ():void{
var nameL2PPmuscle:Function;
nameL2PPmuscle = function ():void{
var playSound:Function;
playSound = function (_arg1:Object){
var _local2:SoundChannel;
_local2 = _arg1.play();
};
muscleNameDisplay.text = L2PPList[index].muscleNames;
playSound(L2PPList[index].muscleSound);
};
L2PPList[index].muscle.addEventListener(MouseEvent.MOUSE_DOWN, clickL2PPmuscle);
seconds = 101;
nameL2PPmuscle();
};
clickCounter = function (_arg1:MouseEvent){
clickCount++;
clickDiff = (clickCount - correctCount);
if (clickDiff > 5){
seconds = 1;
};
};
clickL2PPmuscle = function (_arg1:MouseEvent){
var L2PPWhereTo:Function;
var event = _arg1;
L2PPWhereTo = function ():void{
if (correctCount == 15){
removeEventListener(MouseEvent.CLICK, clickCounter);
L2PPfinish();
} else {
removeEventListener(MouseEvent.CLICK, clickCounter);
L2PPgoing();
};
};
sSquwelch3.play();
L2PPmuscleTimes.push({L2PPscoreMuscleName:L2PPList[index].muscleNames, L2PPmuscleScore:seconds, L2PPmuscleScoreLabel:L2PPList[index].muscleLabel});
totalPoints = (totalPoints + seconds);
L2PPList[index].muscle.removeEventListener(MouseEvent.MOUSE_DOWN, clickL2PPmuscle);
index++;
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L2PPticking);
correctCount++;
L2PPWhereTo();
};
L2PPfinish = function ():void{
posteriorSkin.visible = false;
posteriorUnderlay.visible = false;
muscleNameDisplay.text = "";
timeBar.visible = false;
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
posteriorInfraspinatus.alpha = 0.01;
posteriorTeresMajor.alpha = 0.01;
posteriorWristExtensors.alpha = 0.01;
posteriorWristFlexors.alpha = 0.01;
posteriorErectorSpinae.alpha = 0.01;
posteriorBicepsFemoris.alpha = 0.01;
posteriorSemimembranosus.alpha = 0.01;
posteriorSemitendinosus.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / (correctCount * 10))) / 10);
scores.text = String(percentageScore);
L2PPtopScores.push(percentageScore);
L2PPscore.text = L2PPtopScores[0];
if (percentageScore > L2PPtopScores[0]){
L2PPtopScores[0] = percentageScore;
L2PPscore.text = L2PPtopScores[0];
};
if (L2PPtopScores[0] >= 80){
L2PPcomplete++;
};
whereFrom = "L2PP";
levelCheck();
titleFadeIn();
L2PPmuscleTimes.sortOn("L2PPmuscleScore", Array.DESCENDING);
fastestMuscle.text = L2PPmuscleTimes[0].L2PPscoreMuscleName;
fastestMuscleScore.text = L2PPmuscleTimes[0].L2PPmuscleScore;
fasterMuscle.text = L2PPmuscleTimes[1].L2PPscoreMuscleName;
fasterMuscleScore.text = L2PPmuscleTimes[1].L2PPmuscleScore;
fastMuscle.text = L2PPmuscleTimes[2].L2PPscoreMuscleName;
fastMuscleScore.text = L2PPmuscleTimes[2].L2PPmuscleScore;
slowMuscle.text = L2PPmuscleTimes[12].L2PPscoreMuscleName;
slowMuscleScore.text = L2PPmuscleTimes[12].L2PPmuscleScore;
slowerMuscle.text = L2PPmuscleTimes[13].L2PPscoreMuscleName;
slowerMuscleScore.text = L2PPmuscleTimes[13].L2PPmuscleScore;
slowestMuscle.text = L2PPmuscleTimes[14].L2PPscoreMuscleName;
slowestMuscleScore.text = L2PPmuscleTimes[14].L2PPmuscleScore;
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
} else {
if (percentageScore < 86){
feedback.gotoAndStop("pass1");
comments.text = "You can be proud of that effort.";
} else {
if (percentageScore < 90){
feedback.gotoAndStop("pass2");
comments.text = "Oh yeah. Bring it on.";
} else {
if (percentageScore < 92){
feedback.gotoAndStop("pass3");
comments.text = "YES!";
} else {
if (percentageScore < 93){
feedback.gotoAndStop("pass4");
comments.text = "Bang! Cop that.";
} else {
if (percentageScore < 94){
feedback.gotoAndStop("pass5");
comments.text = "Maaaate, that was massive!";
} else {
if (percentageScore < 95){
feedback.gotoAndStop("pass6");
comments.text = "Stand clear. Poke-A-Muscle legend charging through.";
} else {
if (percentageScore >= 95){
feedback.gotoAndStop("pass7");
comments.text = "Seriously dude, you rock!";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
posteriorInfraspinatus.alpha = 0.01;
posteriorTeresMajor.alpha = 0.01;
posteriorWristExtensors.alpha = 0.01;
posteriorWristFlexors.alpha = 0.01;
posteriorErectorSpinae.alpha = 0.01;
posteriorBicepsFemoris.alpha = 0.01;
posteriorSemimembranosus.alpha = 0.01;
posteriorSemitendinosus.alpha = 0.01;
comments.text = "";
addEventListener(MouseEvent.CLICK, clickCounter);
timeBar.visible = true;
PAMtime = new Timer(100, 101);
PAMtime.addEventListener(TimerEvent.TIMER, L2PPticking);
PAMtime.start();
L2PPnextMuscle();
};
L2PPList.splice(0, 15);
L2PPList.push({muscle:posteriorTrapezius, muscleNames:"Trapezius", muscleLabel:labelTrapezius, muscleSound:STrapezius});
L2PPList.push({muscle:posteriorDeltoid, muscleNames:"Deltoid", muscleLabel:labelDeltoid, muscleSound:SDeltoid});
L2PPList.push({muscle:posteriorTricepsBrachii, muscleNames:"Triceps Brachii", muscleLabel:labelTricepsBrachii, muscleSound:STricepsBrachii});
L2PPList.push({muscle:posteriorLatissimusDorsi, muscleNames:"Latissimus Dorsi", muscleLabel:labelLatissimusDorsi, muscleSound:SLatissimusDorsi});
L2PPList.push({muscle:posteriorGluteusMaximus, muscleNames:"Gluteus Maximus", muscleLabel:labelGluteusMaximus, muscleSound:SGluteusMaximus});
L2PPList.push({muscle:posteriorAdductors, muscleNames:"Adductors", muscleLabel:labelAdductors, muscleSound:SAdductors});
L2PPList.push({muscle:posteriorGastrocnemius, muscleNames:"Gastrocnemius", muscleLabel:labelGastrocnemius, muscleSound:SGastrocnemius});
L2PPList.push({muscle:posteriorInfraspinatus, muscleNames:"Infraspinatus", muscleLabel:labelInfraspinatus, muscleSound:SInfraspinatus});
L2PPList.push({muscle:posteriorTeresMajor, muscleNames:"Teres Major", muscleLabel:labelTeresMajor, muscleSound:STeresMajor});
L2PPList.push({muscle:posteriorWristFlexors, muscleNames:"Wrist Flexors", muscleLabel:labelWristFlexors, muscleSound:SWristFlexors});
L2PPList.push({muscle:posteriorWristExtensors, muscleNames:"Wrist Extensors", muscleLabel:labelWristExtensors, muscleSound:SWristExtensors});
L2PPList.push({muscle:posteriorErectorSpinae, muscleNames:"Erector Spinae", muscleLabel:labelErectorSpinae, muscleSound:SErectorSpinae});
L2PPList.push({muscle:posteriorBicepsFemoris, muscleNames:"BicepsFemoris", muscleLabel:labelBicepsFemoris, muscleSound:SBicepsFemoris});
L2PPList.push({muscle:posteriorSemimembranosus, muscleNames:"Semimembranosus", muscleLabel:labelSemimembranosus, muscleSound:SSemimembranosus});
L2PPList.push({muscle:posteriorSemitendinosus, muscleNames:"Semitendinosus", muscleLabel:labelSemitendinosus, muscleSound:SSemitendinosus});
randomizeL2PPArray = function (_arg1:Object, _arg2:Object):Number{
return (Math.floor((Math.random() * 14)));
};
L2PPList.sort(randomizeL2PPArray);
muscleNameDisplay.text = "";
comments.text = "LEVEL 2 - Posterior View - Poke Stage";
scores.text = "";
timeBar.visible = false;
posteriorSkin.visible = false;
posteriorUnderlay.visible = true;
feedback.visible = false;
unlockNotice.visible = false;
labelTrapezius.visible = true;
labelDeltoid.visible = true;
labelTricepsBrachii.visible = true;
labelLatissimusDorsi.visible = true;
labelGluteusMaximus.visible = true;
labelAdductors.visible = true;
labelGastrocnemius.visible = true;
labelInfraspinatus.visible = true;
labelTeresMajor.visible = true;
labelWristExtensors.visible = true;
labelWristFlexors.visible = true;
labelErectorSpinae.visible = true;
labelBicepsFemoris.visible = true;
labelSemimembranosus.visible = true;
labelSemitendinosus.visible = true;
posteriorTrapezius.alpha = 1;
posteriorDeltoid.alpha = 1;
posteriorTricepsBrachii.alpha = 1;
posteriorLatissimusDorsi.alpha = 1;
posteriorGluteusMaximus.alpha = 1;
posteriorAdductors.alpha = 1;
posteriorGastrocnemius.alpha = 1;
posteriorInfraspinatus.alpha = 1;
posteriorTeresMajor.alpha = 1;
posteriorWristExtensors.alpha = 1;
posteriorWristFlexors.alpha = 1;
posteriorErectorSpinae.alpha = 1;
posteriorBicepsFemoris.alpha = 1;
posteriorSemimembranosus.alpha = 1;
posteriorSemitendinosus.alpha = 1;
whereFrom = "L2PP";
resetL2PP.gotoAndStop("reset");
resetL2PP.visible = false;
beginL2PPbtn.visible = true;
beginL2PPbtn.addEventListener(MouseEvent.CLICK, beginL2PP);
}
public function L2PS():void{
var randomizeL2PSArray:*;
var beginL2PS:Function;
var L2PSgoing:Function;
beginL2PS = function (_arg1:MouseEvent){
var countdownFeedback:Function;
var event = _arg1;
countdownFeedback = function (_arg1:TimerEvent){
countdownTimer.removeEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.stop();
beginL2PSbtn.visible = false;
L2PSgoing();
};
hand.stopDrag();
hand.visible = false;
scannerHand.visible = true;
scannerHand.startDrag(true);
L2PSList.sort(randomizeL2PSArray);
L2PSmuscleTimes.splice(0, 15);
totalPoints = 0;
index = 0;
correctCount = 0;
seconds = 101;
percentageScore = 0;
clickCount = 0;
clickDiff = 0;
feedback.visible = false;
labelTrapezius.visible = false;
labelDeltoid.visible = false;
labelTricepsBrachii.visible = false;
labelLatissimusDorsi.visible = false;
labelGluteusMaximus.visible = false;
labelAdductors.visible = false;
labelGastrocnemius.visible = false;
labelInfraspinatus.visible = false;
labelTeresMajor.visible = false;
labelWristExtensors.visible = false;
labelWristFlexors.visible = false;
labelErectorSpinae.visible = false;
labelBicepsFemoris.visible = false;
labelSemimembranosus.visible = false;
labelSemitendinosus.visible = false;
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
posteriorInfraspinatus.alpha = 0.01;
posteriorTeresMajor.alpha = 0.01;
posteriorWristExtensors.alpha = 0.01;
posteriorWristFlexors.alpha = 0.01;
posteriorErectorSpinae.alpha = 0.01;
posteriorBicepsFemoris.alpha = 0.01;
posteriorSemimembranosus.alpha = 0.01;
posteriorSemitendinosus.alpha = 0.01;
posteriorUnderlay.visible = true;
posteriorUnderlay.mask = scannerHand.scanner;
muscleNameDisplay.text = "";
scores.text = "";
comments.text = "Good Luck. Hunt fast.";
timeBar.visible = false;
fastestMuscleScore.text = "";
fasterMuscleScore.text = "";
fastMuscleScore.text = "";
fastestMuscle.text = "";
fasterMuscle.text = "";
fastMuscle.text = "";
slowestMuscleScore.text = "";
slowerMuscleScore.text = "";
slowMuscleScore.text = "";
slowestMuscle.text = "";
slowerMuscle.text = "";
slowMuscle.text = "";
posteriorSkin.visible = true;
resetL2PS.visible = false;
beginL2PSbtn.gotoAndPlay("countdown");
beginL2PSbtn.removeEventListener(MouseEvent.CLICK, beginL2PS);
countdownTimer = new Timer(3000, 1);
countdownTimer.addEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.start();
};
L2PSgoing = function ():void{
var L2PSticking:Function;
var L2PSnextMuscle:Function;
var clickCounter:Function;
var clickL2PSmuscle:Function;
var L2PSfinish:Function;
L2PSticking = function (_arg1:TimerEvent){
seconds--;
timeBar.scaleX = (seconds / 101);
if (seconds == 0){
removeEventListener(MouseEvent.CLICK, clickCounter);
L2PSList[index].muscle.mask = null;
L2PSList[index].muscle.removeEventListener(MouseEvent.CLICK, clickL2PSmuscle);
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L2PSticking);
scannerHand.stopDrag();
scannerHand.visible = false;
hand.startDrag(true);
hand.visible = true;
posteriorSkin.visible = false;
muscleNameDisplay.text = "";
posteriorUnderlay.mask = null;
posteriorUnderlay.visible = false;
timeBar.visible = false;
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
posteriorInfraspinatus.alpha = 0.01;
posteriorTeresMajor.alpha = 0.01;
posteriorWristExtensors.alpha = 0.01;
posteriorWristFlexors.alpha = 0.01;
posteriorErectorSpinae.alpha = 0.01;
posteriorBicepsFemoris.alpha = 0.01;
posteriorSemimembranosus.alpha = 0.01;
posteriorSemitendinosus.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / 100)) / 20);
scores.text = String(percentageScore);
L2PStopScores.push(percentageScore);
L2PSscore.text = L2PStopScores[0];
if (percentageScore > L2PStopScores[0]){
L2PStopScores[0] = percentageScore;
L2PSscore.text = L2PStopScores[0];
};
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
};
};
};
};
};
};
};
resetL2PS.gotoAndPlay("loop");
whereFrom = "L2PS";
titleFadeIn();
levelCheck();
};
};
L2PSnextMuscle = function ():void{
var nameL2PSmuscle:Function;
nameL2PSmuscle = function ():void{
var playSound:Function;
playSound = function (_arg1:Object){
var _local2:SoundChannel;
_local2 = _arg1.play();
};
muscleNameDisplay.text = L2PSList[index].muscleNames;
playSound(L2PSList[index].muscleSound);
};
L2PSList[index].muscle.addEventListener(MouseEvent.CLICK, clickL2PSmuscle);
seconds = 101;
nameL2PSmuscle();
L2PSList[index].muscle.alpha = 1;
L2PSList[index].muscle.mask = scannerHand.mscanner;
};
clickCounter = function (_arg1:MouseEvent){
clickCount++;
clickDiff = (clickCount - correctCount);
if (clickDiff > 5){
seconds = 1;
};
};
clickL2PSmuscle = function (_arg1:MouseEvent){
var L2PSWhereTo:Function;
var event = _arg1;
L2PSWhereTo = function ():void{
if (correctCount == 15){
removeEventListener(MouseEvent.CLICK, clickCounter);
L2PSfinish();
} else {
removeEventListener(MouseEvent.CLICK, clickCounter);
L2PSgoing();
};
};
scannerHand.gotoAndPlay("scanClick");
Buzz.play();
L2PSmuscleTimes.push({L2PSscoreMuscleName:L2PSList[index].muscleNames, L2PSmuscleScore:seconds, L2PSmuscleScoreLabel:L2PSList[index].muscleLabel});
totalPoints = (totalPoints + seconds);
L2PSList[index].muscle.mask = null;
L2PSList[index].muscle.removeEventListener(MouseEvent.CLICK, clickL2PSmuscle);
index++;
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L2PSticking);
correctCount++;
L2PSWhereTo();
};
L2PSfinish = function ():void{
scannerHand.stopDrag();
scannerHand.x = 0;
scannerHand.y = 0;
scannerHand.visible = false;
hand.startDrag(true);
hand.visible = true;
posteriorUnderlay.mask = null;
posteriorUnderlay.visible = false;
posteriorSkin.visible = false;
muscleNameDisplay.text = "";
timeBar.visible = false;
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
posteriorInfraspinatus.alpha = 0.01;
posteriorTeresMajor.alpha = 0.01;
posteriorWristExtensors.alpha = 0.01;
posteriorWristFlexors.alpha = 0.01;
posteriorErectorSpinae.alpha = 0.01;
posteriorBicepsFemoris.alpha = 0.01;
posteriorSemimembranosus.alpha = 0.01;
posteriorSemitendinosus.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / (correctCount * 10))) / 10);
scores.text = String(percentageScore);
L2PStopScores.push(percentageScore);
L2PSscore.text = L2PStopScores[0];
if (percentageScore > L2PStopScores[0]){
L2PStopScores[0] = percentageScore;
L2PSscore.text = L2PStopScores[0];
};
if (L2PStopScores[0] >= 80){
L2PScomplete++;
};
whereFrom = "L2PS";
levelCheck();
titleFadeIn();
L2PSmuscleTimes.sortOn("L2PSmuscleScore", Array.DESCENDING);
fastestMuscle.text = L2PSmuscleTimes[0].L2PSscoreMuscleName;
fastestMuscleScore.text = L2PSmuscleTimes[0].L2PSmuscleScore;
fasterMuscle.text = L2PSmuscleTimes[1].L2PSscoreMuscleName;
fasterMuscleScore.text = L2PSmuscleTimes[1].L2PSmuscleScore;
fastMuscle.text = L2PSmuscleTimes[2].L2PSscoreMuscleName;
fastMuscleScore.text = L2PSmuscleTimes[2].L2PSmuscleScore;
slowMuscle.text = L2PSmuscleTimes[12].L2PSscoreMuscleName;
slowMuscleScore.text = L2PSmuscleTimes[12].L2PSmuscleScore;
slowerMuscle.text = L2PSmuscleTimes[13].L2PSscoreMuscleName;
slowerMuscleScore.text = L2PSmuscleTimes[13].L2PSmuscleScore;
slowestMuscle.text = L2PSmuscleTimes[14].L2PSscoreMuscleName;
slowestMuscleScore.text = L2PSmuscleTimes[14].L2PSmuscleScore;
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
} else {
if (percentageScore < 86){
feedback.gotoAndStop("pass1");
comments.text = "You can be proud of that effort.";
} else {
if (percentageScore < 90){
feedback.gotoAndStop("pass2");
comments.text = "Oh yeah. Bring it on.";
} else {
if (percentageScore < 92){
feedback.gotoAndStop("pass3");
comments.text = "YES!";
} else {
if (percentageScore < 93){
feedback.gotoAndStop("pass4");
comments.text = "Bang! Cop that.";
} else {
if (percentageScore < 94){
feedback.gotoAndStop("pass5");
comments.text = "Maaaate, that was massive!";
} else {
if (percentageScore < 95){
feedback.gotoAndStop("pass6");
comments.text = "Stand clear. Poke-A-Muscle legend charging through.";
} else {
if (percentageScore >= 95){
feedback.gotoAndStop("pass7");
comments.text = "Seriously dude, you rock!";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
posteriorInfraspinatus.alpha = 0.01;
posteriorTeresMajor.alpha = 0.01;
posteriorWristExtensors.alpha = 0.01;
posteriorWristFlexors.alpha = 0.01;
posteriorErectorSpinae.alpha = 0.01;
posteriorBicepsFemoris.alpha = 0.01;
posteriorSemimembranosus.alpha = 0.01;
posteriorSemitendinosus.alpha = 0.01;
comments.text = "";
addEventListener(MouseEvent.CLICK, clickCounter);
timeBar.visible = true;
PAMtime = new Timer(100, 101);
PAMtime.addEventListener(TimerEvent.TIMER, L2PSticking);
PAMtime.start();
L2PSnextMuscle();
};
L2PSList.splice(0, 15);
L2PSList.push({muscle:posteriorTrapezius, muscleNames:"Trapezius", muscleLabel:labelTrapezius, muscleSound:STrapezius});
L2PSList.push({muscle:posteriorDeltoid, muscleNames:"Deltoid", muscleLabel:labelDeltoid, muscleSound:SDeltoid});
L2PSList.push({muscle:posteriorTricepsBrachii, muscleNames:"Triceps Brachii", muscleLabel:labelTricepsBrachii, muscleSound:STricepsBrachii});
L2PSList.push({muscle:posteriorLatissimusDorsi, muscleNames:"Latissimus Dorsi", muscleLabel:labelLatissimusDorsi, muscleSound:SLatissimusDorsi});
L2PSList.push({muscle:posteriorGluteusMaximus, muscleNames:"Gluteus Maximus", muscleLabel:labelGluteusMaximus, muscleSound:SGluteusMaximus});
L2PSList.push({muscle:posteriorAdductors, muscleNames:"Adductors", muscleLabel:labelAdductors, muscleSound:SAdductors});
L2PSList.push({muscle:posteriorGastrocnemius, muscleNames:"Gastrocnemius", muscleLabel:labelGastrocnemius, muscleSound:SGastrocnemius});
L2PSList.push({muscle:posteriorInfraspinatus, muscleNames:"Infraspinatus", muscleLabel:labelInfraspinatus, muscleSound:SInfraspinatus});
L2PSList.push({muscle:posteriorTeresMajor, muscleNames:"Teres Major", muscleLabel:labelTeresMajor, muscleSound:STeresMajor});
L2PSList.push({muscle:posteriorWristFlexors, muscleNames:"Wrist Flexors", muscleLabel:labelWristFlexors, muscleSound:SWristFlexors});
L2PSList.push({muscle:posteriorWristExtensors, muscleNames:"Wrist Extensors", muscleLabel:labelWristExtensors, muscleSound:SWristExtensors});
L2PSList.push({muscle:posteriorErectorSpinae, muscleNames:"Erector Spinae", muscleLabel:labelErectorSpinae, muscleSound:SErectorSpinae});
L2PSList.push({muscle:posteriorBicepsFemoris, muscleNames:"BicepsFemoris", muscleLabel:labelBicepsFemoris, muscleSound:SBicepsFemoris});
L2PSList.push({muscle:posteriorSemimembranosus, muscleNames:"Semimembranosus", muscleLabel:labelSemimembranosus, muscleSound:SSemimembranosus});
L2PSList.push({muscle:posteriorSemitendinosus, muscleNames:"Semitendinosus", muscleLabel:labelSemitendinosus, muscleSound:SSemitendinosus});
randomizeL2PSArray = function (_arg1:Object, _arg2:Object):Number{
return (Math.floor((Math.random() * 14)));
};
L2PSList.sort(randomizeL2PSArray);
muscleNameDisplay.text = "";
comments.text = "LEVEL 2 - Posterior View - Scan Stage";
scores.text = "";
timeBar.visible = false;
posteriorUnderlay.visible = true;
posteriorSkin.visible = false;
feedback.visible = false;
unlockNotice.visible = false;
labelTrapezius.visible = true;
labelDeltoid.visible = true;
labelTricepsBrachii.visible = true;
labelLatissimusDorsi.visible = true;
labelGluteusMaximus.visible = true;
labelAdductors.visible = true;
labelGastrocnemius.visible = true;
labelInfraspinatus.visible = true;
labelTeresMajor.visible = true;
labelWristExtensors.visible = true;
labelWristFlexors.visible = true;
labelErectorSpinae.visible = true;
labelBicepsFemoris.visible = true;
labelSemimembranosus.visible = true;
labelSemitendinosus.visible = true;
beginL2PSbtn.visible = false;
resetL2PS.gotoAndStop("reset");
resetL2PS.visible = false;
posteriorTrapezius.alpha = 1;
posteriorDeltoid.alpha = 1;
posteriorTricepsBrachii.alpha = 1;
posteriorLatissimusDorsi.alpha = 1;
posteriorGluteusMaximus.alpha = 1;
posteriorAdductors.alpha = 1;
posteriorGastrocnemius.alpha = 1;
posteriorInfraspinatus.alpha = 1;
posteriorTeresMajor.alpha = 1;
posteriorWristExtensors.alpha = 1;
posteriorWristFlexors.alpha = 1;
posteriorErectorSpinae.alpha = 1;
posteriorBicepsFemoris.alpha = 1;
posteriorSemimembranosus.alpha = 1;
posteriorSemitendinosus.alpha = 1;
LEVELTWObox.gotoAndStop("active");
posterior15box.gotoAndStop("active");
L2PSlock.gotoAndStop("unlockedActive");
L2PSscorebox.gotoAndStop("active");
whereFrom = "L2PS";
beginL2PSbtn.visible = true;
beginL2PSbtn.addEventListener(MouseEvent.CLICK, beginL2PS);
}
public function closeSplash(_arg1:MouseEvent){
var titleFading:Function;
var event = _arg1;
titleFading = function ():void{
splashScreen.alpha = (splashScreen.alpha - (1 / 20));
if (splashScreen.alpha < 0){
splashScreen.visible = false;
splashScreen.removeEventListener(MouseEvent.MOUSE_DOWN, closeSplash);
};
};
splashTimer = new Timer(10, 20);
splashTimer.addEventListener(TimerEvent.TIMER, titleFading);
splashTimer.start();
}
public function AAout(_arg1:MouseEvent){
AAbutton.gotoAndStop("normal");
}
public function showMochiAd1():void{
MochiAd.showInterLevelAd({clip:mochiClip1, id:"f2fdf4875894bbad", res:"800x700"});
}
public function levelCheck():void{
var whereToNow:Function;
var L1AShover:Function;
var L1ASout:Function;
var gotoL1AS:Function;
var L1APhover:Function;
var L1APout:Function;
var prepL1AP:Function;
var L1PShover:Function;
var L1PSout:Function;
var prepL1PS:Function;
var L1PPhover:Function;
var L1PPout:Function;
var prepL1PP:Function;
var L2AShover:Function;
var L2ASout:Function;
var prepL2AS:Function;
var L2APhover:Function;
var L2APout:Function;
var prepL2AP:Function;
var L2PShover:Function;
var L2PSout:Function;
var prepL2PS:Function;
var L2PPhover:Function;
var L2PPout:Function;
var prepL2PP:Function;
var L3PShover:Function;
var L3PSout:Function;
var prepL3PS:Function;
var L3PPhover:Function;
var L3PPout:Function;
var prepL3PP:Function;
var L1ASreset:Function;
var L1APreset:Function;
var L1PSreset:Function;
var L1PPreset:Function;
var L2ASreset:Function;
var L2APreset:Function;
var L2PSreset:Function;
var L2PPreset:Function;
var L3PSreset:Function;
var L3PPreset:Function;
whereToNow = function ():void{
toggleMusic.visible = false;
unlockNotice.visible = false;
levelOneNotice.visible = false;
levelTwoNotice.visible = false;
PAMcompleted.visible = false;
LEVELONEbox.gotoAndStop("inactive");
LEVELTWObox.gotoAndStop("inactive");
LEVELTHREEbox.gotoAndStop("inactive");
anterior8box.gotoAndStop("inactive");
posterior8box.gotoAndStop("inactive");
anterior17box.gotoAndStop("inactive");
posterior15box.gotoAndStop("inactive");
pose24box.gotoAndStop("inactive");
if (whereFrom == "L1AS"){
L1ASlock.gotoAndStop("unlocked");
resetL1AS.removeEventListener(MouseEvent.CLICK, L1ASreset);
resetL1AS.visible = false;
whereFrom = "";
};
if (whereFrom == "L1AP"){
L1APlock.gotoAndStop("unlocked");
resetL1AP.removeEventListener(MouseEvent.CLICK, L1APreset);
resetL1AP.visible = false;
whereFrom = "";
};
if (whereFrom == "L1PS"){
L1PSlock.gotoAndStop("unlocked");
resetL1PS.removeEventListener(MouseEvent.CLICK, L1PSreset);
resetL1PS.visible = false;
whereFrom = "";
};
if (whereFrom == "L1PP"){
L1PPlock.gotoAndStop("unlocked");
resetL1PP.removeEventListener(MouseEvent.CLICK, L1PPreset);
resetL1PP.visible = false;
whereFrom = "";
};
if (whereFrom == "L2AS"){
L2ASlock.gotoAndStop("unlocked");
resetL2AS.removeEventListener(MouseEvent.CLICK, L2ASreset);
resetL2AS.visible = false;
whereFrom = "";
};
if (whereFrom == "L2AP"){
L2APlock.gotoAndStop("unlocked");
resetL2AP.removeEventListener(MouseEvent.CLICK, L2APreset);
resetL2AP.visible = false;
whereFrom = "";
};
if (whereFrom == "L2PS"){
L2PSlock.gotoAndStop("unlocked");
resetL2PS.removeEventListener(MouseEvent.CLICK, L2PSreset);
resetL2PS.visible = false;
whereFrom = "";
};
if (whereFrom == "L2PP"){
L2PPlock.gotoAndStop("unlocked");
resetL2PP.removeEventListener(MouseEvent.CLICK, L2PPreset);
resetL2PP.visible = false;
whereFrom = "";
};
if (whereFrom == "L3PS"){
L3PSlock.gotoAndStop("unlocked");
resetL3PS.removeEventListener(MouseEvent.CLICK, L3PSreset);
resetL3PS.visible = false;
whereFrom = "";
};
if (whereFrom == "L3PP"){
L3PPlock.gotoAndStop("unlocked");
resetL3PP.removeEventListener(MouseEvent.CLICK, L3PPreset);
resetL3PP.visible = false;
whereFrom = "";
};
if (L1AScompleteCheck){
L1AScompleteCheck = false;
L1ASscan.removeEventListener(MouseEvent.CLICK, gotoL1AS);
L1ASscan.removeEventListener(MouseEvent.MOUSE_OVER, L1AShover);
L1ASscan.removeEventListener(MouseEvent.MOUSE_OUT, L1ASout);
};
if (L1APcompleteCheck){
L1APcompleteCheck = false;
L1APpoke.removeEventListener(MouseEvent.CLICK, prepL1AP);
L1APpoke.removeEventListener(MouseEvent.MOUSE_OVER, L1APhover);
L1APpoke.removeEventListener(MouseEvent.MOUSE_OUT, L1APout);
};
if (L1PScompleteCheck){
L1PScompleteCheck = false;
L1PSscan.removeEventListener(MouseEvent.CLICK, prepL1PS);
L1PSscan.removeEventListener(MouseEvent.MOUSE_OVER, L1PShover);
L1PSscan.removeEventListener(MouseEvent.MOUSE_OUT, L1PSout);
};
if (L1PPcompleteCheck){
L1PPcompleteCheck = false;
L1PPpoke.removeEventListener(MouseEvent.CLICK, prepL1PP);
L1PPpoke.removeEventListener(MouseEvent.MOUSE_OVER, L1PPhover);
L1PPpoke.removeEventListener(MouseEvent.MOUSE_OUT, L1PPout);
};
if (L2AScompleteCheck){
L2AScompleteCheck = false;
L2ASscan.removeEventListener(MouseEvent.CLICK, prepL2AS);
L2ASscan.removeEventListener(MouseEvent.MOUSE_OVER, L2AShover);
L2ASscan.removeEventListener(MouseEvent.MOUSE_OUT, L2ASout);
};
if (L2APcompleteCheck){
L2APcompleteCheck = false;
L2APpoke.removeEventListener(MouseEvent.CLICK, prepL2AP);
L2APpoke.removeEventListener(MouseEvent.MOUSE_OVER, L2APhover);
L2APpoke.removeEventListener(MouseEvent.MOUSE_OUT, L2APout);
};
if (L2PScompleteCheck){
L2PScompleteCheck = false;
L2PSscan.removeEventListener(MouseEvent.CLICK, prepL2PS);
L2PSscan.removeEventListener(MouseEvent.MOUSE_OVER, L2PShover);
L2PSscan.removeEventListener(MouseEvent.MOUSE_OUT, L2PSout);
};
if (L2PPcompleteCheck){
L2PPcompleteCheck = false;
L2PPpoke.removeEventListener(MouseEvent.CLICK, prepL2PP);
L2PPpoke.removeEventListener(MouseEvent.MOUSE_OVER, L2PPhover);
L2PPpoke.removeEventListener(MouseEvent.MOUSE_OUT, L2PPout);
};
if (L3PScompleteCheck){
L3PScompleteCheck = false;
L3PSscan.removeEventListener(MouseEvent.CLICK, prepL3PS);
L3PSscan.removeEventListener(MouseEvent.MOUSE_OVER, L3PShover);
L3PSscan.removeEventListener(MouseEvent.MOUSE_OUT, L3PSout);
};
if (L3PPcompleteCheck){
L3PPcompleteCheck = false;
L3PPpoke.removeEventListener(MouseEvent.CLICK, prepL3PP);
L3PPpoke.removeEventListener(MouseEvent.MOUSE_OVER, L3PPhover);
L3PPpoke.removeEventListener(MouseEvent.MOUSE_OUT, L3PPout);
};
if (whereTo == "L1AS"){
whereTo = "";
whiteFlash.gotoAndPlay("flash");
LEVELONEbox.gotoAndStop("active");
anterior8box.gotoAndStop("active");
L1ASlock.gotoAndStop("unlockedActive");
L1ASscorebox.gotoAndStop("active");
gotoAndPlay("L1AntScan");
};
if (whereTo == "L1AP"){
whereTo = "";
whiteFlash.gotoAndPlay("flash");
LEVELONEbox.gotoAndStop("active");
anterior8box.gotoAndStop("active");
L1APlock.gotoAndStop("unlockedActive");
L1APscorebox.gotoAndStop("active");
gotoAndPlay("L1AntPoke");
};
if (whereTo == "L1PS"){
whereTo = "";
whiteFlash.gotoAndPlay("flash");
LEVELONEbox.gotoAndStop("active");
posterior8box.gotoAndStop("active");
L1PSlock.gotoAndStop("unlockedActive");
L1PSscorebox.gotoAndStop("active");
gotoAndPlay("L1PostScan");
};
if (whereTo == "L1PP"){
whereTo = "";
whiteFlash.gotoAndPlay("flash");
LEVELONEbox.gotoAndStop("active");
posterior8box.gotoAndStop("active");
L1PPlock.gotoAndStop("unlockedActive");
L1PPscorebox.gotoAndStop("active");
gotoAndPlay("L1PostPoke");
};
if (whereTo == "L2AS"){
whereTo = "";
whiteFlash.gotoAndPlay("flash");
LEVELTWObox.gotoAndStop("active");
anterior17box.gotoAndStop("active");
L2ASlock.gotoAndStop("unlockedActive");
L2ASscorebox.gotoAndStop("active");
gotoAndPlay("L2AntScan");
};
if (whereTo == "L2AP"){
whereTo = "";
whiteFlash.gotoAndPlay("flash");
LEVELTWObox.gotoAndStop("active");
anterior17box.gotoAndStop("active");
L2APlock.gotoAndStop("unlockedActive");
L2APscorebox.gotoAndStop("active");
gotoAndPlay("L2AntPoke");
};
if (whereTo == "L2PS"){
whereTo = "";
whiteFlash.gotoAndPlay("flash");
LEVELTWObox.gotoAndStop("active");
posterior15box.gotoAndStop("active");
L2PSlock.gotoAndStop("unlockedActive");
L2PSscorebox.gotoAndStop("active");
gotoAndPlay("L2PostScan");
};
if (whereTo == "L2PP"){
whereTo = "";
whiteFlash.gotoAndPlay("flash");
LEVELTWObox.gotoAndStop("active");
posterior15box.gotoAndStop("active");
L2PPlock.gotoAndStop("unlockedActive");
L2PPscorebox.gotoAndStop("active");
gotoAndPlay("L2PostPoke");
};
if (whereTo == "L3PS"){
whereTo = "";
whiteFlash.gotoAndPlay("flash");
LEVELTHREEbox.gotoAndStop("active");
pose24box.gotoAndStop("active");
L3PSlock.gotoAndStop("unlockedActive");
L3PSscorebox.gotoAndStop("active");
gotoAndPlay("L3PoseScan");
};
if (whereTo == "L3PP"){
whereTo = "";
whiteFlash.gotoAndPlay("flash");
LEVELTHREEbox.gotoAndStop("active");
pose24box.gotoAndStop("active");
L3PPlock.gotoAndStop("unlockedActive");
L3PPscorebox.gotoAndStop("active");
gotoAndPlay("L3PosePoke");
};
};
toggleMusic.visible = true;
if (L1ASready > 0){
L1AShover = function (_arg1:MouseEvent){
L1ASscan.gotoAndStop("hover");
};
L1ASout = function (_arg1:MouseEvent){
L1ASscan.gotoAndStop("off");
};
gotoL1AS = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L1AS";
L1ASscan.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
L1AScompleteCheck = true;
L1ASscan.addEventListener(MouseEvent.CLICK, gotoL1AS);
L1ASscan.addEventListener(MouseEvent.MOUSE_OVER, L1AShover);
L1ASscan.addEventListener(MouseEvent.MOUSE_OUT, L1ASout);
};
if (L1AScomplete > 0){
L1APhover = function (_arg1:MouseEvent){
L1APpoke.gotoAndStop("hover");
};
L1APout = function (_arg1:MouseEvent){
L1APpoke.gotoAndStop("off");
};
prepL1AP = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L1AP";
L1APpoke.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
L1APcompleteCheck = true;
L1APpoke.addEventListener(MouseEvent.CLICK, prepL1AP);
L1APpoke.addEventListener(MouseEvent.MOUSE_OVER, L1APhover);
L1APpoke.addEventListener(MouseEvent.MOUSE_OUT, L1APout);
if (L1AScomplete == 1){
unlockNotice.visible = true;
L1APlock.gotoAndPlay("first");
L1AScomplete++;
};
};
if (L1APcomplete > 0){
L1PShover = function (_arg1:MouseEvent){
L1PSscan.gotoAndStop("hover");
};
L1PSout = function (_arg1:MouseEvent){
L1PSscan.gotoAndStop("off");
};
prepL1PS = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L1PS";
L1PSscan.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
L1PScompleteCheck = true;
L1PSscan.addEventListener(MouseEvent.CLICK, prepL1PS);
L1PSscan.addEventListener(MouseEvent.MOUSE_OVER, L1PShover);
L1PSscan.addEventListener(MouseEvent.MOUSE_OUT, L1PSout);
if (L1APcomplete == 1){
unlockNotice.visible = true;
L1PSlock.gotoAndPlay("first");
L1APcomplete++;
};
};
if (L1PScomplete > 0){
L1PPhover = function (_arg1:MouseEvent){
L1PPpoke.gotoAndStop("hover");
};
L1PPout = function (_arg1:MouseEvent){
L1PPpoke.gotoAndStop("off");
};
prepL1PP = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L1PP";
L1PPpoke.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
L1PPcompleteCheck = true;
L1PPpoke.addEventListener(MouseEvent.CLICK, prepL1PP);
L1PPpoke.addEventListener(MouseEvent.MOUSE_OVER, L1PPhover);
L1PPpoke.addEventListener(MouseEvent.MOUSE_OUT, L1PPout);
if (L1PScomplete == 1){
unlockNotice.visible = true;
L1PPlock.gotoAndPlay("first");
L1PScomplete++;
};
};
if (L1PPcomplete > 0){
L2AShover = function (_arg1:MouseEvent){
L2ASscan.gotoAndStop("hover");
};
L2ASout = function (_arg1:MouseEvent){
L2ASscan.gotoAndStop("off");
};
prepL2AS = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L2AS";
L2ASscan.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
L2AScompleteCheck = true;
L2ASscan.addEventListener(MouseEvent.CLICK, prepL2AS);
L2ASscan.addEventListener(MouseEvent.MOUSE_OVER, L2AShover);
L2ASscan.addEventListener(MouseEvent.MOUSE_OUT, L2ASout);
if (L1PPcomplete == 1){
levelOneNotice.visible = true;
L2ASlock.gotoAndPlay("first");
L1PPcomplete++;
};
};
if (L2AScomplete > 0){
L2APhover = function (_arg1:MouseEvent){
L2APpoke.gotoAndStop("hover");
};
L2APout = function (_arg1:MouseEvent){
L2APpoke.gotoAndStop("off");
};
prepL2AP = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L2AP";
L2APpoke.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
L2APcompleteCheck = true;
L2APpoke.addEventListener(MouseEvent.CLICK, prepL2AP);
L2APpoke.addEventListener(MouseEvent.MOUSE_OVER, L2APhover);
L2APpoke.addEventListener(MouseEvent.MOUSE_OUT, L2APout);
if (L2AScomplete == 1){
unlockNotice.visible = true;
L2APlock.gotoAndPlay("first");
L2AScomplete++;
};
};
if (L2APcomplete > 0){
L2PShover = function (_arg1:MouseEvent){
L2PSscan.gotoAndStop("hover");
};
L2PSout = function (_arg1:MouseEvent){
L2PSscan.gotoAndStop("off");
};
prepL2PS = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L2PS";
L2PSscan.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
L2PScompleteCheck = true;
L2PSscan.addEventListener(MouseEvent.CLICK, prepL2PS);
L2PSscan.addEventListener(MouseEvent.MOUSE_OVER, L2PShover);
L2PSscan.addEventListener(MouseEvent.MOUSE_OUT, L2PSout);
if (L2APcomplete == 1){
showMochiAd1();
unlockNotice.visible = true;
L2PSlock.gotoAndPlay("first");
L2APcomplete++;
};
};
if (L2PScomplete > 0){
L2PPhover = function (_arg1:MouseEvent){
L2PPpoke.gotoAndStop("hover");
};
L2PPout = function (_arg1:MouseEvent){
L2PPpoke.gotoAndStop("off");
};
prepL2PP = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L2PP";
L2PPpoke.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
L2PPcompleteCheck = true;
L2PPpoke.addEventListener(MouseEvent.CLICK, prepL2PP);
L2PPpoke.addEventListener(MouseEvent.MOUSE_OVER, L2PPhover);
L2PPpoke.addEventListener(MouseEvent.MOUSE_OUT, L2PPout);
if (L2PScomplete == 1){
unlockNotice.visible = true;
L2PPlock.gotoAndPlay("first");
L2PScomplete++;
};
};
if (L2PPcomplete > 0){
L3PShover = function (_arg1:MouseEvent){
L3PSscan.gotoAndStop("hover");
};
L3PSout = function (_arg1:MouseEvent){
L3PSscan.gotoAndStop("off");
};
prepL3PS = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L3PS";
L3PSscan.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
L3PScompleteCheck = true;
L3PSscan.addEventListener(MouseEvent.CLICK, prepL3PS);
L3PSscan.addEventListener(MouseEvent.MOUSE_OVER, L3PShover);
L3PSscan.addEventListener(MouseEvent.MOUSE_OUT, L3PSout);
if (L2PPcomplete == 1){
levelTwoNotice.visible = true;
L3PSlock.gotoAndPlay("first");
L2PPcomplete++;
};
};
if (L3PScomplete > 0){
L3PPhover = function (_arg1:MouseEvent){
L3PPpoke.gotoAndStop("hover");
};
L3PPout = function (_arg1:MouseEvent){
L3PPpoke.gotoAndStop("off");
};
prepL3PP = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L3PP";
L3PPpoke.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
L3PPcompleteCheck = true;
L3PPpoke.addEventListener(MouseEvent.CLICK, prepL3PP);
L3PPpoke.addEventListener(MouseEvent.MOUSE_OVER, L3PPhover);
L3PPpoke.addEventListener(MouseEvent.MOUSE_OUT, L3PPout);
if (L3PScomplete == 1){
unlockNotice.visible = true;
L3PPlock.gotoAndPlay("first");
L3PScomplete++;
};
};
if (L3PPcomplete > 0){
PAMTotalScore = (Math.floor(((((((((((L1AStopScores[0] + L1APtopScores[0]) + L1PStopScores[0]) + L1PPtopScores[0]) + L2AStopScores[0]) + L2APtopScores[0]) + L2PStopScores[0]) + L2PPtopScores[0]) + L3PStopScores[0]) + L3PPtopScores[0]) * 10)) / 100);
PAMtopScores.push(PAMTotalScore);
PAMtopScores.sort(Array.DESCENDING);
totalScore.text = PAMtopScores[0];
if (L3PPcomplete == 1){
PAMcompleted.visible = true;
musicChannel = celebrationTrack.play(0, 99999);
L3PPcomplete++;
MochiScores.showLeaderboard({clip:mochiClip2, boardID:"46c4a935f4cef823", score:(PAMtopScores[0] * 100)});
};
if (PAMtopScores[0] > PAMtopScores[1]){
MochiScores.showLeaderboard({clip:mochiClip2, boardID:"46c4a935f4cef823", score:(PAMtopScores[0] * 100)});
};
};
if (whereFrom == "L1AS"){
L1ASreset = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L1AS";
L1ASscan.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
resetL1AS.visible = true;
resetL1AS.addEventListener(MouseEvent.CLICK, L1ASreset);
};
if (whereFrom == "L1AP"){
L1APreset = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L1AP";
L1APpoke.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
resetL1AP.visible = true;
resetL1AP.addEventListener(MouseEvent.CLICK, L1APreset);
};
if (whereFrom == "L1PS"){
L1PSreset = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L1PS";
L1PSscan.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
resetL1PS.visible = true;
resetL1PS.addEventListener(MouseEvent.CLICK, L1PSreset);
};
if (whereFrom == "L1PP"){
L1PPreset = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L1PP";
L1PPpoke.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
resetL1PP.visible = true;
resetL1PP.addEventListener(MouseEvent.CLICK, L1PPreset);
};
if (whereFrom == "L2AS"){
L2ASreset = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L2AS";
L2ASscan.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
resetL2AS.visible = true;
resetL2AS.addEventListener(MouseEvent.CLICK, L2ASreset);
};
if (whereFrom == "L2AP"){
L2APreset = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L2AP";
L2APpoke.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
resetL2AP.visible = true;
resetL2AP.addEventListener(MouseEvent.CLICK, L2APreset);
};
if (whereFrom == "L2PS"){
L2PSreset = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L2PS";
L2PSscan.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
resetL2PS.visible = true;
resetL2PS.addEventListener(MouseEvent.CLICK, L2PSreset);
};
if (whereFrom == "L2PP"){
L2PPreset = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L2PP";
L2PPpoke.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
resetL2PP.visible = true;
resetL2PP.addEventListener(MouseEvent.CLICK, L2PPreset);
};
if (whereFrom == "L3PS"){
L3PSreset = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L3PS";
L3PSscan.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
resetL3PS.visible = true;
resetL3PS.addEventListener(MouseEvent.CLICK, L3PSreset);
};
if (whereFrom == "L3PP"){
L3PPreset = function (_arg1:MouseEvent){
sClick.play();
whereTo = "L3PP";
L3PPpoke.gotoAndStop("off");
whereToNow();
titleFadeOut();
};
resetL3PP.visible = true;
resetL3PP.addEventListener(MouseEvent.CLICK, L3PPreset);
};
}
public function L1AP():void{
var randomizeL1APArray:*;
var beginL1AP:Function;
var L1APgoing:Function;
beginL1AP = function (_arg1:MouseEvent){
var countdownFeedback:Function;
var event = _arg1;
countdownFeedback = function (_arg1:TimerEvent){
countdownTimer.removeEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.stop();
beginL1APbtn.visible = false;
L1APgoing();
};
beginL1APbtn.removeEventListener(MouseEvent.CLICK, beginL1AP);
L1APList.sort(randomizeL1APArray);
L1APmuscleTimes.splice(0, 8);
totalPoints = 0;
index = 0;
correctCount = 0;
seconds = 101;
percentageScore = 0;
clickCount = 0;
clickDiff = 0;
feedback.visible = false;
labelDeltoid.visible = false;
labelPectoralisMajor.visible = false;
labelBicepsBrachii.visible = false;
labelRectusAbdominis.visible = false;
labelExternalObliques.visible = false;
labelAdductors.visible = false;
labelQuadriceps.visible = false;
labelGastrocnemius.visible = false;
ADeltoid.alpha = 0.01;
APectoralisMajor.alpha = 0.01;
ABicepsBrachii.alpha = 0.01;
ARectusAbdominis.alpha = 0.01;
AExternalObliques.alpha = 0.01;
AAdductors.alpha = 0.01;
AQuadriceps.alpha = 0.01;
AGastrocnemius.alpha = 0.01;
anteriorUnderlay.visible = true;
anteriorSkin.visible = false;
muscleNameDisplay.text = "";
scores.text = "";
comments.text = "Good Luck. Poke fast. 80% is the cut-off score.";
timeBar.visible = false;
fastestMuscleScore.text = "";
fasterMuscleScore.text = "";
fastMuscleScore.text = "";
fastestMuscle.text = "";
fasterMuscle.text = "";
fastMuscle.text = "";
slowestMuscleScore.text = "";
slowerMuscleScore.text = "";
slowMuscleScore.text = "";
slowestMuscle.text = "";
slowerMuscle.text = "";
slowMuscle.text = "";
anteriorSkin.visible = true;
resetL1AP.visible = false;
beginL1APbtn.gotoAndPlay("countdown");
countdownTimer = new Timer(3000, 1);
countdownTimer.addEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.start();
};
L1APgoing = function ():void{
var L1APticking:Function;
var L1APnextMuscle:Function;
var clickCounter:Function;
var clickL1APmuscle:Function;
var L1APfinish:Function;
L1APticking = function (_arg1:TimerEvent){
seconds--;
timeBar.scaleX = (seconds / 101);
L1APList[index].muscle.alpha = ((seconds / -100) + 1);
if (seconds == 0){
removeEventListener(MouseEvent.CLICK, clickCounter);
L1APList[index].muscle.removeEventListener(MouseEvent.MOUSE_DOWN, clickL1APmuscle);
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L1APticking);
anteriorSkin.visible = false;
muscleNameDisplay.text = "";
anteriorUnderlay.visible = false;
timeBar.visible = false;
ADeltoid.alpha = 0.01;
APectoralisMajor.alpha = 0.01;
ABicepsBrachii.alpha = 0.01;
ARectusAbdominis.alpha = 0.01;
AExternalObliques.alpha = 0.01;
AAdductors.alpha = 0.01;
AQuadriceps.alpha = 0.01;
AGastrocnemius.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / 100)) / 10);
scores.text = String(percentageScore);
L1APtopScores.push(percentageScore);
L1APscore.text = L1APtopScores[0];
if (percentageScore > L1APtopScores[0]){
L1APtopScores[0] = percentageScore;
L1APscore.text = L1APtopScores[0];
};
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
};
};
};
};
};
};
};
resetL1AP.gotoAndPlay("loop");
whereFrom = "L1AP";
titleFadeIn();
levelCheck();
};
};
L1APnextMuscle = function ():void{
var nameL1APmuscle:Function;
nameL1APmuscle = function ():void{
var playSound:Function;
playSound = function (_arg1:Object){
var _local2:SoundChannel;
_local2 = _arg1.play();
};
muscleNameDisplay.text = L1APList[index].muscleNames;
playSound(L1APList[index].muscleSound);
};
L1APList[index].muscle.addEventListener(MouseEvent.MOUSE_DOWN, clickL1APmuscle);
seconds = 101;
nameL1APmuscle();
};
clickCounter = function (_arg1:MouseEvent){
clickCount++;
clickDiff = (clickCount - correctCount);
if (clickDiff > 5){
seconds = 1;
};
};
clickL1APmuscle = function (_arg1:MouseEvent){
var L1APWhereTo:Function;
var event = _arg1;
L1APWhereTo = function ():void{
if (correctCount == 8){
removeEventListener(MouseEvent.CLICK, clickCounter);
L1APfinish();
} else {
removeEventListener(MouseEvent.CLICK, clickCounter);
L1APgoing();
};
};
sSquwelch3.play();
L1APmuscleTimes.push({L1APscoreMuscleName:L1APList[index].muscleNames, L1APmuscleScore:seconds, L1APmuscleScoreLabel:L1APList[index].muscleLabel});
totalPoints = (totalPoints + seconds);
L1APList[index].muscle.removeEventListener(MouseEvent.MOUSE_DOWN, clickL1APmuscle);
index++;
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L1APticking);
correctCount++;
L1APWhereTo();
};
L1APfinish = function ():void{
whereFrom = "L1AP";
anteriorSkin.visible = false;
anteriorUnderlay.visible = false;
muscleNameDisplay.text = "";
timeBar.visible = false;
ADeltoid.alpha = 0.01;
APectoralisMajor.alpha = 0.01;
ABicepsBrachii.alpha = 0.01;
ARectusAbdominis.alpha = 0.01;
AExternalObliques.alpha = 0.01;
AAdductors.alpha = 0.01;
AQuadriceps.alpha = 0.01;
AGastrocnemius.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / (correctCount * 10))) / 10);
scores.text = String(percentageScore);
L1APtopScores.push(percentageScore);
L1APscore.text = L1APtopScores[0];
if (percentageScore > L1APtopScores[0]){
L1APtopScores[0] = percentageScore;
L1APscore.text = L1APtopScores[0];
};
if (L1APtopScores[0] >= 80){
L1APcomplete++;
};
levelCheck();
titleFadeIn();
L1APmuscleTimes.sortOn("L1APmuscleScore", Array.DESCENDING);
fastestMuscle.text = L1APmuscleTimes[0].L1APscoreMuscleName;
fastestMuscleScore.text = L1APmuscleTimes[0].L1APmuscleScore;
fasterMuscle.text = L1APmuscleTimes[1].L1APscoreMuscleName;
fasterMuscleScore.text = L1APmuscleTimes[1].L1APmuscleScore;
fastMuscle.text = L1APmuscleTimes[2].L1APscoreMuscleName;
fastMuscleScore.text = L1APmuscleTimes[2].L1APmuscleScore;
slowMuscle.text = L1APmuscleTimes[5].L1APscoreMuscleName;
slowMuscleScore.text = L1APmuscleTimes[5].L1APmuscleScore;
slowerMuscle.text = L1APmuscleTimes[6].L1APscoreMuscleName;
slowerMuscleScore.text = L1APmuscleTimes[6].L1APmuscleScore;
slowestMuscle.text = L1APmuscleTimes[7].L1APscoreMuscleName;
slowestMuscleScore.text = L1APmuscleTimes[7].L1APmuscleScore;
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
} else {
if (percentageScore < 86){
feedback.gotoAndStop("pass1");
comments.text = "You can be proud of that effort.";
} else {
if (percentageScore < 90){
feedback.gotoAndStop("pass2");
comments.text = "Oh yeah. Bring it on.";
} else {
if (percentageScore < 92){
feedback.gotoAndStop("pass3");
comments.text = "YES!";
} else {
if (percentageScore < 93){
feedback.gotoAndStop("pass4");
comments.text = "Bang! Cop that.";
} else {
if (percentageScore < 94){
feedback.gotoAndStop("pass5");
comments.text = "Maaaate, that was massive!";
} else {
if (percentageScore < 95){
feedback.gotoAndStop("pass6");
comments.text = "Stand clear. Poke-A-Muscle legend charging through.";
} else {
if (percentageScore >= 95){
feedback.gotoAndStop("pass7");
comments.text = "Seriously dude, you rock!";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
ADeltoid.alpha = 0.01;
APectoralisMajor.alpha = 0.01;
ABicepsBrachii.alpha = 0.01;
ARectusAbdominis.alpha = 0.01;
AExternalObliques.alpha = 0.01;
AAdductors.alpha = 0.01;
AQuadriceps.alpha = 0.01;
AGastrocnemius.alpha = 0.01;
comments.text = "";
addEventListener(MouseEvent.CLICK, clickCounter);
timeBar.visible = true;
PAMtime = new Timer(100, 101);
PAMtime.addEventListener(TimerEvent.TIMER, L1APticking);
PAMtime.start();
L1APnextMuscle();
};
L1APList.splice(0, 8);
L1APList.push({muscle:ADeltoid, muscleNames:"Deltoid", muscleLabel:labelDeltoid, muscleSound:SDeltoid});
L1APList.push({muscle:APectoralisMajor, muscleNames:"Pectoralis Major", muscleLabel:labelPectoralisMajor, muscleSound:SPectoralisMajor});
L1APList.push({muscle:ABicepsBrachii, muscleNames:"Biceps Brachii", muscleLabel:labelBicepsBrachii, muscleSound:SBicepsBrachii});
L1APList.push({muscle:ARectusAbdominis, muscleNames:"Rectus Abdominis", muscleLabel:labelRectusAbdominis, muscleSound:SRectusAbdominis});
L1APList.push({muscle:AExternalObliques, muscleNames:"External Obliques", muscleLabel:labelExternalObliques, muscleSound:SExternalOblique});
L1APList.push({muscle:AAdductors, muscleNames:"Adductors", muscleLabel:labelAdductors, muscleSound:SAdductors});
L1APList.push({muscle:AQuadriceps, muscleNames:"Quadriceps", muscleLabel:labelQuadriceps, muscleSound:SQuadriceps});
L1APList.push({muscle:AGastrocnemius, muscleNames:"Gastrocnemius", muscleLabel:labelGastrocnemius, muscleSound:SGastrocnemius});
randomizeL1APArray = function (_arg1:Object, _arg2:Object):Number{
return (Math.floor((Math.random() * 7)));
};
L1APList.sort(randomizeL1APArray);
muscleNameDisplay.text = "";
comments.text = "LEVEL 1 - Anterior View - Poke Stage It's just you and your finger now. If you don't know where a muscle is, wait a bit and it will start to glow.";
scores.text = "";
timeBar.visible = false;
anteriorSkin.visible = false;
anteriorUnderlay.visible = true;
feedback.visible = false;
unlockNotice.visible = false;
labelDeltoid.visible = true;
labelPectoralisMajor.visible = true;
labelBicepsBrachii.visible = true;
labelRectusAbdominis.visible = true;
labelExternalObliques.visible = true;
labelAdductors.visible = true;
labelQuadriceps.visible = true;
labelGastrocnemius.visible = true;
ADeltoid.alpha = 1;
APectoralisMajor.alpha = 1;
ABicepsBrachii.alpha = 1;
ARectusAbdominis.alpha = 1;
AExternalObliques.alpha = 1;
AAdductors.alpha = 1;
AQuadriceps.alpha = 1;
AGastrocnemius.alpha = 1;
whereFrom = "L1AP";
resetL1AP.gotoAndStop("reset");
resetL1AP.visible = false;
beginL1APbtn.visible = true;
beginL1APbtn.addEventListener(MouseEvent.CLICK, beginL1AP);
}
public function L1AS():void{
var randomizeL1ASArray:*;
var beginL1AS:Function;
var L1ASgoing:Function;
beginL1AS = function (_arg1:MouseEvent){
var countdownFeedback:Function;
var event = _arg1;
countdownFeedback = function (_arg1:TimerEvent){
countdownTimer.removeEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.stop();
beginL1ASbtn.visible = false;
L1ASgoing();
};
beginL1ASbtn.removeEventListener(MouseEvent.CLICK, beginL1AS);
hand.stopDrag();
hand.visible = false;
scannerHand.visible = true;
scannerHand.startDrag(true);
L1ASList.sort(randomizeL1ASArray);
L1ASmuscleTimes.splice(0, 8);
totalPoints = 0;
index = 0;
correctCount = 0;
seconds = 101;
percentageScore = 0;
clickCount = 0;
clickDiff = 0;
feedback.visible = false;
labelDeltoid.visible = false;
labelPectoralisMajor.visible = false;
labelBicepsBrachii.visible = false;
labelRectusAbdominis.visible = false;
labelExternalObliques.visible = false;
labelAdductors.visible = false;
labelQuadriceps.visible = false;
labelGastrocnemius.visible = false;
ADeltoid.alpha = 0.01;
APectoralisMajor.alpha = 0.01;
ABicepsBrachii.alpha = 0.01;
ARectusAbdominis.alpha = 0.01;
AExternalObliques.alpha = 0.01;
AAdductors.alpha = 0.01;
AQuadriceps.alpha = 0.01;
AGastrocnemius.alpha = 0.01;
anteriorUnderlay.visible = true;
anteriorUnderlay.mask = scannerHand.scanner;
muscleNameDisplay.text = "";
scores.text = "";
comments.text = "80% is the cut-off score.";
timeBar.visible = false;
fastestMuscleScore.text = "";
fasterMuscleScore.text = "";
fastMuscleScore.text = "";
fastestMuscle.text = "";
fasterMuscle.text = "";
fastMuscle.text = "";
slowestMuscleScore.text = "";
slowerMuscleScore.text = "";
slowMuscleScore.text = "";
slowestMuscle.text = "";
slowerMuscle.text = "";
slowMuscle.text = "";
anteriorSkin.visible = true;
resetL1AS.visible = false;
beginL1ASbtn.gotoAndPlay("countdown");
countdownTimer = new Timer(3000, 1);
countdownTimer.addEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.start();
};
L1ASgoing = function ():void{
var L1ASticking:Function;
var L1ASnextMuscle:Function;
var clickCounter:Function;
var clickL1ASmuscle:Function;
var L1ASfinish:Function;
L1ASticking = function (_arg1:TimerEvent){
seconds--;
timeBar.scaleX = (seconds / 101);
if (seconds == 0){
removeEventListener(MouseEvent.CLICK, clickCounter);
L1ASList[index].muscle.mask = null;
L1ASList[index].muscle.removeEventListener(MouseEvent.CLICK, clickL1ASmuscle);
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L1ASticking);
scannerHand.stopDrag();
scannerHand.visible = false;
hand.startDrag(true);
hand.visible = true;
anteriorSkin.visible = false;
muscleNameDisplay.text = "";
anteriorUnderlay.mask = null;
anteriorUnderlay.visible = false;
timeBar.visible = false;
ADeltoid.alpha = 0.01;
APectoralisMajor.alpha = 0.01;
ABicepsBrachii.alpha = 0.01;
ARectusAbdominis.alpha = 0.01;
AExternalObliques.alpha = 0.01;
AAdductors.alpha = 0.01;
AQuadriceps.alpha = 0.01;
AGastrocnemius.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / 100)) / 10);
scores.text = String(percentageScore);
L1AStopScores.push(percentageScore);
L1ASscore.text = L1AStopScores[0];
if (percentageScore > L1AStopScores[0]){
L1AStopScores[0] = percentageScore;
L1ASscore.text = L1AStopScores[0];
};
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
};
};
};
};
};
};
};
resetL1AS.gotoAndPlay("loop");
whereFrom = "L1AS";
titleFadeIn();
levelCheck();
};
};
L1ASnextMuscle = function ():void{
var nameL1ASmuscle:Function;
nameL1ASmuscle = function ():void{
var playSound:Function;
playSound = function (_arg1:Object){
var _local2:SoundChannel;
_local2 = _arg1.play();
};
muscleNameDisplay.text = L1ASList[index].muscleNames;
playSound(L1ASList[index].muscleSound);
};
L1ASList[index].muscle.addEventListener(MouseEvent.CLICK, clickL1ASmuscle);
seconds = 101;
nameL1ASmuscle();
L1ASList[index].muscle.alpha = 1;
L1ASList[index].muscle.mask = scannerHand.mscanner;
};
clickCounter = function (_arg1:MouseEvent){
clickCount++;
clickDiff = (clickCount - correctCount);
if (clickDiff > 5){
seconds = 1;
};
};
clickL1ASmuscle = function (_arg1:MouseEvent){
var L1ASWhereTo:Function;
var event = _arg1;
L1ASWhereTo = function ():void{
if (correctCount == 8){
removeEventListener(MouseEvent.CLICK, clickCounter);
L1ASfinish();
} else {
removeEventListener(MouseEvent.CLICK, clickCounter);
L1ASgoing();
};
};
scannerHand.gotoAndPlay("scanClick");
Buzz.play();
L1ASmuscleTimes.push({L1ASscoreMuscleName:L1ASList[index].muscleNames, L1ASmuscleScore:seconds, L1ASmuscleScoreLabel:L1ASList[index].muscleLabel});
totalPoints = (totalPoints + seconds);
L1ASList[index].muscle.mask = null;
L1ASList[index].muscle.removeEventListener(MouseEvent.CLICK, clickL1ASmuscle);
index++;
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L1ASticking);
correctCount++;
L1ASWhereTo();
};
L1ASfinish = function ():void{
whereFrom = "L1AS";
scannerHand.stopDrag();
scannerHand.x = 0;
scannerHand.y = 0;
scannerHand.visible = false;
hand.startDrag(true);
hand.visible = true;
anteriorUnderlay.mask = null;
anteriorUnderlay.visible = false;
anteriorSkin.visible = false;
muscleNameDisplay.text = "";
timeBar.visible = false;
ADeltoid.alpha = 0.01;
APectoralisMajor.alpha = 0.01;
ABicepsBrachii.alpha = 0.01;
ARectusAbdominis.alpha = 0.01;
AExternalObliques.alpha = 0.01;
AAdductors.alpha = 0.01;
AQuadriceps.alpha = 0.01;
AGastrocnemius.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / (correctCount * 10))) / 10);
scores.text = String(percentageScore);
L1AStopScores.push(percentageScore);
L1ASscore.text = L1AStopScores[0];
if (percentageScore > L1AStopScores[0]){
L1AStopScores[0] = percentageScore;
L1ASscore.text = L1AStopScores[0];
};
if (L1AStopScores[0] >= 80){
L1AScomplete++;
};
levelCheck();
titleFadeIn();
L1ASmuscleTimes.sortOn("L1ASmuscleScore", Array.DESCENDING);
fastestMuscle.text = L1ASmuscleTimes[0].L1ASscoreMuscleName;
fastestMuscleScore.text = L1ASmuscleTimes[0].L1ASmuscleScore;
fasterMuscle.text = L1ASmuscleTimes[1].L1ASscoreMuscleName;
fasterMuscleScore.text = L1ASmuscleTimes[1].L1ASmuscleScore;
fastMuscle.text = L1ASmuscleTimes[2].L1ASscoreMuscleName;
fastMuscleScore.text = L1ASmuscleTimes[2].L1ASmuscleScore;
slowMuscle.text = L1ASmuscleTimes[5].L1ASscoreMuscleName;
slowMuscleScore.text = L1ASmuscleTimes[5].L1ASmuscleScore;
slowerMuscle.text = L1ASmuscleTimes[6].L1ASscoreMuscleName;
slowerMuscleScore.text = L1ASmuscleTimes[6].L1ASmuscleScore;
slowestMuscle.text = L1ASmuscleTimes[7].L1ASscoreMuscleName;
slowestMuscleScore.text = L1ASmuscleTimes[7].L1ASmuscleScore;
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
} else {
if (percentageScore < 86){
feedback.gotoAndStop("pass1");
comments.text = "You can be proud of that effort.";
} else {
if (percentageScore < 90){
feedback.gotoAndStop("pass2");
comments.text = "Oh yeah. Bring it on.";
} else {
if (percentageScore < 92){
feedback.gotoAndStop("pass3");
comments.text = "YES!";
} else {
if (percentageScore < 93){
feedback.gotoAndStop("pass4");
comments.text = "Bang! Cop that.";
} else {
if (percentageScore < 94){
feedback.gotoAndStop("pass5");
comments.text = "Maaaate, that was massive!";
} else {
if (percentageScore < 95){
feedback.gotoAndStop("pass6");
comments.text = "Stand clear. Poke-A-Muscle legend charging through.";
} else {
if (percentageScore >= 95){
feedback.gotoAndStop("pass7");
comments.text = "Seriously dude, you rock!";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
ADeltoid.alpha = 0.01;
APectoralisMajor.alpha = 0.01;
ABicepsBrachii.alpha = 0.01;
ARectusAbdominis.alpha = 0.01;
AExternalObliques.alpha = 0.01;
AAdductors.alpha = 0.01;
AQuadriceps.alpha = 0.01;
AGastrocnemius.alpha = 0.01;
comments.text = "";
addEventListener(MouseEvent.CLICK, clickCounter);
timeBar.visible = true;
PAMtime = new Timer(100, 101);
PAMtime.addEventListener(TimerEvent.TIMER, L1ASticking);
PAMtime.start();
L1ASnextMuscle();
};
L1ASList.splice(0, 8);
L1ASList.push({muscle:ADeltoid, muscleNames:"Deltoid", muscleLabel:labelDeltoid, muscleSound:SDeltoid});
L1ASList.push({muscle:APectoralisMajor, muscleNames:"Pectoralis Major", muscleLabel:labelPectoralisMajor, muscleSound:SPectoralisMajor});
L1ASList.push({muscle:ABicepsBrachii, muscleNames:"Biceps Brachii", muscleLabel:labelBicepsBrachii, muscleSound:SBicepsBrachii});
L1ASList.push({muscle:ARectusAbdominis, muscleNames:"Rectus Abdominis", muscleLabel:labelRectusAbdominis, muscleSound:SRectusAbdominis});
L1ASList.push({muscle:AExternalObliques, muscleNames:"External Obliques", muscleLabel:labelExternalObliques, muscleSound:SExternalOblique});
L1ASList.push({muscle:AAdductors, muscleNames:"Adductors", muscleLabel:labelAdductors, muscleSound:SAdductors});
L1ASList.push({muscle:AQuadriceps, muscleNames:"Quadriceps", muscleLabel:labelQuadriceps, muscleSound:SQuadriceps});
L1ASList.push({muscle:AGastrocnemius, muscleNames:"Gastrocnemius", muscleLabel:labelGastrocnemius, muscleSound:SGastrocnemius});
randomizeL1ASArray = function (_arg1:Object, _arg2:Object):Number{
return (Math.floor((Math.random() * 7)));
};
L1ASList.sort(randomizeL1ASArray);
muscleNameDisplay.text = "";
comments.text = "LEVEL 1 - Anterior View - Scan Stage Hunt down the correct muscle underneath Russell's skin. Score over 80% to get to the next level.";
scores.text = "";
timeBar.visible = false;
anteriorUnderlay.visible = true;
anteriorSkin.visible = false;
feedback.visible = false;
unlockNotice.visible = false;
labelDeltoid.visible = true;
labelPectoralisMajor.visible = true;
labelBicepsBrachii.visible = true;
labelRectusAbdominis.visible = true;
labelExternalObliques.visible = true;
labelAdductors.visible = true;
labelQuadriceps.visible = true;
labelGastrocnemius.visible = true;
resetL1AS.gotoAndStop("reset");
resetL1AS.visible = false;
ADeltoid.alpha = 1;
APectoralisMajor.alpha = 1;
ABicepsBrachii.alpha = 1;
ARectusAbdominis.alpha = 1;
AExternalObliques.alpha = 1;
AAdductors.alpha = 1;
AQuadriceps.alpha = 1;
AGastrocnemius.alpha = 1;
LEVELONEbox.gotoAndStop("active");
anterior8box.gotoAndStop("active");
L1ASlock.gotoAndStop("unlockedActive");
L1ASscorebox.gotoAndStop("active");
whereFrom = "L1AS";
beginL1ASbtn.visible = true;
beginL1ASbtn.addEventListener(MouseEvent.CLICK, beginL1AS);
}
function frame1(){
_mochiads_game_id = "f2fdf4875894bbad";
MochiServices.connect("f2fdf4875894bbad", this);
}
function frame8(){
stop();
hand.startDrag(true);
addEventListener(MouseEvent.MOUSE_DOWN, pokeHand);
myMenu = new ContextMenu();
item1 = new ContextMenuItem("anatomyarcade.com");
myMenu.customItems.push(item1);
myMenu.hideBuiltInItems();
contextMenu = myMenu;
try {
fscommand("trapallkeys", "true");
} catch(error:Error) {
};
splashScreen.addEventListener(MouseEvent.MOUSE_DOWN, closeSplash);
AAbutton.addEventListener(MouseEvent.MOUSE_OVER, AAhover);
AAbutton.addEventListener(MouseEvent.MOUSE_OUT, AAout);
AAbutton.addEventListener(MouseEvent.CLICK, gotoAASite);
L1ASList = new Array();
L1APList = new Array();
L1PSList = new Array();
L1PPList = new Array();
L2ASList = new Array();
L2APList = new Array();
L2PSList = new Array();
L2PPList = new Array();
L3PSList = new Array();
L3PPList = new Array();
L1ASmuscleTimes = new Array();
L1APmuscleTimes = new Array();
L1PSmuscleTimes = new Array();
L1PPmuscleTimes = new Array();
L2ASmuscleTimes = new Array();
L2APmuscleTimes = new Array();
L2PSmuscleTimes = new Array();
L2PPmuscleTimes = new Array();
L3PSmuscleTimes = new Array();
L3PPmuscleTimes = new Array();
L1AStopScores = new Array();
L1APtopScores = new Array();
L1PStopScores = new Array();
L1PPtopScores = new Array();
L2AStopScores = new Array();
L2APtopScores = new Array();
L2PStopScores = new Array();
L2PPtopScores = new Array();
L3PStopScores = new Array();
L3PPtopScores = new Array();
PAMtopScores = new Array();
fastMuscleScore.text = "";
fasterMuscleScore.text = "";
fastestMuscleScore.text = "";
slowMuscleScore.text = "";
slowerMuscleScore.text = "";
slowestMuscleScore.text = "";
L1ASscore.text = "";
L1APscore.text = "";
L1PSscore.text = "";
L1PPscore.text = "";
L2ASscore.text = "";
L2APscore.text = "";
L2PSscore.text = "";
L2PPscore.text = "";
L3PSscore.text = "";
L3PPscore.text = "";
totalScore.text = "";
SAdductors = new sAdductors();
SBicepsBrachii = new sBicepsBrachii();
SBicepsFemoris = new sBicepsFemoris();
SBrachialis = new sBrachialis();
SBrachioradialis = new sBrachioradialis();
SDeltoid = new sDeltoid();
SErectorSpinae = new sErectorSpinae();
SExternalOblique = new sExternalOblique();
SGastrocnemius = new sGastrocnemius();
SGluteusMaximus = new sGluteusMaximus();
SHamstrings = new sHamstrings();
SInfraspinatus = new sInfraspinatus();
SLatissimusDorsi = new sLatissimusDorsi();
SPectoralisMajor = new sPectoralisMajor();
SPeroneusLongus = new sPeroneusLongus();
SQuadriceps = new sQuadriceps();
SRectusAbdominis = new sRectusAbdominus();
SRectusFemoris = new sRectusFemoris();
SSartorius = new sSartorius();
SSemimembranosus = new sSemimembranosus();
SSemitendinosus = new sSemitendinosus();
SSerratusAnterior = new sSerratusAnterior();
SSoleus = new sSoleus();
STensorFasciaeLatae = new sTensorFasciaeLatae();
STeresMajor = new sTeresMajor();
STibialisAnterior = new sTibialisAnterior();
STrapezius = new sTrapezius();
STricepsBrachii = new sTricepsBrachii();
SVastusLateralis = new sVastusLateralis();
SVastusMedialis = new sVastusMedialis();
SWristExtensors = new sWristExtensors();
SWristFlexors = new sWristFlexors();
Buzz = new buzz();
sSquwelch3 = new Squwelch3();
sClick = new Click();
Zing = new Zing1();
whiteGlow = new GlowFilter(0xFFFFFF, 1, 10, 10, 1, 1, false, false);
redGlow = new GlowFilter(0xFF0000, 1, 7, 7, 1, 2, false, false);
greenGlow = new GlowFilter(0xFF00, 1, 7, 7, 1, 2, false, false);
purpleKnockOutGlow = new GlowFilter(16777113, 1, 20, 20, 1, 2, false, true);
greenKnockOutGlow = new GlowFilter(0xFF00, 1, 7, 7, 1, 2, false, true);
redKnockOutGlow = new GlowFilter(0xFF0000, 1, 20, 20, 1, 2, false, true);
dropShadow = new DropShadowFilter(3, 90, 1, 1, 4, 4, 1, 1, false, false, false);
whereTo = "";
whereFrom = "";
comments.text = "Say hello to Russell the Muscleman, who is kindly allowing us to poke him in the name of learning. Click the first of the unlocked stages to get things going.";
unlockNotice.visible = false;
levelOneNotice.visible = false;
levelTwoNotice.visible = false;
PAMcompleted.visible = false;
L1ASlock.gotoAndPlay("first");
L1ASready++;
levelCheck();
celebrationTrack = new PAMcelebrate();
titleTrack = new PAMtrack();
musicChannel = new SoundChannel();
someTransform = new SoundTransform();
musicChannel = titleTrack.play(0, 99999);
musicOn = true;
toggleMusic.addEventListener(MouseEvent.CLICK, stopMusic);
}
public function AAhover(_arg1:MouseEvent){
AAbutton.gotoAndStop("hover");
}
public function titleFadeIn():void{
var titleVolumeIn:Number;
var titleFadingIn:Function;
titleFadingIn = function ():void{
var _local1:SoundTransform;
titleVolumeIn = (titleVolumeIn + (1 / 20));
_local1 = new SoundTransform(titleVolumeIn, 0);
musicChannel.soundTransform = _local1;
};
titleVolumeIn = 0;
titleTimerIn = new Timer(100, 20);
titleTimerIn.addEventListener(TimerEvent.TIMER, titleFadingIn);
titleTimerIn.start();
}
public function L3PP():void{
var randomizeL3PPArray:*;
var beginL3PP:Function;
var L3PPgoing:Function;
beginL3PP = function (_arg1:MouseEvent){
var countdownFeedback:Function;
var event = _arg1;
countdownFeedback = function (_arg1:TimerEvent){
countdownTimer.removeEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.stop();
beginL3PPbtn.visible = false;
L3PPgoing();
};
L3PPList.sort(randomizeL3PPArray);
L3PPmuscleTimes.splice(0, 24);
totalPoints = 0;
index = 0;
correctCount = 0;
seconds = 101;
percentageScore = 0;
clickCount = 0;
clickDiff = 0;
feedback.visible = false;
labelTrapezius.visible = false;
labelDeltoid.visible = false;
labelTricepsBrachii.visible = false;
labelLatissimusDorsi.visible = false;
labelGluteusMaximus.visible = false;
labelAdductors.visible = false;
labelGastrocnemius.visible = false;
labelWristExtensors.visible = false;
labelWristFlexors.visible = false;
labelPectoralisMajor.visible = false;
labelBrachialis.visible = false;
labelBicepsBrachii.visible = false;
labelBrachioradialis.visible = false;
labelSerratusAnterior.visible = false;
labelRectusAbdominis.visible = false;
labelExternalOblique.visible = false;
labelTensorFasciaeLatae.visible = false;
labelRectusFemoris.visible = false;
labelVastusLateralis.visible = false;
labelVastusMedialis.visible = false;
labelSartorius.visible = false;
labelTibialisAnterior.visible = false;
labelPeroneusLongus.visible = false;
labelSoleus.visible = false;
poseTrapezius.alpha = 0.01;
poseDeltoid.alpha = 0.01;
poseTricepsBrachii.alpha = 0.01;
poseLatissimusDorsi.alpha = 0.01;
poseGluteusMaximus.alpha = 0.01;
poseAdductors.alpha = 0.01;
poseGastrocnemius.alpha = 0.01;
poseWristExtensors.alpha = 0.01;
poseWristFlexors.alpha = 0.01;
posePectoralisMajor.alpha = 0.01;
poseBrachialis.alpha = 0.01;
poseBicepsBrachii.alpha = 0.01;
poseBrachioradialis.alpha = 0.01;
poseSerratusAnterior.alpha = 0.01;
poseRectusAbdominis.alpha = 0.01;
poseExternalOblique.alpha = 0.01;
poseTensorFasciaeLatae.alpha = 0.01;
poseRectusFemoris.alpha = 0.01;
poseVastusLateralis.alpha = 0.01;
poseVastusMedialis.alpha = 0.01;
poseSartorius.alpha = 0.01;
poseTibialisAnterior.alpha = 0.01;
posePeroneusLongus.alpha = 0.01;
poseSoleus.alpha = 0.01;
poseUnderlay.visible = true;
poseSkin.visible = false;
muscleNameDisplay.text = "";
scores.text = "";
comments.text = "Good Luck. Poke fast.";
timeBar.visible = false;
fastestMuscleScore.text = "";
fasterMuscleScore.text = "";
fastMuscleScore.text = "";
fastestMuscle.text = "";
fasterMuscle.text = "";
fastMuscle.text = "";
slowestMuscleScore.text = "";
slowerMuscleScore.text = "";
slowMuscleScore.text = "";
slowestMuscle.text = "";
slowerMuscle.text = "";
slowMuscle.text = "";
poseSkin.visible = true;
resetL3PP.visible = false;
beginL3PPbtn.gotoAndPlay("countdown");
beginL3PPbtn.removeEventListener(MouseEvent.CLICK, beginL3PP);
countdownTimer = new Timer(3000, 1);
countdownTimer.addEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.start();
};
L3PPgoing = function ():void{
var L3PPticking:Function;
var L3PPnextMuscle:Function;
var clickCounter:Function;
var clickL3PPmuscle:Function;
var L3PPfinish:Function;
L3PPticking = function (_arg1:TimerEvent){
seconds--;
timeBar.scaleX = (seconds / 101);
L3PPList[index].muscle.alpha = ((seconds / -100) + 1);
if (seconds == 0){
removeEventListener(MouseEvent.CLICK, clickCounter);
L3PPList[index].muscle.removeEventListener(MouseEvent.MOUSE_DOWN, clickL3PPmuscle);
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L3PPticking);
poseSkin.visible = false;
muscleNameDisplay.text = "";
poseUnderlay.visible = false;
timeBar.visible = false;
poseTrapezius.alpha = 0.01;
poseDeltoid.alpha = 0.01;
poseTricepsBrachii.alpha = 0.01;
poseLatissimusDorsi.alpha = 0.01;
poseGluteusMaximus.alpha = 0.01;
poseAdductors.alpha = 0.01;
poseGastrocnemius.alpha = 0.01;
poseWristExtensors.alpha = 0.01;
poseWristFlexors.alpha = 0.01;
posePectoralisMajor.alpha = 0.01;
poseBrachialis.alpha = 0.01;
poseBicepsBrachii.alpha = 0.01;
poseBrachioradialis.alpha = 0.01;
poseSerratusAnterior.alpha = 0.01;
poseRectusAbdominis.alpha = 0.01;
poseExternalOblique.alpha = 0.01;
poseTensorFasciaeLatae.alpha = 0.01;
poseRectusFemoris.alpha = 0.01;
poseVastusLateralis.alpha = 0.01;
poseVastusMedialis.alpha = 0.01;
poseSartorius.alpha = 0.01;
poseTibialisAnterior.alpha = 0.01;
posePeroneusLongus.alpha = 0.01;
poseSoleus.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / 100)) / 30);
scores.text = String(percentageScore);
L3PPtopScores.push(percentageScore);
L3PPscore.text = L3PPtopScores[0];
if (percentageScore > L3PPtopScores[0]){
L3PPtopScores[0] = percentageScore;
L3PPscore.text = L3PPtopScores[0];
};
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
};
};
};
};
};
};
};
resetL3PP.gotoAndPlay("loop");
whereFrom = "L3PP";
titleFadeIn();
levelCheck();
};
};
L3PPnextMuscle = function ():void{
var nameL3PPmuscle:Function;
nameL3PPmuscle = function ():void{
var playSound:Function;
playSound = function (_arg1:Object){
var _local2:SoundChannel;
_local2 = _arg1.play();
};
muscleNameDisplay.text = L3PPList[index].muscleNames;
playSound(L3PPList[index].muscleSound);
};
L3PPList[index].muscle.addEventListener(MouseEvent.MOUSE_DOWN, clickL3PPmuscle);
seconds = 101;
nameL3PPmuscle();
};
clickCounter = function (_arg1:MouseEvent){
clickCount++;
clickDiff = (clickCount - correctCount);
if (clickDiff > 5){
seconds = 1;
};
};
clickL3PPmuscle = function (_arg1:MouseEvent){
var L3PPWhereTo:Function;
var event = _arg1;
L3PPWhereTo = function ():void{
if (correctCount == 24){
removeEventListener(MouseEvent.CLICK, clickCounter);
L3PPfinish();
} else {
removeEventListener(MouseEvent.CLICK, clickCounter);
L3PPgoing();
};
};
sSquwelch3.play();
L3PPmuscleTimes.push({L3PPscoreMuscleName:L3PPList[index].muscleNames, L3PPmuscleScore:seconds, L3PPmuscleScoreLabel:L3PPList[index].muscleLabel});
totalPoints = (totalPoints + seconds);
L3PPList[index].muscle.removeEventListener(MouseEvent.MOUSE_DOWN, clickL3PPmuscle);
index++;
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L3PPticking);
correctCount++;
L3PPWhereTo();
};
L3PPfinish = function ():void{
poseSkin.visible = false;
poseUnderlay.visible = false;
muscleNameDisplay.text = "";
timeBar.visible = false;
poseTrapezius.alpha = 0.01;
poseDeltoid.alpha = 0.01;
poseTricepsBrachii.alpha = 0.01;
poseLatissimusDorsi.alpha = 0.01;
poseGluteusMaximus.alpha = 0.01;
poseAdductors.alpha = 0.01;
poseGastrocnemius.alpha = 0.01;
poseWristExtensors.alpha = 0.01;
poseWristFlexors.alpha = 0.01;
posePectoralisMajor.alpha = 0.01;
poseBrachialis.alpha = 0.01;
poseBicepsBrachii.alpha = 0.01;
poseBrachioradialis.alpha = 0.01;
poseSerratusAnterior.alpha = 0.01;
poseRectusAbdominis.alpha = 0.01;
poseExternalOblique.alpha = 0.01;
poseTensorFasciaeLatae.alpha = 0.01;
poseRectusFemoris.alpha = 0.01;
poseVastusLateralis.alpha = 0.01;
poseVastusMedialis.alpha = 0.01;
poseSartorius.alpha = 0.01;
poseTibialisAnterior.alpha = 0.01;
posePeroneusLongus.alpha = 0.01;
poseSoleus.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / (correctCount * 10))) / 10);
scores.text = String(percentageScore);
L3PPtopScores.push(percentageScore);
L3PPscore.text = L3PPtopScores[0];
if (percentageScore > L3PPtopScores[0]){
L3PPtopScores[0] = percentageScore;
L3PPscore.text = L3PPtopScores[0];
};
if (L3PPtopScores[0] >= 80){
L3PPcomplete++;
};
whereFrom = "L3PP";
levelCheck();
titleFadeIn();
L3PPmuscleTimes.sortOn("L3PPmuscleScore", Array.DESCENDING);
fastestMuscle.text = L3PPmuscleTimes[0].L3PPscoreMuscleName;
fastestMuscleScore.text = L3PPmuscleTimes[0].L3PPmuscleScore;
fasterMuscle.text = L3PPmuscleTimes[1].L3PPscoreMuscleName;
fasterMuscleScore.text = L3PPmuscleTimes[1].L3PPmuscleScore;
fastMuscle.text = L3PPmuscleTimes[2].L3PPscoreMuscleName;
fastMuscleScore.text = L3PPmuscleTimes[2].L3PPmuscleScore;
slowMuscle.text = L3PPmuscleTimes[21].L3PPscoreMuscleName;
slowMuscleScore.text = L3PPmuscleTimes[21].L3PPmuscleScore;
slowerMuscle.text = L3PPmuscleTimes[22].L3PPscoreMuscleName;
slowerMuscleScore.text = L3PPmuscleTimes[22].L3PPmuscleScore;
slowestMuscle.text = L3PPmuscleTimes[23].L3PPscoreMuscleName;
slowestMuscleScore.text = L3PPmuscleTimes[23].L3PPmuscleScore;
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
} else {
if (percentageScore < 86){
feedback.gotoAndStop("pass1");
comments.text = "You can be proud of that effort.";
} else {
if (percentageScore < 90){
feedback.gotoAndStop("pass2");
comments.text = "Oh yeah. Bring it on.";
} else {
if (percentageScore < 92){
feedback.gotoAndStop("pass3");
comments.text = "YES!";
} else {
if (percentageScore < 93){
feedback.gotoAndStop("pass4");
comments.text = "Bang! Cop that.";
} else {
if (percentageScore < 94){
feedback.gotoAndStop("pass5");
comments.text = "Maaaate, that was massive!";
} else {
if (percentageScore < 95){
feedback.gotoAndStop("pass6");
comments.text = "Stand clear. Poke-A-Muscle legend charging through.";
} else {
if (percentageScore >= 95){
feedback.gotoAndStop("pass7");
comments.text = "Seriously dude, you rock!";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
poseTrapezius.alpha = 0.01;
poseDeltoid.alpha = 0.01;
poseTricepsBrachii.alpha = 0.01;
poseLatissimusDorsi.alpha = 0.01;
poseGluteusMaximus.alpha = 0.01;
poseAdductors.alpha = 0.01;
poseGastrocnemius.alpha = 0.01;
poseWristExtensors.alpha = 0.01;
poseWristFlexors.alpha = 0.01;
posePectoralisMajor.alpha = 0.01;
poseBrachialis.alpha = 0.01;
poseBicepsBrachii.alpha = 0.01;
poseBrachioradialis.alpha = 0.01;
poseSerratusAnterior.alpha = 0.01;
poseRectusAbdominis.alpha = 0.01;
poseExternalOblique.alpha = 0.01;
poseTensorFasciaeLatae.alpha = 0.01;
poseRectusFemoris.alpha = 0.01;
poseVastusLateralis.alpha = 0.01;
poseVastusMedialis.alpha = 0.01;
poseSartorius.alpha = 0.01;
poseTibialisAnterior.alpha = 0.01;
posePeroneusLongus.alpha = 0.01;
poseSoleus.alpha = 0.01;
comments.text = "";
addEventListener(MouseEvent.CLICK, clickCounter);
timeBar.visible = true;
PAMtime = new Timer(100, 101);
PAMtime.addEventListener(TimerEvent.TIMER, L3PPticking);
PAMtime.start();
L3PPnextMuscle();
};
L3PPList.splice(0, 24);
L3PPList.push({muscle:poseTrapezius, muscleNames:"Trapezius", muscleLabel:labelTrapezius, muscleSound:STrapezius});
L3PPList.push({muscle:poseDeltoid, muscleNames:"Deltoid", muscleLabel:labelDeltoid, muscleSound:SDeltoid});
L3PPList.push({muscle:poseTricepsBrachii, muscleNames:"Triceps Brachii", muscleLabel:labelTricepsBrachii, muscleSound:STricepsBrachii});
L3PPList.push({muscle:poseLatissimusDorsi, muscleNames:"Latissimus Dorsi", muscleLabel:labelLatissimusDorsi, muscleSound:SLatissimusDorsi});
L3PPList.push({muscle:poseGluteusMaximus, muscleNames:"Gluteus Maximus", muscleLabel:labelGluteusMaximus, muscleSound:SGluteusMaximus});
L3PPList.push({muscle:poseAdductors, muscleNames:"Adductors", muscleLabel:labelAdductors, muscleSound:SAdductors});
L3PPList.push({muscle:poseGastrocnemius, muscleNames:"Gastrocnemius", muscleLabel:labelGastrocnemius, muscleSound:SGastrocnemius});
L3PPList.push({muscle:poseWristFlexors, muscleNames:"Wrist Flexors", muscleLabel:labelWristFlexors, muscleSound:SWristFlexors});
L3PPList.push({muscle:poseWristExtensors, muscleNames:"Wrist Extensors", muscleLabel:labelWristExtensors, muscleSound:SWristExtensors});
L3PPList.push({muscle:posePectoralisMajor, muscleNames:"Pectoralis Major", muscleLabel:labelPectoralisMajor, muscleSound:SPectoralisMajor});
L3PPList.push({muscle:poseBrachialis, muscleNames:"Brachialis", muscleLabel:labelBrachialis, muscleSound:SBrachialis});
L3PPList.push({muscle:poseBicepsBrachii, muscleNames:"Biceps Brachii", muscleLabel:labelBicepsBrachii, muscleSound:SBicepsBrachii});
L3PPList.push({muscle:poseBrachioradialis, muscleNames:"Brachioradialis", muscleLabel:labelBrachioradialis, muscleSound:SBrachioradialis});
L3PPList.push({muscle:poseSerratusAnterior, muscleNames:"Serratus Anterior", muscleLabel:labelSerratusAnterior, muscleSound:SSerratusAnterior});
L3PPList.push({muscle:poseRectusAbdominis, muscleNames:"Rectus Abdominis", muscleLabel:labelRectusAbdominis, muscleSound:SRectusAbdominis});
L3PPList.push({muscle:poseExternalOblique, muscleNames:"External Oblique", muscleLabel:labelExternalOblique, muscleSound:SExternalOblique});
L3PPList.push({muscle:poseTensorFasciaeLatae, muscleNames:"Tensor Fasciae Latae", muscleLabel:labelTensorFasciaeLatae, muscleSound:STensorFasciaeLatae});
L3PPList.push({muscle:poseRectusFemoris, muscleNames:"Rectus Femoris", muscleLabel:labelRectusFemoris, muscleSound:SRectusFemoris});
L3PPList.push({muscle:poseVastusLateralis, muscleNames:"Vastus Lateralis", muscleLabel:labelVastusLateralis, muscleSound:SVastusLateralis});
L3PPList.push({muscle:poseVastusMedialis, muscleNames:"Vastus Medialis", muscleLabel:labelVastusMedialis, muscleSound:SVastusMedialis});
L3PPList.push({muscle:poseSartorius, muscleNames:"Sartorius", muscleLabel:labelSartorius, muscleSound:SSartorius});
L3PPList.push({muscle:poseTibialisAnterior, muscleNames:"Tibialis Anterior", muscleLabel:labelTibialisAnterior, muscleSound:STibialisAnterior});
L3PPList.push({muscle:posePeroneusLongus, muscleNames:"Peroneus Longus", muscleLabel:labelPeroneusLongus, muscleSound:SPeroneusLongus});
L3PPList.push({muscle:poseSoleus, muscleNames:"Soleus", muscleLabel:labelSoleus, muscleSound:SSoleus});
randomizeL3PPArray = function (_arg1:Object, _arg2:Object):Number{
return (Math.floor((Math.random() * 23)));
};
L3PPList.sort(randomizeL3PPArray);
muscleNameDisplay.text = "";
comments.text = "LEVEL 3 - Pose View - Poke Stage Last level. You've come so far. Do yourself proud!";
scores.text = "";
timeBar.visible = false;
poseSkin.visible = false;
poseUnderlay.visible = true;
feedback.visible = false;
unlockNotice.visible = false;
labelTrapezius.visible = true;
labelDeltoid.visible = true;
labelTricepsBrachii.visible = true;
labelLatissimusDorsi.visible = true;
labelGluteusMaximus.visible = true;
labelAdductors.visible = true;
labelGastrocnemius.visible = true;
labelWristExtensors.visible = true;
labelWristFlexors.visible = true;
labelPectoralisMajor.visible = true;
labelBrachialis.visible = true;
labelBicepsBrachii.visible = true;
labelBrachioradialis.visible = true;
labelSerratusAnterior.visible = true;
labelRectusAbdominis.visible = true;
labelExternalOblique.visible = true;
labelTensorFasciaeLatae.visible = true;
labelRectusFemoris.visible = true;
labelVastusLateralis.visible = true;
labelVastusMedialis.visible = true;
labelSartorius.visible = true;
labelTibialisAnterior.visible = true;
labelPeroneusLongus.visible = true;
labelSoleus.visible = true;
poseTrapezius.alpha = 1;
poseDeltoid.alpha = 1;
poseTricepsBrachii.alpha = 1;
poseLatissimusDorsi.alpha = 1;
poseGluteusMaximus.alpha = 1;
poseAdductors.alpha = 1;
poseGastrocnemius.alpha = 1;
poseWristExtensors.alpha = 1;
poseWristFlexors.alpha = 1;
posePectoralisMajor.alpha = 1;
poseBrachialis.alpha = 1;
poseBicepsBrachii.alpha = 1;
poseBrachioradialis.alpha = 1;
poseSerratusAnterior.alpha = 1;
poseRectusAbdominis.alpha = 1;
poseExternalOblique.alpha = 1;
poseTensorFasciaeLatae.alpha = 1;
poseRectusFemoris.alpha = 1;
poseVastusLateralis.alpha = 1;
poseVastusMedialis.alpha = 1;
poseSartorius.alpha = 1;
poseTibialisAnterior.alpha = 1;
posePeroneusLongus.alpha = 1;
poseSoleus.alpha = 1;
whereFrom = "L3PP";
resetL3PP.gotoAndStop("reset");
resetL3PP.visible = false;
beginL3PPbtn.visible = true;
beginL3PPbtn.addEventListener(MouseEvent.CLICK, beginL3PP);
}
public function L3PS():void{
var randomizeL3PSArray:*;
var beginL3PS:Function;
var L3PSgoing:Function;
beginL3PS = function (_arg1:MouseEvent){
var countdownFeedback:Function;
var event = _arg1;
countdownFeedback = function (_arg1:TimerEvent){
countdownTimer.removeEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.stop();
beginL3PSbtn.visible = false;
L3PSgoing();
};
hand.stopDrag();
hand.visible = false;
scannerHand.visible = true;
scannerHand.startDrag(true);
L3PSList.sort(randomizeL3PSArray);
L3PSmuscleTimes.splice(0, 24);
totalPoints = 0;
index = 0;
correctCount = 0;
seconds = 101;
percentageScore = 0;
clickCount = 0;
clickDiff = 0;
feedback.visible = false;
labelTrapezius.visible = false;
labelDeltoid.visible = false;
labelTricepsBrachii.visible = false;
labelLatissimusDorsi.visible = false;
labelGluteusMaximus.visible = false;
labelAdductors.visible = false;
labelGastrocnemius.visible = false;
labelWristExtensors.visible = false;
labelWristFlexors.visible = false;
labelPectoralisMajor.visible = false;
labelBrachialis.visible = false;
labelBicepsBrachii.visible = false;
labelBrachioradialis.visible = false;
labelSerratusAnterior.visible = false;
labelRectusAbdominis.visible = false;
labelExternalOblique.visible = false;
labelTensorFasciaeLatae.visible = false;
labelRectusFemoris.visible = false;
labelVastusLateralis.visible = false;
labelVastusMedialis.visible = false;
labelSartorius.visible = false;
labelTibialisAnterior.visible = false;
labelPeroneusLongus.visible = false;
labelSoleus.visible = false;
poseTrapezius.alpha = 0.01;
poseDeltoid.alpha = 0.01;
poseTricepsBrachii.alpha = 0.01;
poseLatissimusDorsi.alpha = 0.01;
poseGluteusMaximus.alpha = 0.01;
poseAdductors.alpha = 0.01;
poseGastrocnemius.alpha = 0.01;
poseWristExtensors.alpha = 0.01;
poseWristFlexors.alpha = 0.01;
posePectoralisMajor.alpha = 0.01;
poseBrachialis.alpha = 0.01;
poseBicepsBrachii.alpha = 0.01;
poseBrachioradialis.alpha = 0.01;
poseSerratusAnterior.alpha = 0.01;
poseRectusAbdominis.alpha = 0.01;
poseExternalOblique.alpha = 0.01;
poseTensorFasciaeLatae.alpha = 0.01;
poseRectusFemoris.alpha = 0.01;
poseVastusLateralis.alpha = 0.01;
poseVastusMedialis.alpha = 0.01;
poseSartorius.alpha = 0.01;
poseTibialisAnterior.alpha = 0.01;
posePeroneusLongus.alpha = 0.01;
poseSoleus.alpha = 0.01;
poseUnderlay.visible = true;
poseUnderlay.mask = scannerHand.scanner;
muscleNameDisplay.text = "";
scores.text = "";
comments.text = "Good Luck. Hunt fast.";
timeBar.visible = false;
fastestMuscleScore.text = "";
fasterMuscleScore.text = "";
fastMuscleScore.text = "";
fastestMuscle.text = "";
fasterMuscle.text = "";
fastMuscle.text = "";
slowestMuscleScore.text = "";
slowerMuscleScore.text = "";
slowMuscleScore.text = "";
slowestMuscle.text = "";
slowerMuscle.text = "";
slowMuscle.text = "";
poseSkin.visible = true;
resetL3PS.visible = false;
beginL3PSbtn.gotoAndPlay("countdown");
beginL3PSbtn.removeEventListener(MouseEvent.CLICK, beginL3PS);
countdownTimer = new Timer(3000, 1);
countdownTimer.addEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.start();
};
L3PSgoing = function ():void{
var L3PSticking:Function;
var L3PSnextMuscle:Function;
var clickCounter:Function;
var clickL3PSmuscle:Function;
var L3PSfinish:Function;
L3PSticking = function (_arg1:TimerEvent){
seconds--;
timeBar.scaleX = (seconds / 101);
if (seconds == 0){
removeEventListener(MouseEvent.CLICK, clickCounter);
L3PSList[index].muscle.mask = null;
L3PSList[index].muscle.removeEventListener(MouseEvent.CLICK, clickL3PSmuscle);
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L3PSticking);
scannerHand.stopDrag();
scannerHand.visible = false;
hand.startDrag(true);
hand.visible = true;
poseSkin.visible = false;
muscleNameDisplay.text = "";
poseUnderlay.mask = null;
poseUnderlay.visible = false;
timeBar.visible = false;
poseTrapezius.alpha = 0.01;
poseDeltoid.alpha = 0.01;
poseTricepsBrachii.alpha = 0.01;
poseLatissimusDorsi.alpha = 0.01;
poseGluteusMaximus.alpha = 0.01;
poseAdductors.alpha = 0.01;
poseGastrocnemius.alpha = 0.01;
poseWristExtensors.alpha = 0.01;
poseWristFlexors.alpha = 0.01;
posePectoralisMajor.alpha = 0.01;
poseBrachialis.alpha = 0.01;
poseBicepsBrachii.alpha = 0.01;
poseBrachioradialis.alpha = 0.01;
poseSerratusAnterior.alpha = 0.01;
poseRectusAbdominis.alpha = 0.01;
poseExternalOblique.alpha = 0.01;
poseTensorFasciaeLatae.alpha = 0.01;
poseRectusFemoris.alpha = 0.01;
poseVastusLateralis.alpha = 0.01;
poseVastusMedialis.alpha = 0.01;
poseSartorius.alpha = 0.01;
poseTibialisAnterior.alpha = 0.01;
posePeroneusLongus.alpha = 0.01;
poseSoleus.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / 100)) / 30);
scores.text = String(percentageScore);
L3PStopScores.push(percentageScore);
L3PSscore.text = L3PStopScores[0];
if (percentageScore > L3PStopScores[0]){
L3PStopScores[0] = percentageScore;
L3PSscore.text = L3PStopScores[0];
};
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
};
};
};
};
};
};
};
resetL3PS.gotoAndPlay("loop");
whereFrom = "L3PS";
titleFadeIn();
levelCheck();
};
};
L3PSnextMuscle = function ():void{
var nameL3PSmuscle:Function;
nameL3PSmuscle = function ():void{
var playSound:Function;
playSound = function (_arg1:Object){
var _local2:SoundChannel;
_local2 = _arg1.play();
};
muscleNameDisplay.text = L3PSList[index].muscleNames;
playSound(L3PSList[index].muscleSound);
};
L3PSList[index].muscle.addEventListener(MouseEvent.CLICK, clickL3PSmuscle);
seconds = 101;
nameL3PSmuscle();
L3PSList[index].muscle.alpha = 1;
L3PSList[index].muscle.mask = scannerHand.mscanner;
};
clickCounter = function (_arg1:MouseEvent){
clickCount++;
clickDiff = (clickCount - correctCount);
if (clickDiff > 5){
seconds = 1;
};
};
clickL3PSmuscle = function (_arg1:MouseEvent){
var L3PSWhereTo:Function;
var event = _arg1;
L3PSWhereTo = function ():void{
if (correctCount == 24){
removeEventListener(MouseEvent.CLICK, clickCounter);
L3PSfinish();
} else {
removeEventListener(MouseEvent.CLICK, clickCounter);
L3PSgoing();
};
};
scannerHand.gotoAndPlay("scanClick");
Buzz.play();
L3PSmuscleTimes.push({L3PSscoreMuscleName:L3PSList[index].muscleNames, L3PSmuscleScore:seconds, L3PSmuscleScoreLabel:L3PSList[index].muscleLabel});
totalPoints = (totalPoints + seconds);
L3PSList[index].muscle.mask = null;
L3PSList[index].muscle.removeEventListener(MouseEvent.CLICK, clickL3PSmuscle);
index++;
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L3PSticking);
correctCount++;
L3PSWhereTo();
};
L3PSfinish = function ():void{
scannerHand.stopDrag();
scannerHand.x = 0;
scannerHand.y = 0;
scannerHand.visible = false;
hand.startDrag(true);
hand.visible = true;
poseUnderlay.mask = null;
poseUnderlay.visible = false;
poseSkin.visible = false;
muscleNameDisplay.text = "";
timeBar.visible = false;
poseTrapezius.alpha = 0.01;
poseDeltoid.alpha = 0.01;
poseTricepsBrachii.alpha = 0.01;
poseLatissimusDorsi.alpha = 0.01;
poseGluteusMaximus.alpha = 0.01;
poseAdductors.alpha = 0.01;
poseGastrocnemius.alpha = 0.01;
poseWristExtensors.alpha = 0.01;
poseWristFlexors.alpha = 0.01;
posePectoralisMajor.alpha = 0.01;
poseBrachialis.alpha = 0.01;
poseBicepsBrachii.alpha = 0.01;
poseBrachioradialis.alpha = 0.01;
poseSerratusAnterior.alpha = 0.01;
poseRectusAbdominis.alpha = 0.01;
poseExternalOblique.alpha = 0.01;
poseTensorFasciaeLatae.alpha = 0.01;
poseRectusFemoris.alpha = 0.01;
poseVastusLateralis.alpha = 0.01;
poseVastusMedialis.alpha = 0.01;
poseSartorius.alpha = 0.01;
poseTibialisAnterior.alpha = 0.01;
posePeroneusLongus.alpha = 0.01;
poseSoleus.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / (correctCount * 10))) / 10);
scores.text = String(percentageScore);
L3PStopScores.push(percentageScore);
L3PSscore.text = L3PStopScores[0];
if (percentageScore > L3PStopScores[0]){
L3PStopScores[0] = percentageScore;
L3PSscore.text = L3PStopScores[0];
};
if (L3PStopScores[0] >= 80){
L3PScomplete++;
};
whereFrom = "L3PS";
levelCheck();
titleFadeIn();
L3PSmuscleTimes.sortOn("L3PSmuscleScore", Array.DESCENDING);
fastestMuscle.text = L3PSmuscleTimes[0].L3PSscoreMuscleName;
fastestMuscleScore.text = L3PSmuscleTimes[0].L3PSmuscleScore;
fasterMuscle.text = L3PSmuscleTimes[1].L3PSscoreMuscleName;
fasterMuscleScore.text = L3PSmuscleTimes[1].L3PSmuscleScore;
fastMuscle.text = L3PSmuscleTimes[2].L3PSscoreMuscleName;
fastMuscleScore.text = L3PSmuscleTimes[2].L3PSmuscleScore;
slowMuscle.text = L3PSmuscleTimes[21].L3PSscoreMuscleName;
slowMuscleScore.text = L3PSmuscleTimes[21].L3PSmuscleScore;
slowerMuscle.text = L3PSmuscleTimes[22].L3PSscoreMuscleName;
slowerMuscleScore.text = L3PSmuscleTimes[22].L3PSmuscleScore;
slowestMuscle.text = L3PSmuscleTimes[23].L3PSscoreMuscleName;
slowestMuscleScore.text = L3PSmuscleTimes[23].L3PSmuscleScore;
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
} else {
if (percentageScore < 86){
feedback.gotoAndStop("pass1");
comments.text = "You can be proud of that effort.";
} else {
if (percentageScore < 90){
feedback.gotoAndStop("pass2");
comments.text = "Oh yeah. Bring it on.";
} else {
if (percentageScore < 92){
feedback.gotoAndStop("pass3");
comments.text = "YES!";
} else {
if (percentageScore < 93){
feedback.gotoAndStop("pass4");
comments.text = "Bang! Cop that.";
} else {
if (percentageScore < 94){
feedback.gotoAndStop("pass5");
comments.text = "Maaaate, that was massive!";
} else {
if (percentageScore < 95){
feedback.gotoAndStop("pass6");
comments.text = "Stand clear. Poke-A-Muscle legend charging through.";
} else {
if (percentageScore >= 95){
feedback.gotoAndStop("pass7");
comments.text = "Seriously dude, you rock!";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
poseTrapezius.alpha = 0.01;
poseDeltoid.alpha = 0.01;
poseTricepsBrachii.alpha = 0.01;
poseLatissimusDorsi.alpha = 0.01;
poseGluteusMaximus.alpha = 0.01;
poseAdductors.alpha = 0.01;
poseGastrocnemius.alpha = 0.01;
poseWristExtensors.alpha = 0.01;
poseWristFlexors.alpha = 0.01;
posePectoralisMajor.alpha = 0.01;
poseBrachialis.alpha = 0.01;
poseBicepsBrachii.alpha = 0.01;
poseBrachioradialis.alpha = 0.01;
poseSerratusAnterior.alpha = 0.01;
poseRectusAbdominis.alpha = 0.01;
poseExternalOblique.alpha = 0.01;
poseTensorFasciaeLatae.alpha = 0.01;
poseRectusFemoris.alpha = 0.01;
poseVastusLateralis.alpha = 0.01;
poseVastusMedialis.alpha = 0.01;
poseSartorius.alpha = 0.01;
poseTibialisAnterior.alpha = 0.01;
posePeroneusLongus.alpha = 0.01;
poseSoleus.alpha = 0.01;
comments.text = "";
addEventListener(MouseEvent.CLICK, clickCounter);
timeBar.visible = true;
PAMtime = new Timer(100, 101);
PAMtime.addEventListener(TimerEvent.TIMER, L3PSticking);
PAMtime.start();
L3PSnextMuscle();
};
L3PSList.splice(0, 24);
L3PSList.push({muscle:poseTrapezius, muscleNames:"Trapezius", muscleLabel:labelTrapezius, muscleSound:STrapezius});
L3PSList.push({muscle:poseDeltoid, muscleNames:"Deltoid", muscleLabel:labelDeltoid, muscleSound:SDeltoid});
L3PSList.push({muscle:poseTricepsBrachii, muscleNames:"Triceps Brachii", muscleLabel:labelTricepsBrachii, muscleSound:STricepsBrachii});
L3PSList.push({muscle:poseLatissimusDorsi, muscleNames:"Latissimus Dorsi", muscleLabel:labelLatissimusDorsi, muscleSound:SLatissimusDorsi});
L3PSList.push({muscle:poseGluteusMaximus, muscleNames:"Gluteus Maximus", muscleLabel:labelGluteusMaximus, muscleSound:SGluteusMaximus});
L3PSList.push({muscle:poseAdductors, muscleNames:"Adductors", muscleLabel:labelAdductors, muscleSound:SAdductors});
L3PSList.push({muscle:poseGastrocnemius, muscleNames:"Gastrocnemius", muscleLabel:labelGastrocnemius, muscleSound:SGastrocnemius});
L3PSList.push({muscle:poseWristFlexors, muscleNames:"Wrist Flexors", muscleLabel:labelWristFlexors, muscleSound:SWristFlexors});
L3PSList.push({muscle:poseWristExtensors, muscleNames:"Wrist Extensors", muscleLabel:labelWristExtensors, muscleSound:SWristExtensors});
L3PSList.push({muscle:posePectoralisMajor, muscleNames:"Pectoralis Major", muscleLabel:labelPectoralisMajor, muscleSound:SPectoralisMajor});
L3PSList.push({muscle:poseBrachialis, muscleNames:"Brachialis", muscleLabel:labelBrachialis, muscleSound:SBrachialis});
L3PSList.push({muscle:poseBicepsBrachii, muscleNames:"Biceps Brachii", muscleLabel:labelBicepsBrachii, muscleSound:SBicepsBrachii});
L3PSList.push({muscle:poseBrachioradialis, muscleNames:"Brachioradialis", muscleLabel:labelBrachioradialis, muscleSound:SBrachioradialis});
L3PSList.push({muscle:poseSerratusAnterior, muscleNames:"Serratus Anterior", muscleLabel:labelSerratusAnterior, muscleSound:SSerratusAnterior});
L3PSList.push({muscle:poseRectusAbdominis, muscleNames:"Rectus Abdominis", muscleLabel:labelRectusAbdominis, muscleSound:SRectusAbdominis});
L3PSList.push({muscle:poseExternalOblique, muscleNames:"External Oblique", muscleLabel:labelExternalOblique, muscleSound:SExternalOblique});
L3PSList.push({muscle:poseTensorFasciaeLatae, muscleNames:"Tensor Fasciae Latae", muscleLabel:labelTensorFasciaeLatae, muscleSound:STensorFasciaeLatae});
L3PSList.push({muscle:poseRectusFemoris, muscleNames:"Rectus Femoris", muscleLabel:labelRectusFemoris, muscleSound:SRectusFemoris});
L3PSList.push({muscle:poseVastusLateralis, muscleNames:"Vastus Lateralis", muscleLabel:labelVastusLateralis, muscleSound:SVastusLateralis});
L3PSList.push({muscle:poseVastusMedialis, muscleNames:"Vastus Medialis", muscleLabel:labelVastusMedialis, muscleSound:SVastusMedialis});
L3PSList.push({muscle:poseSartorius, muscleNames:"Sartorius", muscleLabel:labelSartorius, muscleSound:SSartorius});
L3PSList.push({muscle:poseTibialisAnterior, muscleNames:"Tibialis Anterior", muscleLabel:labelTibialisAnterior, muscleSound:STibialisAnterior});
L3PSList.push({muscle:posePeroneusLongus, muscleNames:"Peroneus Longus", muscleLabel:labelPeroneusLongus, muscleSound:SPeroneusLongus});
L3PSList.push({muscle:poseSoleus, muscleNames:"Soleus", muscleLabel:labelSoleus, muscleSound:SSoleus});
randomizeL3PSArray = function (_arg1:Object, _arg2:Object):Number{
return (Math.floor((Math.random() * 23)));
};
L3PSList.sort(randomizeL3PSArray);
muscleNameDisplay.text = "";
comments.text = "LEVEL 3 - Pose View - Scan Stage Now I know it looks like a lot of muscles, but there is actually only 4 new ones.";
scores.text = "";
timeBar.visible = false;
poseUnderlay.visible = true;
poseSkin.visible = false;
feedback.visible = false;
unlockNotice.visible = false;
labelTrapezius.visible = true;
labelDeltoid.visible = true;
labelTricepsBrachii.visible = true;
labelLatissimusDorsi.visible = true;
labelGluteusMaximus.visible = true;
labelAdductors.visible = true;
labelGastrocnemius.visible = true;
labelWristExtensors.visible = true;
labelWristFlexors.visible = true;
labelPectoralisMajor.visible = true;
labelBrachialis.visible = true;
labelBicepsBrachii.visible = true;
labelBrachioradialis.visible = true;
labelSerratusAnterior.visible = true;
labelRectusAbdominis.visible = true;
labelExternalOblique.visible = true;
labelTensorFasciaeLatae.visible = true;
labelRectusFemoris.visible = true;
labelVastusLateralis.visible = true;
labelVastusMedialis.visible = true;
labelSartorius.visible = true;
labelTibialisAnterior.visible = true;
labelPeroneusLongus.visible = true;
labelSoleus.visible = true;
beginL3PSbtn.visible = false;
resetL3PS.gotoAndStop("reset");
resetL3PS.visible = false;
poseTrapezius.alpha = 1;
poseDeltoid.alpha = 1;
poseTricepsBrachii.alpha = 1;
poseLatissimusDorsi.alpha = 1;
poseGluteusMaximus.alpha = 1;
poseAdductors.alpha = 1;
poseGastrocnemius.alpha = 1;
poseWristExtensors.alpha = 1;
poseWristFlexors.alpha = 1;
posePectoralisMajor.alpha = 1;
poseBrachialis.alpha = 1;
poseBicepsBrachii.alpha = 1;
poseBrachioradialis.alpha = 1;
poseSerratusAnterior.alpha = 1;
poseRectusAbdominis.alpha = 1;
poseExternalOblique.alpha = 1;
poseTensorFasciaeLatae.alpha = 1;
poseRectusFemoris.alpha = 1;
poseVastusLateralis.alpha = 1;
poseVastusMedialis.alpha = 1;
poseSartorius.alpha = 1;
poseTibialisAnterior.alpha = 1;
posePeroneusLongus.alpha = 1;
poseSoleus.alpha = 1;
LEVELTHREEbox.gotoAndStop("active");
pose24box.gotoAndStop("active");
L3PSlock.gotoAndStop("unlockedActive");
L3PSscorebox.gotoAndStop("active");
whereFrom = "L3PS";
beginL3PSbtn.visible = true;
beginL3PSbtn.addEventListener(MouseEvent.CLICK, beginL3PS);
}
public function L1PP():void{
var randomizeL1PPArray:*;
var beginL1PP:Function;
var L1PPgoing:Function;
beginL1PP = function (_arg1:MouseEvent){
var countdownFeedback:Function;
var event = _arg1;
countdownFeedback = function (_arg1:TimerEvent){
countdownTimer.removeEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.stop();
beginL1PPbtn.visible = false;
L1PPgoing();
};
L1PPList.sort(randomizeL1PPArray);
L1PPmuscleTimes.splice(0, 8);
totalPoints = 0;
index = 0;
correctCount = 0;
seconds = 101;
percentageScore = 0;
clickCount = 0;
clickDiff = 0;
feedback.visible = false;
labelTrapezius.visible = false;
labelDeltoid.visible = false;
labelTricepsBrachii.visible = false;
labelLatissimusDorsi.visible = false;
labelGluteusMaximus.visible = false;
labelAdductors.visible = false;
labelHamstrings.visible = false;
labelGastrocnemius.visible = false;
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorHamstrings.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
posteriorUnderlay.visible = true;
posteriorSkin.visible = false;
muscleNameDisplay.text = "";
scores.text = "";
comments.text = "Good Luck. Poke fast.";
timeBar.visible = false;
fastestMuscleScore.text = "";
fasterMuscleScore.text = "";
fastMuscleScore.text = "";
fastestMuscle.text = "";
fasterMuscle.text = "";
fastMuscle.text = "";
slowestMuscleScore.text = "";
slowerMuscleScore.text = "";
slowMuscleScore.text = "";
slowestMuscle.text = "";
slowerMuscle.text = "";
slowMuscle.text = "";
posteriorSkin.visible = true;
resetL1PP.visible = false;
beginL1PPbtn.gotoAndPlay("countdown");
beginL1PPbtn.removeEventListener(MouseEvent.CLICK, beginL1PP);
countdownTimer = new Timer(3000, 1);
countdownTimer.addEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.start();
};
L1PPgoing = function ():void{
var L1PPticking:Function;
var L1PPnextMuscle:Function;
var clickCounter:Function;
var clickL1PPmuscle:Function;
var L1PPfinish:Function;
L1PPticking = function (_arg1:TimerEvent){
seconds--;
timeBar.scaleX = (seconds / 101);
L1PPList[index].muscle.alpha = ((seconds / -100) + 1);
if (seconds == 0){
removeEventListener(MouseEvent.CLICK, clickCounter);
L1PPList[index].muscle.removeEventListener(MouseEvent.MOUSE_DOWN, clickL1PPmuscle);
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L1PPticking);
posteriorSkin.visible = false;
muscleNameDisplay.text = "";
posteriorUnderlay.visible = false;
timeBar.visible = false;
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorHamstrings.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / 100)) / 10);
scores.text = String(percentageScore);
L1PPtopScores.push(percentageScore);
L1PPscore.text = L1PPtopScores[0];
if (percentageScore > L1PPtopScores[0]){
L1PPtopScores[0] = percentageScore;
L1PPscore.text = L1PPtopScores[0];
};
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
};
};
};
};
};
};
};
resetL1PP.gotoAndPlay("loop");
whereFrom = "L1PP";
titleFadeIn();
levelCheck();
};
};
L1PPnextMuscle = function ():void{
var nameL1PPmuscle:Function;
nameL1PPmuscle = function ():void{
var playSound:Function;
playSound = function (_arg1:Object){
var _local2:SoundChannel;
_local2 = _arg1.play();
};
muscleNameDisplay.text = L1PPList[index].muscleNames;
playSound(L1PPList[index].muscleSound);
};
L1PPList[index].muscle.addEventListener(MouseEvent.MOUSE_DOWN, clickL1PPmuscle);
seconds = 101;
nameL1PPmuscle();
};
clickCounter = function (_arg1:MouseEvent){
clickCount++;
clickDiff = (clickCount - correctCount);
if (clickDiff > 5){
seconds = 1;
};
};
clickL1PPmuscle = function (_arg1:MouseEvent){
var L1PPWhereTo:Function;
var event = _arg1;
L1PPWhereTo = function ():void{
if (correctCount == 8){
removeEventListener(MouseEvent.CLICK, clickCounter);
L1PPfinish();
} else {
removeEventListener(MouseEvent.CLICK, clickCounter);
L1PPgoing();
};
};
sSquwelch3.play();
L1PPmuscleTimes.push({L1PPscoreMuscleName:L1PPList[index].muscleNames, L1PPmuscleScore:seconds, L1PPmuscleScoreLabel:L1PPList[index].muscleLabel});
totalPoints = (totalPoints + seconds);
L1PPList[index].muscle.removeEventListener(MouseEvent.MOUSE_DOWN, clickL1PPmuscle);
index++;
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L1PPticking);
correctCount++;
L1PPWhereTo();
};
L1PPfinish = function ():void{
posteriorSkin.visible = false;
posteriorUnderlay.visible = false;
muscleNameDisplay.text = "";
timeBar.visible = false;
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorHamstrings.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / (correctCount * 10))) / 10);
scores.text = String(percentageScore);
L1PPtopScores.push(percentageScore);
L1PPscore.text = L1PPtopScores[0];
if (percentageScore > L1PPtopScores[0]){
L1PPtopScores[0] = percentageScore;
L1PPscore.text = L1PPtopScores[0];
};
if (L1PPtopScores[0] >= 80){
L1PPcomplete++;
};
whereFrom = "L1PP";
levelCheck();
titleFadeIn();
L1PPmuscleTimes.sortOn("L1PPmuscleScore", Array.DESCENDING);
fastestMuscle.text = L1PPmuscleTimes[0].L1PPscoreMuscleName;
fastestMuscleScore.text = L1PPmuscleTimes[0].L1PPmuscleScore;
fasterMuscle.text = L1PPmuscleTimes[1].L1PPscoreMuscleName;
fasterMuscleScore.text = L1PPmuscleTimes[1].L1PPmuscleScore;
fastMuscle.text = L1PPmuscleTimes[2].L1PPscoreMuscleName;
fastMuscleScore.text = L1PPmuscleTimes[2].L1PPmuscleScore;
slowMuscle.text = L1PPmuscleTimes[5].L1PPscoreMuscleName;
slowMuscleScore.text = L1PPmuscleTimes[5].L1PPmuscleScore;
slowerMuscle.text = L1PPmuscleTimes[6].L1PPscoreMuscleName;
slowerMuscleScore.text = L1PPmuscleTimes[6].L1PPmuscleScore;
slowestMuscle.text = L1PPmuscleTimes[7].L1PPscoreMuscleName;
slowestMuscleScore.text = L1PPmuscleTimes[7].L1PPmuscleScore;
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
} else {
if (percentageScore < 86){
feedback.gotoAndStop("pass1");
comments.text = "You can be proud of that effort.";
} else {
if (percentageScore < 90){
feedback.gotoAndStop("pass2");
comments.text = "Oh yeah. Bring it on.";
} else {
if (percentageScore < 92){
feedback.gotoAndStop("pass3");
comments.text = "YES!";
} else {
if (percentageScore < 93){
feedback.gotoAndStop("pass4");
comments.text = "Bang! Cop that.";
} else {
if (percentageScore < 94){
feedback.gotoAndStop("pass5");
comments.text = "Maaaate, that was massive!";
} else {
if (percentageScore < 95){
feedback.gotoAndStop("pass6");
comments.text = "Stand clear. Poke-A-Muscle legend charging through.";
} else {
if (percentageScore >= 95){
feedback.gotoAndStop("pass7");
comments.text = "Seriously dude, you rock!";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorHamstrings.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
comments.text = "";
addEventListener(MouseEvent.CLICK, clickCounter);
timeBar.visible = true;
PAMtime = new Timer(100, 101);
PAMtime.addEventListener(TimerEvent.TIMER, L1PPticking);
PAMtime.start();
L1PPnextMuscle();
};
L1PPList.splice(0, 8);
L1PPList.push({muscle:posteriorTrapezius, muscleNames:"Trapezius", muscleLabel:labelTrapezius, muscleSound:STrapezius});
L1PPList.push({muscle:posteriorDeltoid, muscleNames:"Deltoid", muscleLabel:labelDeltoid, muscleSound:SDeltoid});
L1PPList.push({muscle:posteriorTricepsBrachii, muscleNames:"Triceps Brachii", muscleLabel:labelTricepsBrachii, muscleSound:STricepsBrachii});
L1PPList.push({muscle:posteriorLatissimusDorsi, muscleNames:"Latissimus Dorsi", muscleLabel:labelLatissimusDorsi, muscleSound:SLatissimusDorsi});
L1PPList.push({muscle:posteriorGluteusMaximus, muscleNames:"Gluteus Maximus", muscleLabel:labelGluteusMaximus, muscleSound:SGluteusMaximus});
L1PPList.push({muscle:posteriorAdductors, muscleNames:"Adductors", muscleLabel:labelAdductors, muscleSound:SAdductors});
L1PPList.push({muscle:posteriorHamstrings, muscleNames:"Hamstrings", muscleLabel:labelHamstrings, muscleSound:SHamstrings});
L1PPList.push({muscle:posteriorGastrocnemius, muscleNames:"Gastrocnemius", muscleLabel:labelGastrocnemius, muscleSound:SGastrocnemius});
randomizeL1PPArray = function (_arg1:Object, _arg2:Object):Number{
return (Math.floor((Math.random() * 7)));
};
L1PPList.sort(randomizeL1PPArray);
muscleNameDisplay.text = "";
comments.text = "LEVEL 1 - Posterior View - Poke Stage Press F11 (PCs) if the game isn't fitting in your browser window.";
scores.text = "";
timeBar.visible = false;
posteriorSkin.visible = false;
posteriorUnderlay.visible = true;
feedback.visible = false;
unlockNotice.visible = false;
labelTrapezius.visible = true;
labelDeltoid.visible = true;
labelTricepsBrachii.visible = true;
labelLatissimusDorsi.visible = true;
labelGluteusMaximus.visible = true;
labelAdductors.visible = true;
labelHamstrings.visible = true;
labelGastrocnemius.visible = true;
posteriorTrapezius.alpha = 1;
posteriorDeltoid.alpha = 1;
posteriorTricepsBrachii.alpha = 1;
posteriorLatissimusDorsi.alpha = 1;
posteriorGluteusMaximus.alpha = 1;
posteriorAdductors.alpha = 1;
posteriorHamstrings.alpha = 1;
posteriorGastrocnemius.alpha = 1;
whereFrom = "L1PP";
resetL1PP.gotoAndStop("reset");
resetL1PP.visible = false;
beginL1PPbtn.visible = true;
beginL1PPbtn.addEventListener(MouseEvent.CLICK, beginL1PP);
}
public function L1PS():void{
var randomizeL1PSArray:*;
var beginL1PS:Function;
var L1PSgoing:Function;
beginL1PS = function (_arg1:MouseEvent){
var countdownFeedback:Function;
var event = _arg1;
countdownFeedback = function (_arg1:TimerEvent){
countdownTimer.removeEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.stop();
beginL1PSbtn.visible = false;
L1PSgoing();
};
hand.stopDrag();
hand.visible = false;
scannerHand.visible = true;
scannerHand.startDrag(true);
L1PSList.sort(randomizeL1PSArray);
L1PSmuscleTimes.splice(0, 8);
totalPoints = 0;
index = 0;
correctCount = 0;
seconds = 101;
percentageScore = 0;
clickCount = 0;
clickDiff = 0;
feedback.visible = false;
labelTrapezius.visible = false;
labelDeltoid.visible = false;
labelTricepsBrachii.visible = false;
labelLatissimusDorsi.visible = false;
labelGluteusMaximus.visible = false;
labelAdductors.visible = false;
labelHamstrings.visible = false;
labelGastrocnemius.visible = false;
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorHamstrings.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
posteriorUnderlay.visible = true;
posteriorUnderlay.mask = scannerHand.scanner;
muscleNameDisplay.text = "";
scores.text = "";
comments.text = "Good Luck. Hunt fast.";
timeBar.visible = false;
fastestMuscleScore.text = "";
fasterMuscleScore.text = "";
fastMuscleScore.text = "";
fastestMuscle.text = "";
fasterMuscle.text = "";
fastMuscle.text = "";
slowestMuscleScore.text = "";
slowerMuscleScore.text = "";
slowMuscleScore.text = "";
slowestMuscle.text = "";
slowerMuscle.text = "";
slowMuscle.text = "";
posteriorSkin.visible = true;
resetL1PS.visible = false;
beginL1PSbtn.gotoAndPlay("countdown");
beginL1PSbtn.removeEventListener(MouseEvent.CLICK, beginL1PS);
countdownTimer = new Timer(3000, 1);
countdownTimer.addEventListener(TimerEvent.TIMER, countdownFeedback);
countdownTimer.start();
};
L1PSgoing = function ():void{
var L1PSticking:Function;
var L1PSnextMuscle:Function;
var clickCounter:Function;
var clickL1PSmuscle:Function;
var L1PSfinish:Function;
L1PSticking = function (_arg1:TimerEvent){
seconds--;
timeBar.scaleX = (seconds / 101);
if (seconds == 0){
removeEventListener(MouseEvent.CLICK, clickCounter);
L1PSList[index].muscle.mask = null;
L1PSList[index].muscle.removeEventListener(MouseEvent.CLICK, clickL1PSmuscle);
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L1PSticking);
scannerHand.stopDrag();
scannerHand.visible = false;
hand.startDrag(true);
hand.visible = true;
posteriorSkin.visible = false;
muscleNameDisplay.text = "";
posteriorUnderlay.mask = null;
posteriorUnderlay.visible = false;
timeBar.visible = false;
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorHamstrings.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / 100)) / 10);
scores.text = String(percentageScore);
L1PStopScores.push(percentageScore);
L1PSscore.text = L1PStopScores[0];
if (percentageScore > L1PStopScores[0]){
L1PStopScores[0] = percentageScore;
L1PSscore.text = L1PStopScores[0];
};
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
};
};
};
};
};
};
};
resetL1PS.gotoAndPlay("loop");
whereFrom = "L1PS";
titleFadeIn();
levelCheck();
};
};
L1PSnextMuscle = function ():void{
var nameL1PSmuscle:Function;
nameL1PSmuscle = function ():void{
var playSound:Function;
playSound = function (_arg1:Object){
var _local2:SoundChannel;
_local2 = _arg1.play();
};
muscleNameDisplay.text = L1PSList[index].muscleNames;
playSound(L1PSList[index].muscleSound);
};
L1PSList[index].muscle.addEventListener(MouseEvent.CLICK, clickL1PSmuscle);
seconds = 101;
nameL1PSmuscle();
L1PSList[index].muscle.alpha = 1;
L1PSList[index].muscle.mask = scannerHand.mscanner;
};
clickCounter = function (_arg1:MouseEvent){
clickCount++;
clickDiff = (clickCount - correctCount);
if (clickDiff > 5){
seconds = 1;
};
};
clickL1PSmuscle = function (_arg1:MouseEvent){
var L1PSWhereTo:Function;
var event = _arg1;
L1PSWhereTo = function ():void{
if (correctCount == 8){
removeEventListener(MouseEvent.CLICK, clickCounter);
L1PSfinish();
} else {
removeEventListener(MouseEvent.CLICK, clickCounter);
L1PSgoing();
};
};
scannerHand.gotoAndPlay("scanClick");
Buzz.play();
L1PSmuscleTimes.push({L1PSscoreMuscleName:L1PSList[index].muscleNames, L1PSmuscleScore:seconds, L1PSmuscleScoreLabel:L1PSList[index].muscleLabel});
totalPoints = (totalPoints + seconds);
L1PSList[index].muscle.mask = null;
L1PSList[index].muscle.removeEventListener(MouseEvent.CLICK, clickL1PSmuscle);
index++;
PAMtime.stop();
PAMtime.removeEventListener(TimerEvent.TIMER, L1PSticking);
correctCount++;
L1PSWhereTo();
};
L1PSfinish = function ():void{
scannerHand.stopDrag();
scannerHand.x = 0;
scannerHand.y = 0;
scannerHand.visible = false;
hand.startDrag(true);
hand.visible = true;
posteriorUnderlay.mask = null;
posteriorUnderlay.visible = false;
posteriorSkin.visible = false;
muscleNameDisplay.text = "";
timeBar.visible = false;
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorHamstrings.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
percentageScore = (Math.floor(((totalPoints * 100) / (correctCount * 10))) / 10);
scores.text = String(percentageScore);
L1PStopScores.push(percentageScore);
L1PSscore.text = L1PStopScores[0];
if (percentageScore > L1PStopScores[0]){
L1PStopScores[0] = percentageScore;
L1PSscore.text = L1PStopScores[0];
};
if (L1PStopScores[0] >= 80){
L1PScomplete++;
};
whereFrom = "L1PS";
levelCheck();
titleFadeIn();
L1PSmuscleTimes.sortOn("L1PSmuscleScore", Array.DESCENDING);
fastestMuscle.text = L1PSmuscleTimes[0].L1PSscoreMuscleName;
fastestMuscleScore.text = L1PSmuscleTimes[0].L1PSmuscleScore;
fasterMuscle.text = L1PSmuscleTimes[1].L1PSscoreMuscleName;
fasterMuscleScore.text = L1PSmuscleTimes[1].L1PSmuscleScore;
fastMuscle.text = L1PSmuscleTimes[2].L1PSscoreMuscleName;
fastMuscleScore.text = L1PSmuscleTimes[2].L1PSmuscleScore;
slowMuscle.text = L1PSmuscleTimes[5].L1PSscoreMuscleName;
slowMuscleScore.text = L1PSmuscleTimes[5].L1PSmuscleScore;
slowerMuscle.text = L1PSmuscleTimes[6].L1PSscoreMuscleName;
slowerMuscleScore.text = L1PSmuscleTimes[6].L1PSmuscleScore;
slowestMuscle.text = L1PSmuscleTimes[7].L1PSscoreMuscleName;
slowestMuscleScore.text = L1PSmuscleTimes[7].L1PSmuscleScore;
feedback.visible = true;
if (clickDiff > 5){
feedback.gotoAndStop("multiClick");
comments.text = "Slow down trigger happy. How about try and hunt for the muscle rather than clicking here, there and everywhere.";
} else {
if (percentageScore < 20){
feedback.gotoAndStop("fail1");
comments.text = "Okay, well, at least the only way is up from here.";
} else {
if (percentageScore < 40){
feedback.gotoAndStop("fail2");
comments.text = "A sneaky muscle got the better of you then hey?";
} else {
if (percentageScore < 50){
feedback.gotoAndStop("fail3");
comments.text = "I can feel some improvement coming on.";
} else {
if (percentageScore < 60){
feedback.gotoAndStop("fail4");
comments.text = "Not a bad effort. Gotta get that 80% though.";
} else {
if (percentageScore < 70){
feedback.gotoAndStop("fail5");
comments.text = "Keep it up. Almost there.";
} else {
if (percentageScore < 80){
feedback.gotoAndStop("fail6");
comments.text = "Ah man! Soooooo close. I think you'll nail it next try.";
} else {
if (percentageScore < 86){
feedback.gotoAndStop("pass1");
comments.text = "You can be proud of that effort.";
} else {
if (percentageScore < 90){
feedback.gotoAndStop("pass2");
comments.text = "Oh yeah. Bring it on.";
} else {
if (percentageScore < 92){
feedback.gotoAndStop("pass3");
comments.text = "YES!";
} else {
if (percentageScore < 93){
feedback.gotoAndStop("pass4");
comments.text = "Bang! Cop that.";
} else {
if (percentageScore < 94){
feedback.gotoAndStop("pass5");
comments.text = "Maaaate, that was massive!";
} else {
if (percentageScore < 95){
feedback.gotoAndStop("pass6");
comments.text = "Stand clear. Poke-A-Muscle legend charging through.";
} else {
if (percentageScore >= 95){
feedback.gotoAndStop("pass7");
comments.text = "Seriously dude, you rock!";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
posteriorTrapezius.alpha = 0.01;
posteriorDeltoid.alpha = 0.01;
posteriorTricepsBrachii.alpha = 0.01;
posteriorLatissimusDorsi.alpha = 0.01;
posteriorGluteusMaximus.alpha = 0.01;
posteriorAdductors.alpha = 0.01;
posteriorHamstrings.alpha = 0.01;
posteriorGastrocnemius.alpha = 0.01;
comments.text = "";
addEventListener(MouseEvent.CLICK, clickCounter);
timeBar.visible = true;
PAMtime = new Timer(100, 101);
PAMtime.addEventListener(TimerEvent.TIMER, L1PSticking);
PAMtime.start();
L1PSnextMuscle();
};
L1PSList.splice(0, 8);
L1PSList.push({muscle:posteriorTrapezius, muscleNames:"Trapezius", muscleLabel:labelTrapezius, muscleSound:STrapezius});
L1PSList.push({muscle:posteriorDeltoid, muscleNames:"Deltoid", muscleLabel:labelDeltoid, muscleSound:SDeltoid});
L1PSList.push({muscle:posteriorTricepsBrachii, muscleNames:"Triceps Brachii", muscleLabel:labelTricepsBrachii, muscleSound:STricepsBrachii});
L1PSList.push({muscle:posteriorLatissimusDorsi, muscleNames:"Latissimus Dorsi", muscleLabel:labelLatissimusDorsi, muscleSound:SLatissimusDorsi});
L1PSList.push({muscle:posteriorGluteusMaximus, muscleNames:"Gluteus Maximus", muscleLabel:labelGluteusMaximus, muscleSound:SGluteusMaximus});
L1PSList.push({muscle:posteriorAdductors, muscleNames:"Adductors", muscleLabel:labelAdductors, muscleSound:SAdductors});
L1PSList.push({muscle:posteriorHamstrings, muscleNames:"Hamstrings", muscleLabel:labelHamstrings, muscleSound:SHamstrings});
L1PSList.push({muscle:posteriorGastrocnemius, muscleNames:"Gastrocnemius", muscleLabel:labelGastrocnemius, muscleSound:SGastrocnemius});
randomizeL1PSArray = function (_arg1:Object, _arg2:Object):Number{
return (Math.floor((Math.random() * 7)));
};
L1PSList.sort(randomizeL1PSArray);
muscleNameDisplay.text = "";
comments.text = "LEVEL 1 - Posterior View - Scan Stage Different view with different muscles. Press F11 (PCs) if the game isn't fitting in your browser window.";
scores.text = "";
timeBar.visible = false;
posteriorUnderlay.visible = true;
posteriorSkin.visible = false;
feedback.visible = false;
unlockNotice.visible = false;
labelTrapezius.visible = true;
labelDeltoid.visible = true;
labelTricepsBrachii.visible = true;
labelLatissimusDorsi.visible = true;
labelGluteusMaximus.visible = true;
labelAdductors.visible = true;
labelHamstrings.visible = true;
labelGastrocnemius.visible = true;
beginL1PSbtn.visible = false;
resetL1PS.gotoAndStop("reset");
resetL1PS.visible = false;
posteriorTrapezius.alpha = 1;
posteriorDeltoid.alpha = 1;
posteriorTricepsBrachii.alpha = 1;
posteriorLatissimusDorsi.alpha = 1;
posteriorGluteusMaximus.alpha = 1;
posteriorAdductors.alpha = 1;
posteriorHamstrings.alpha = 1;
posteriorGastrocnemius.alpha = 1;
LEVELONEbox.gotoAndStop("active");
posterior8box.gotoAndStop("active");
L1PSlock.gotoAndStop("unlockedActive");
L1PSscorebox.gotoAndStop("active");
whereFrom = "L1PS";
beginL1PSbtn.visible = true;
beginL1PSbtn.addEventListener(MouseEvent.CLICK, beginL1PS);
}
public function gotoAASite(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.anatomyarcade.com");
navigateToURL(_local2);
}
public function stopMusic(_arg1:MouseEvent){
if (musicOn){
musicChannel.stop();
toggleMusic.gotoAndStop("off");
musicOn = false;
} else {
musicChannel = titleTrack.play(0, 99999);
toggleMusic.gotoAndStop("on");
musicOn = true;
};
}
public function pokeHand(_arg1:MouseEvent){
hand.gotoAndPlay("click");
Mouse.hide();
}
}
}//package PAM2008_fla
Section 14
//POKE_btn_16 (PAM2008_fla.POKE_btn_16)
package PAM2008_fla {
import flash.display.*;
public dynamic class POKE_btn_16 extends MovieClip {
public function POKE_btn_16(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package PAM2008_fla
Section 15
//pose24box_9 (PAM2008_fla.pose24box_9)
package PAM2008_fla {
import flash.display.*;
public dynamic class pose24box_9 extends MovieClip {
public function pose24box_9(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package PAM2008_fla
Section 16
//posterior15box_8 (PAM2008_fla.posterior15box_8)
package PAM2008_fla {
import flash.display.*;
public dynamic class posterior15box_8 extends MovieClip {
public function posterior15box_8(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package PAM2008_fla
Section 17
//posterior8box_6 (PAM2008_fla.posterior8box_6)
package PAM2008_fla {
import flash.display.*;
public dynamic class posterior8box_6 extends MovieClip {
public function posterior8box_6(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package PAM2008_fla
Section 18
//reset_49 (PAM2008_fla.reset_49)
package PAM2008_fla {
import flash.display.*;
public dynamic class reset_49 extends MovieClip {
public function reset_49(){
addFrameScript(0, frame1, 36, frame37);
}
function frame1(){
stop();
}
function frame37(){
this.gotoAndPlay("loop");
}
}
}//package PAM2008_fla
Section 19
//SCAN_btn_15 (PAM2008_fla.SCAN_btn_15)
package PAM2008_fla {
import flash.display.*;
public dynamic class SCAN_btn_15 extends MovieClip {
public function SCAN_btn_15(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package PAM2008_fla
Section 20
//scannerHand_28 (PAM2008_fla.scannerHand_28)
package PAM2008_fla {
import flash.display.*;
public dynamic class scannerHand_28 extends MovieClip {
public var scanner:MovieClip;
public var mscanner:MovieClip;
public function scannerHand_28(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
this.gotoAndStop("scanner");
}
function frame1(){
stop();
}
}
}//package PAM2008_fla
Section 21
//scoreBox_10 (PAM2008_fla.scoreBox_10)
package PAM2008_fla {
import flash.display.*;
public dynamic class scoreBox_10 extends MovieClip {
public function scoreBox_10(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package PAM2008_fla
Section 22
//toggleMusic_21 (PAM2008_fla.toggleMusic_21)
package PAM2008_fla {
import flash.display.*;
public dynamic class toggleMusic_21 extends MovieClip {
public function toggleMusic_21(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package PAM2008_fla
Section 23
//whiteFlash_25 (PAM2008_fla.whiteFlash_25)
package PAM2008_fla {
import flash.display.*;
public dynamic class whiteFlash_25 extends MovieClip {
public function whiteFlash_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PAM2008_fla
Section 24
//buzz (buzz)
package {
import flash.media.*;
public dynamic class buzz extends Sound {
}
}//package
Section 25
//Click (Click)
package {
import flash.media.*;
public dynamic class Click extends Sound {
}
}//package
Section 26
//MochiAd (MochiAd)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return ("2.5");
}
public static function showClickAwayAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_timeout:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var sendHostProgress:Boolean;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
sendHostProgress = false;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String;
_local2 = _arg1.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local3:Object;
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var idx:Number;
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
idx = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
lv = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest((server + ".swf"));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip;
_local4 = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local3:Object;
var _local4:Number;
var _local5:Number;
var _local6:Array;
_local3 = _arg2.getBounds(_arg2.root);
_local4 = 0;
_local5 = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array;
var _local4:Number;
_local3 = _arg2.split(".");
_local4 = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var f:Function;
var sendHostProgress:Boolean;
var r:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
setTimeout(options.ad_finished, 100);
return;
};
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
MochiAd._cleanup(mc);
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
f = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Object;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Object;
var _local10:Number;
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
_local1 = this.parent.parent.root;
_local2 = this.parent._mochiad_ctr;
_local3 = (getTimer() - this.started);
_local4 = false;
_local5 = _local1.loaderInfo.bytesTotal;
_local6 = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
_local7 = ((100 * _local6) / _local5);
_local8 = ((100 * _local3) / chk.ad_msec);
_local9 = this._mochiad_bar._inside;
_local10 = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var f:Function;
var mc = _arg1;
f = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package
Section 27
//PAMcelebrate (PAMcelebrate)
package {
import flash.media.*;
public dynamic class PAMcelebrate extends Sound {
}
}//package
Section 28
//PAMtrack (PAMtrack)
package {
import flash.media.*;
public dynamic class PAMtrack extends Sound {
}
}//package
Section 29
//sAdductors (sAdductors)
package {
import flash.media.*;
public dynamic class sAdductors extends Sound {
}
}//package
Section 30
//sBicepsBrachii (sBicepsBrachii)
package {
import flash.media.*;
public dynamic class sBicepsBrachii extends Sound {
}
}//package
Section 31
//sBicepsFemoris (sBicepsFemoris)
package {
import flash.media.*;
public dynamic class sBicepsFemoris extends Sound {
}
}//package
Section 32
//sBrachialis (sBrachialis)
package {
import flash.media.*;
public dynamic class sBrachialis extends Sound {
}
}//package
Section 33
//sBrachioradialis (sBrachioradialis)
package {
import flash.media.*;
public dynamic class sBrachioradialis extends Sound {
}
}//package
Section 34
//sDeltoid (sDeltoid)
package {
import flash.media.*;
public dynamic class sDeltoid extends Sound {
}
}//package
Section 35
//sErectorSpinae (sErectorSpinae)
package {
import flash.media.*;
public dynamic class sErectorSpinae extends Sound {
}
}//package
Section 36
//sExternalOblique (sExternalOblique)
package {
import flash.media.*;
public dynamic class sExternalOblique extends Sound {
}
}//package
Section 37
//sGastrocnemius (sGastrocnemius)
package {
import flash.media.*;
public dynamic class sGastrocnemius extends Sound {
}
}//package
Section 38
//sGluteusMaximus (sGluteusMaximus)
package {
import flash.media.*;
public dynamic class sGluteusMaximus extends Sound {
}
}//package
Section 39
//sHamstrings (sHamstrings)
package {
import flash.media.*;
public dynamic class sHamstrings extends Sound {
}
}//package
Section 40
//sInfraspinatus (sInfraspinatus)
package {
import flash.media.*;
public dynamic class sInfraspinatus extends Sound {
}
}//package
Section 41
//sLatissimusDorsi (sLatissimusDorsi)
package {
import flash.media.*;
public dynamic class sLatissimusDorsi extends Sound {
}
}//package
Section 42
//sPectoralisMajor (sPectoralisMajor)
package {
import flash.media.*;
public dynamic class sPectoralisMajor extends Sound {
}
}//package
Section 43
//sPeroneusLongus (sPeroneusLongus)
package {
import flash.media.*;
public dynamic class sPeroneusLongus extends Sound {
}
}//package
Section 44
//sQuadriceps (sQuadriceps)
package {
import flash.media.*;
public dynamic class sQuadriceps extends Sound {
}
}//package
Section 45
//Squwelch3 (Squwelch3)
package {
import flash.media.*;
public dynamic class Squwelch3 extends Sound {
}
}//package
Section 46
//sRectusAbdominus (sRectusAbdominus)
package {
import flash.media.*;
public dynamic class sRectusAbdominus extends Sound {
}
}//package
Section 47
//sRectusFemoris (sRectusFemoris)
package {
import flash.media.*;
public dynamic class sRectusFemoris extends Sound {
}
}//package
Section 48
//sSartorius (sSartorius)
package {
import flash.media.*;
public dynamic class sSartorius extends Sound {
}
}//package
Section 49
//sSemimembranosus (sSemimembranosus)
package {
import flash.media.*;
public dynamic class sSemimembranosus extends Sound {
}
}//package
Section 50
//sSemitendinosus (sSemitendinosus)
package {
import flash.media.*;
public dynamic class sSemitendinosus extends Sound {
}
}//package
Section 51
//sSerratusAnterior (sSerratusAnterior)
package {
import flash.media.*;
public dynamic class sSerratusAnterior extends Sound {
}
}//package
Section 52
//sSoleus (sSoleus)
package {
import flash.media.*;
public dynamic class sSoleus extends Sound {
}
}//package
Section 53
//sTensorFasciaeLatae (sTensorFasciaeLatae)
package {
import flash.media.*;
public dynamic class sTensorFasciaeLatae extends Sound {
}
}//package
Section 54
//sTeresMajor (sTeresMajor)
package {
import flash.media.*;
public dynamic class sTeresMajor extends Sound {
}
}//package
Section 55
//sTibialisAnterior (sTibialisAnterior)
package {
import flash.media.*;
public dynamic class sTibialisAnterior extends Sound {
}
}//package
Section 56
//sTrapezius (sTrapezius)
package {
import flash.media.*;
public dynamic class sTrapezius extends Sound {
}
}//package
Section 57
//sTricepsBrachii (sTricepsBrachii)
package {
import flash.media.*;
public dynamic class sTricepsBrachii extends Sound {
}
}//package
Section 58
//sVastusLateralis (sVastusLateralis)
package {
import flash.media.*;
public dynamic class sVastusLateralis extends Sound {
}
}//package
Section 59
//sVastusMedialis (sVastusMedialis)
package {
import flash.media.*;
public dynamic class sVastusMedialis extends Sound {
}
}//package
Section 60
//sWristExtensors (sWristExtensors)
package {
import flash.media.*;
public dynamic class sWristExtensors extends Sound {
}
}//package
Section 61
//sWristFlexors (sWristFlexors)
package {
import flash.media.*;
public dynamic class sWristFlexors extends Sound {
}
}//package
Section 62
//Zing1 (Zing1)
package {
import flash.media.*;
public dynamic class Zing1 extends Sound {
}
}//package