[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Section 1 (804 B)
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 2 (5.65 KiB) ● ●
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
public var isPlaying:Boolean;// = false
public var obj:Object;// = null
public var prop:String;// = ""
public var func:Function;
public var begin:Number;// = NAN
public var change:Number;// = NAN
public var useSeconds:Boolean;// = false
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var looping:Boolean;// = false
private var _duration:Number;// = NAN
private var _time:Number;// = NAN
private var _fps:Number;// = NAN
private var _position:Number;// = NAN
private var _startTime:Number;// = NAN
private var _intervalID:uint;// = 0
private var _finish:Number;// = NAN
private var _timer:Timer;// = null
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function get time():Number{
return (this._time);
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get FPS():Number{
return (this._fps);
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
}
}//package fl.transitions
Section 3 (932 B)
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_RESUME:String = "motionResume";
public static const MOTION_LOOP:String = "motionLoop";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 4 (302 B)
//btnChat_25 (Living_In_A_Bottle_fla.btnChat_25)
package Living_In_A_Bottle_fla {
import flash.display.*;
public dynamic class btnChat_25 extends MovieClip {
public function btnChat_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Living_In_A_Bottle_fla
Section 5 (306 B)
//btnClose_19 (Living_In_A_Bottle_fla.btnClose_19)
package Living_In_A_Bottle_fla {
import flash.display.*;
public dynamic class btnClose_19 extends MovieClip {
public function btnClose_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Living_In_A_Bottle_fla
Section 6 (302 B)
//btnFart_21 (Living_In_A_Bottle_fla.btnFart_21)
package Living_In_A_Bottle_fla {
import flash.display.*;
public dynamic class btnFart_21 extends MovieClip {
public function btnFart_21(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package Living_In_A_Bottle_fla
Section 7 (302 B)
//btnOpen_20 (Living_In_A_Bottle_fla.btnOpen_20)
package Living_In_A_Bottle_fla {
import flash.display.*;
public dynamic class btnOpen_20 extends MovieClip {
public function btnOpen_20(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package Living_In_A_Bottle_fla
Section 8 (16.51 KiB) ● ● ●
//MainTimeline (Living_In_A_Bottle_fla.MainTimeline)
package Living_In_A_Bottle_fla {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var cloud1:MovieClip;
public var cloud2:MovieClip;
public var unSmell:MovieClip;
public var introLogoSprite:introLogo;
public var btnIntroStart:introStartButton;
public var unOxy:MovieClip;
public var btnClose:MovieClip;
public var man1:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var man2:MovieClip;
public var portrait:MovieClip;
public var arm:MovieClip;
public var man3:MovieClip;
public var man4:MovieClip;
public var fartout2:MovieClip;
public var man5:MovieClip;
public var btnFart:MovieClip;
public var man6:MovieClip;
public var farBase:MovieClip;
public var btnChat:MovieClip;
public var unFill:MovieClip;
public var gaugePressure:MovieClip;
public var fartout1:MovieClip;
public var btnOpen:MovieClip;
public var femChoice;
public var oxyValue;
public var smellValue;
public var i;
public var chatTimeout;
public var sutTime;
public var fart1Tween:Tween;
public var fart2Tween:Tween;
public var fart3Tween:Tween;
public var armTween:Tween;
public var bUnconscious:Boolean;
public var bottleState:uint;
public var armLocked:Boolean;
public var form1Tween1:Tween;
public var form2Tween1:Tween;
public var form1Tween2:Tween;
public var form2Tween2:Tween;
public var baseTrans:Tween;
public var myTimer:uint;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
loader_mc.scaleX = _local4;
loaded_txt.text = (("Loading... " + Math.round((_local4 * 100))) + "%");
}
public function onComplete(_arg1:Event):void{
loaded_txt.text = "Finished loading.";
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
}
public function startGame(_arg1:MouseEvent):void{
btnIntroStart.alpha = 0.5;
gotoAndStop(2);
}
public function doFemkeText():void{
oxyValue = (1 - unOxy.scaleX);
smellValue = (1 - unSmell.scaleX);
cloud1.t1.text = "Heeheehee! This is so much fun!";
if (bUnconscious == true){
i = Math.floor((Math.random() * 3));
if (i == 0){
cloud1.t1.text = "Heehee, I see you went unconscious. Shall I play some more with you till you wake up?";
};
if (i == 1){
cloud1.t1.text = "Feigning doesn't make me stop, tiny one! Oh no it doesn't! Prepare for more! Hehe!";
};
if (i == 2){
cloud1.t1.text = "There you went. Tinies are so vurnerable! It's fun to play with them over and over again!";
};
} else {
if ((((oxyValue < 0.7)) && ((smellValue < 0.1)))){
i = Math.floor((Math.random() * 3));
if (i == 0){
cloud1.t1.text = "Ah, tiny one, how do you like to run out of oxygene? It's getting harder to breathe, eh?";
};
if (i == 1){
cloud1.t1.text = "Do you like the view? Do you want to smell what's about to come out of me?";
};
if (i == 2){
cloud1.t1.text = "What do you think, shall I just keep my thumb here and suffocate you slowly?";
};
} else {
if ((((oxyValue < 0.3)) && ((smellValue < 0.1)))){
i = Math.floor((Math.random() * 3));
if (i == 0){
cloud1.t1.text = "How do you like me being in control? You can't breathe anymore, can you?";
};
if (i == 1){
cloud1.t1.text = "Not much oxygene left, is there? Shall I just leave my thumb in here?";
};
if (i == 2){
cloud1.t1.text = "Are you ready to beg for me to release my thumb? Hehe, you know what's coming!";
};
} else {
if ((((smellValue > 0.3)) && ((smellValue < 0.5)))){
i = Math.floor((Math.random() * 3));
if (i == 0){
cloud1.t1.text = "Inhale deeply, my tiny one! Inhale deeply! Heehee... Take it all in!";
};
if (i == 1){
cloud1.t1.text = "Do you smell that? In a moment I will blow another load of air into your habitat!";
};
if (i == 2){
cloud1.t1.text = "Don't keep your mouth shut, tiny one! I will only make things worse if you do!";
};
} else {
if ((((oxyValue > 0.25)) && ((smellValue > 0.5)))){
i = Math.floor((Math.random() * 3));
if (i == 0){
cloud1.t1.text = "Breathe in... breathe out...! Let the smell cycle through your tiny body! Haha...";
};
if (i == 1){
cloud1.t1.text = "Ahhh... it feels good to let all the air out of my bowels. Do you feel good too?";
};
if (i == 2){
cloud1.t1.text = "I can do this all day, you know! I'll just keep eating... and farting into the bottle!";
};
} else {
if (smellValue > 0.5){
i = Math.floor((Math.random() * 3));
if (i == 0){
cloud1.t1.text = "Ahh... where there's smell, there's no oxygene. You have no choice but to take in my nice smells...";
};
if (i == 1){
cloud1.t1.text = "Are you holding out there? Do you want some more... air? I mean, of course from my bowels...";
};
if (i == 2){
cloud1.t1.text = "Need a break? I can tease you by letting some fresh air in... or... maybe something else! heehee...";
};
} else {
if (smellValue > 0.75){
i = Math.floor((Math.random() * 3));
if (i == 0){
cloud1.t1.text = "Are you suffering enough already, my little tiny one? I hope the smell takes you out soon...!";
};
if (i == 1){
cloud1.t1.text = "After you're unconscious... I may keep you locked in the bottle for eternity, to wade in my smells...";
};
if (i == 2){
cloud1.t1.text = "This will be a nice trophy if I put a cap on now and keep you on the shelves like this... heehee...";
};
} else {
i = Math.floor((Math.random() * 3));
if (i == 0){
cloud1.t1.text = "Well, tiny one! Are you comfortable down there? Excited?";
};
if (i == 1){
cloud1.t1.text = "Make your final wish, tiny one! Soon I'm going to suffocate you!";
};
if (i == 2){
cloud1.t1.text = "Let's see how long you hold out, tiny one. The last one didn't last long...";
};
};
};
};
};
};
};
};
cloud1.alpha = 1;
}
public function doManReply():void{
oxyValue = (1 - unOxy.scaleX);
smellValue = (1 - unSmell.scaleX);
cloud1.alpha = 0;
cloud2.t1.text = "Help!";
if (bUnconscious == false){
if (oxyValue < 0.25){
i = Math.floor((Math.random() * 5));
if (i == 0){
cloud2.t1.text = "I-cough- I can't breathe! Please let in some fresh air! cough";
};
if (i == 1){
cloud2.t1.text = "I can't-can't... uhhgh- P-please... give me some... air...";
};
if (i == 2){
cloud2.t1.text = "cough - cough... Can't - breathe... P-please... ai-air...";
};
if (i == 3){
cloud2.t1.text = "Your - cough- stench is going to - cough - I'll smell it for days...";
};
if (i == 4){
cloud2.t1.text = "H-Help! I can't - breathe! L-Let me out! Please!";
};
} else {
if (smellValue > 0.5){
i = Math.floor((Math.random() * 5));
if (i == 0){
cloud2.t1.text = "pfffff! This smells terrible! Can't breathe! Please stop!";
};
if (i == 1){
cloud2.t1.text = "Help! This smells like I would be inside your bowels! Help!";
};
if (i == 2){
cloud2.t1.text = "Why are you doing this? Ugggh! I'm - my lungs are filled with your stench!";
};
if (i == 3){
cloud2.t1.text = "My poor lungs are filled with your stench! P-please! No more! No more!";
};
if (i == 4){
cloud2.t1.text = "Gasp - I feel like I'm inside your butt! Your smell is overpowering me!";
};
} else {
if (smellValue > 0.15){
i = Math.floor((Math.random() * 5));
if (i == 0){
cloud2.t1.text = "yuuuuck! I am like directly connected to your bowels! Help!";
};
if (i == 1){
cloud2.t1.text = "Geez! This stinks! Why do you force me to inhale your smelly farts?";
};
if (i == 2){
cloud2.t1.text = "Don't fart again! Please! I'm getting dizzy from this foul smell!";
};
if (i == 3){
cloud2.t1.text = "What in the world have you been eating? EEEEW - What a terrible smell!";
};
if (i == 4){
cloud2.t1.text = "Please give me a clothes-pin or something so I can keep my nose closed!";
};
} else {
if (oxyValue < 0.5){
i = Math.floor((Math.random() * 5));
if (i == 0){
cloud2.t1.text = "Are you going to keep your thumb on there? Is this all the oxygene I get?";
};
if (i == 1){
cloud2.t1.text = "Please keep your hand off the opening! It's bad enough to be in here!";
};
if (i == 2){
cloud2.t1.text = "HELP! Let me out! Someone! Can anyone hear me? Help!";
};
if (i == 3){
cloud2.t1.text = "I feel lightheaded! Please give me more oxygene! I am suffering in here!";
};
if (i == 4){
cloud2.t1.text = "Please! Let me play with your dirty sock or so! But please, not this! Help!";
};
} else {
i = Math.floor((Math.random() * 5));
if (i == 0){
cloud2.t1.text = "HELP! Please let me out! I don't want to be caught in your bottle!";
};
if (i == 1){
cloud2.t1.text = "HELP! What are you going to do with me? Please let me go free!";
};
if (i == 2){
cloud2.t1.text = "Let me out please! I am scared! What are you planning to do with me?";
};
if (i == 3){
cloud2.t1.text = "Please don't torture me! I haven't done anything! I am a nice person!";
};
if (i == 4){
cloud2.t1.text = "Why have you caught me in this bottle? I don't want to become your play-thing!";
};
};
};
};
};
cloud2.alpha = 1;
};
}
public function doFart():void{
var _local1:*;
btnFart.gotoAndStop(2);
fart1Tween = new Tween(fartout1, "alpha", Regular.easeOut, 0.6, 0, (2 - unFill.scaleX), true);
fart1Tween.FPS = 40;
fart2Tween = new Tween(fartout2, "alpha", Regular.easeOut, 0.6, 0, (4 - (3 * unFill.scaleX)), true);
fart2Tween.FPS = 40;
fart3Tween = new Tween(fartout2, "scaleX", Regular.easeOut, 1, 1.5, (4 - (3 * unFill.scaleX)), true);
fart3Tween.FPS = 40;
btnFart.gotoAndStop(2);
if (bottleState == 0){
_local1 = ((1 - unFill.scaleX) / 2);
unOxy.scaleX = (unOxy.scaleX + _local1);
if (unOxy.scaleX > 1){
unOxy.scaleX = 1;
};
unSmell.scaleX = (unSmell.scaleX - _local1);
if (unSmell.scaleX < 0){
unSmell.scaleX = 0;
};
};
unFill.scaleX = 1;
form1Tween1 = new Tween(farBase.formation1, "rotation", Regular.easeOut, 0, 364, 20, true);
form1Tween1.FPS = 40;
form1Tween2 = new Tween(farBase.formation1, "alpha", Regular.easeOut, 0.4, 0, 20, true);
form1Tween2.FPS = 40;
form2Tween1 = new Tween(farBase.formation2, "rotation", Regular.easeOut, 364, 0, 23, true);
form2Tween1.FPS = 40;
form2Tween2 = new Tween(farBase.formation2, "alpha", Regular.easeOut, 0.4, 0, 20, true);
form2Tween2.FPS = 40;
portrait.gotoAndPlay(6);
}
public function clickedFunction(_arg1:MouseEvent):void{
trace(_arg1.target.name);
if ((((((_arg1.target.name == "btnOpen")) && ((bottleState == 1)))) && ((armLocked == false)))){
armLocked = true;
bottleState = 0;
armTween = new Tween(arm, "rotation", Regular.easeOut, 0, 12, 0.5, true);
armTween.FPS = 40;
armTween.addEventListener(TweenEvent.MOTION_FINISH, armDone);
btnOpen.gotoAndStop(2);
btnClose.gotoAndStop(2);
};
if ((((((_arg1.target.name == "btnClose")) && ((bottleState == 0)))) && ((armLocked == false)))){
armLocked = true;
bottleState = 1;
armTween = new Tween(arm, "rotation", Regular.easeIn, 12, 0, 0.5, true);
armTween.addEventListener(TweenEvent.MOTION_FINISH, armDone);
btnOpen.gotoAndStop(2);
btnClose.gotoAndStop(2);
};
if ((((_arg1.target.name == "btnFart")) && ((btnFart.currentFrame == 1)))){
doFart();
};
if ((((_arg1.target.name == "btnChat")) && ((btnChat.currentFrame == 1)))){
btnChat.gotoAndStop(2);
chatTimeout = 20;
doFemkeText();
};
}
public function armDone(_arg1:TweenEvent):void{
if (bottleState == 1){
btnOpen.gotoAndStop(1);
} else {
btnClose.gotoAndStop(1);
};
armLocked = false;
}
public function doTimer():void{
var _local1:* = Math.floor((Math.random() * 150));
sutTime++;
if (_local1 < sutTime){
portrait.gotoAndStop(Math.ceil((Math.random() * 5)));
sutTime = 0;
};
if (chatTimeout > 0){
chatTimeout--;
if (chatTimeout == 10){
doManReply();
};
if (chatTimeout == 0){
btnChat.gotoAndStop(1);
cloud1.alpha = 0;
cloud2.alpha = 0;
};
};
if (unFill.scaleX > 0){
unFill.scaleX = (unFill.scaleX - 0.01);
if (unFill.scaleX < 0){
unFill.scaleX = 0;
};
};
if (unFill.scaleX < 0.81){
btnFart.gotoAndStop(1);
};
if (bottleState == 0){
if (unOxy.scaleX > 0){
unOxy.scaleX = (unOxy.scaleX - 0.025);
if (unOxy.scaleX < 0){
unOxy.scaleX = 0;
};
};
} else {
if (unOxy.scaleX < 1){
unOxy.scaleX = (unOxy.scaleX + 0.005);
if (unOxy.scaleX > 1){
unOxy.scaleX = 1;
};
};
};
if (bottleState == 1){
} else {
if (unSmell.scaleX < 1){
unSmell.scaleX = (unSmell.scaleX + 0.007);
if (unSmell.scaleX > 1){
unSmell.scaleX = 1;
};
};
};
if (unOxy.scaleX < (1 - unSmell.scaleX)){
unOxy.scaleX = (1 - unSmell.scaleX);
};
farBase.alpha = (1 - unSmell.scaleX);
showMan();
}
public function showMan():void{
if (bUnconscious == true){
if ((((unOxy.scaleX == 0)) && ((unSmell.scaleX == 1)))){
bUnconscious = false;
displayMan(1);
};
} else {
if ((((unOxy.scaleX > 0.97)) || ((unSmell.scaleX < 0.05)))){
displayMan(6);
bUnconscious = true;
} else {
if ((((unOxy.scaleX > 0.8)) || ((unSmell.scaleX < 0.2)))){
displayMan(5);
} else {
if ((((unOxy.scaleX > 0.7)) || ((unSmell.scaleX < 0.3)))){
displayMan(4);
} else {
if ((((unOxy.scaleX > 0.5)) || ((unSmell.scaleX < 0.5)))){
displayMan(2);
} else {
if (unSmell.scaleX < 0.9){
displayMan(3);
} else {
displayMan(1);
};
};
};
};
};
};
}
public function displayMan(_arg1:uint):void{
if (_arg1 == 1){
man1.alpha = 1;
} else {
man1.alpha = 0;
};
if (_arg1 == 2){
man2.alpha = 1;
} else {
man2.alpha = 0;
};
if (_arg1 == 3){
man3.alpha = 1;
} else {
man3.alpha = 0;
};
if (_arg1 == 4){
man4.alpha = 1;
} else {
man4.alpha = 0;
};
if (_arg1 == 5){
man5.alpha = 1;
} else {
man5.alpha = 0;
};
if (_arg1 == 6){
man6.alpha = 1;
} else {
man6.alpha = 0;
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
femChoice = 0;
oxyValue = 0;
smellValue = 0;
i = 0;
stop();
chatTimeout = 0;
sutTime = 0;
bUnconscious = false;
bottleState = 0;
armLocked = false;
myTimer = setInterval(doTimer, 300);
farBase.alpha = 0;
man1.alpha = 1;
farBase.far.alpha = 0.7;
farBase.formation1.alpha = 0.25;
farBase.formation2.alpha = 0.2;
unOxy.scaleX = 0;
portrait.gotoAndStop(2);
addEventListener(MouseEvent.CLICK, clickedFunction);
stop();
man1.alpha = 1;
}
}
}//package Living_In_A_Bottle_fla
Section 9 (306 B)
//portrait_24 (Living_In_A_Bottle_fla.portrait_24)
package Living_In_A_Bottle_fla {
import flash.display.*;
public dynamic class portrait_24 extends MovieClip {
public function portrait_24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Living_In_A_Bottle_fla
Section 10 (127 B)
//introLogo (introLogo)
package {
import flash.display.*;
public dynamic class introLogo extends MovieClip {
}
}//package
Section 11 (148 B)
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 12 (123 B)
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package