Section 1
//ControlEvent (com.whirled.ControlEvent)
package com.whirled {
import flash.events.*;
public class ControlEvent extends Event {
protected var _name:String;
protected var _value:Object;
public static const MESSAGE_RECEIVED:String = "messageRecieved";
public static const STATE_CHANGED:String = "stateChanged";
public static const GOT_CONTROL:String = "gotControl";
public static const AVATAR_SPOKE:String = "avatarSpoke";
public static const ACTION_TRIGGERED:String = "actionTriggered";
public static const MEMORY_CHANGED:String = "memoryChanged";
public static const APPEARANCE_CHANGED:String = "appearanceChanged";
public static const RECEIVED_CHAT:String = "receivedChat";
public function ControlEvent(_arg1:String, _arg2:String=null, _arg3:Object=null){
super(_arg1);
_name = _arg2;
_value = _arg3;
}
public function get name():String{
return (_name);
}
override public function toString():String{
return ((((((("ControlEvent [type=" + type) + ", name=") + _name) + ", value=") + _value) + "]"));
}
override public function get target():Object{
return (super.target);
}
public function get value():Object{
return (_value);
}
override public function clone():Event{
return (new ControlEvent(type, _name, _value));
}
}
}//package com.whirled
Section 2
//EntityControl (com.whirled.EntityControl)
package com.whirled {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class EntityControl extends WhirledControl {
protected var _hasControl:Boolean;// = false
protected var _location:Array;
protected var _ticker:Timer;
protected var _tickInterval:Number;// = 0
public function EntityControl(_arg1:DisplayObject){
_tickInterval = 0;
_hasControl = false;
super(_arg1);
}
public function setTickInterval(_arg1:Number):void{
_tickInterval = ((((_arg1 > 100)) || ((_arg1 <= 0)))) ? _arg1 : 100;
if (_hasControl){
recheckTicker();
} else {
if (_tickInterval > 0){
requestControl();
};
};
}
public function triggerAction(_arg1:String, _arg2:Object=null):void{
callHostCode("sendMessage_v1", _arg1, _arg2, true);
}
protected function messageReceived_v1(_arg1:String, _arg2:Object, _arg3:Boolean):void{
dispatch((_arg3) ? ControlEvent.ACTION_TRIGGERED : ControlEvent.MESSAGE_RECEIVED, _arg1, _arg2);
}
public function getInstanceId():int{
return (int(callHostCode("getInstanceId_v1")));
}
override protected function gotInitProperties(_arg1:Object):void{
super.gotInitProperties(_arg1);
_location = (_arg1["location"] as Array);
}
public function lookupMemory(_arg1:String, _arg2:Object=null):Object{
var _local3:Object;
_local3 = callHostCode("lookupMemory_v1", _arg1);
return (((_local3)==null) ? _arg2 : _local3);
}
protected function recheckTicker():void{
if (((_hasControl) && ((_tickInterval > 0)))){
if (_ticker == null){
_ticker = new Timer(_tickInterval);
_ticker.addEventListener(TimerEvent.TIMER, dispatchEvent);
} else {
_ticker.delay = _tickInterval;
};
_ticker.start();
} else {
stopTicker();
};
}
public function getPixelLocation():Array{
var _local1:Array;
var _local2:int;
if (_location == null){
return (null);
};
_local1 = getRoomBounds();
_local2 = 0;
while (_local2 < _location.length) {
_local1[_local2] = (_local1[_local2] * _location[_local2]);
_local2++;
};
return (_local1);
}
public function updateMemory(_arg1:String, _arg2:Object):Boolean{
return (callHostCode("updateMemory_v1", _arg1, _arg2));
}
protected function stopTicker():void{
if (_ticker != null){
_ticker.stop();
_ticker = null;
};
}
public function setHotSpot(_arg1:Number, _arg2:Number, _arg3:Number=NaN):void{
callHostCode("setHotSpot_v1", _arg1, _arg2, _arg3);
}
public function getLogicalLocation():Array{
return (_location);
}
public function showPopup(_arg1:String, _arg2:DisplayObject, _arg3:Number, _arg4:Number, _arg5:uint=0xFFFFFF, _arg6:Number=1):Boolean{
return ((callHostCode("showPopup_v1", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6) as Boolean));
}
override protected function populateProperties(_arg1:Object):void{
_arg1["memoryChanged_v1"] = memoryChanged_v1;
_arg1["gotControl_v1"] = gotControl_v1;
_arg1["messageReceived_v1"] = messageReceived_v1;
}
override protected function handleUnload(_arg1:Event):void{
super.handleUnload(_arg1);
_hasControl = false;
stopTicker();
}
protected function gotControl_v1():void{
if (_hasControl){
return;
};
_hasControl = true;
dispatch(ControlEvent.GOT_CONTROL);
recheckTicker();
}
public function requestControl():void{
callHostCode("requestControl_v1");
}
public function getMemories():Object{
var _local1:Object;
_local1 = callHostCode("getMemories_v1");
return (((_local1)==null) ? {} : _local1);
}
protected function memoryChanged_v1(_arg1:String, _arg2:Object):void{
dispatch(ControlEvent.MEMORY_CHANGED, _arg1, _arg2);
}
public function sendMessage(_arg1:String, _arg2:Object=null):void{
callHostCode("sendMessage_v1", _arg1, _arg2, false);
}
public function hasControl():Boolean{
return (_hasControl);
}
public function getRoomBounds():Array{
return ((callHostCode("getRoomBounds_v1") as Array));
}
public function clearPopup():void{
callHostCode("clearPopup_v1");
}
public function canEditRoom():Boolean{
return ((callHostCode("canEditRoom_v1") as Boolean));
}
}
}//package com.whirled
Section 3
//FurniControl (com.whirled.FurniControl)
package com.whirled {
import flash.display.*;
public class FurniControl extends EntityControl {
public static const BODY_ENTERED:String = "bodyEntered";
public static const BODY_LEFT:String = "bodyLeft";
public function FurniControl(_arg1:DisplayObject){
super(_arg1);
}
override protected function isAbstract():Boolean{
return (false);
}
}
}//package com.whirled
Section 4
//WhirledControl (com.whirled.WhirledControl)
package com.whirled {
import flash.events.*;
import flash.display.*;
public class WhirledControl extends EventDispatcher {
protected var _props:Object;
public function WhirledControl(_arg1:DisplayObject){
var _local2:ConnectEvent;
var _local3:Object;
super();
if (isAbstract()){
throw (new Error(("This control is abstract. Please use the " + "appropriate subclass: FurniControl, AvatarControl...")));
};
_local2 = new ConnectEvent();
_local3 = new Object();
populateProperties(_local3);
_local2.userProps = _local3;
_arg1.root.loaderInfo.sharedEvents.dispatchEvent(_local2);
_props = _local2.hostProps;
if (((!((_props == null))) && (("initProps" in _props)))){
gotInitProperties(_props["initProps"]);
delete _props["initProps"];
};
_arg1.root.loaderInfo.addEventListener(Event.UNLOAD, handleUnload, false, 0, true);
}
protected function callHostCode(_arg1:String, ... _args){
var func:Function;
var name = _arg1;
var args = _args;
if (_props != null){
try {
func = (_props[name] as Function);
if (func != null){
return (func.apply(null, args));
};
} catch(err:Error) {
trace(err.getStackTrace());
trace("--");
throw (new Error(("Unable to call host code: " + err.message)));
};
};
return (undefined);
}
protected function isAbstract():Boolean{
return (true);
}
protected function handleUnload(_arg1:Event):void{
}
protected function gotInitProperties(_arg1:Object):void{
}
protected function dispatch(_arg1:String, _arg2:String=null, _arg3:Object=null):void{
if (hasEventListener(_arg1)){
dispatchEvent(new ControlEvent(_arg1, _arg2, _arg3));
};
}
protected function populateProperties(_arg1:Object):void{
}
public function isConnected():Boolean{
return (!((_props == null)));
}
}
}//package com.whirled
import flash.events.*;
class ConnectEvent extends Event {
protected var _parent:ConnectEvent;
protected var _userProps:Object;
protected var _hostProps:Object;
private function ConnectEvent(){
super("controlConnect", true, false);
}
public function set userProps(_arg1:Object):void{
_userProps = _arg1;
}
public function set hostProps(_arg1:Object):void{
if (_parent != null){
_parent.hostProps = _arg1;
} else {
_hostProps = _arg1;
};
}
override public function clone():Event{
var _local1:ConnectEvent;
_local1 = new ConnectEvent();
_local1._parent = this;
return (_local1);
}
public function get userProps():Object{
if (_parent != null){
return (_parent.userProps);
};
return (_userProps);
}
public function get hostProps():Object{
return (_hostProps);
}
}
Section 5
//MainTimeline (plant_bonsai_3_fla.MainTimeline)
package plant_bonsai_3_fla {
import flash.events.*;
import flash.display.*;
import com.whirled.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const SPEED:Number = 1;
public const HEALTH:String = "health";
public const WATERING_START:String = "wateringStart";
public const WATERING_STOP:String = "wateringStop";
public const TWO_PER_HOUR:Number = 5.55555555555556E-7;
public const WATERING_SPAWN:String = "wateringSpawn";
public const WATERING_DESPAWN:String = "wateringDespawn";
public const POTENCY:Number = 5;
public const GROWTH_SPEED:Number = 1;
public const TIME_STAMP:String = "timeStamp";
public const BIRTH:String = "birth";
public const WATERING_THROTTLE:int = 500;
public const GROWTH:String = "growth";
public const WATER_SPEED:Number = 7;
public var _clock:Number;
public var _status:MovieClip;
public var _clickMousePos:Point;
public var hitBox:MovieClip;
public var _spade:MovieClip;
public var _reset:MovieClip;
public var _ctrl:FurniControl;
public var _timer:Timer;
public var _mouseDown:Boolean;
public var thePlant:MovieClip;
public var _pitcher:MovieClip;
public var birth:Number;
public var _wateringTime:int;
public var _wateringId:int;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function messageReceived(_arg1:ControlEvent):void{
var _local2:String;
var _local3:int;
var _local4:MovieClip;
_local2 = _arg1.name.split("-")[0];
_local3 = int(_arg1.name.split("-")[1]);
switch (_local2){
case WATERING_SPAWN:
if (_wateringId == -1){
_wateringId = _local3;
_pitcher = new pitcher();
_pitcher.scaleX = 0.75;
_pitcher.scaleY = 0.75;
_pitcher.addEventListener(Event.ENTER_FRAME, pitcherEnterFrame);
thePlant.addChild(_pitcher);
if (_local3 == _ctrl.getInstanceId()){
_pitcher.x = _clickMousePos.x;
_pitcher.y = _clickMousePos.y;
_pitcher.startDrag();
} else {
_pitcher.x = 50;
_pitcher.y = (((Math.random() * 50) + 100) * -1);
};
if (_spade != null){
removeChild(_spade);
};
};
break;
case WATERING_START:
if (_wateringId == _local3){
_pitcher.gotoAndPlay("pour_start");
};
break;
case WATERING_STOP:
if ((((_wateringId == _local3)) && ((((_pitcher.currentLabel == "pour_start")) || ((_pitcher.currentLabel == "pouring")))))){
_pitcher.gotoAndPlay("pour_end");
};
break;
case WATERING_DESPAWN:
if (_wateringId == _local3){
_local4 = new pitcher_despawn();
_local4.x = _pitcher.x;
_local4.y = _pitcher.y;
thePlant.addChild(_local4);
thePlant.removeChild(_pitcher);
_pitcher.removeEventListener(Event.ENTER_FRAME, pitcherEnterFrame);
_pitcher = null;
_wateringId = -1;
if (_spade != null){
addChild(_spade);
};
};
break;
};
}
public function updateStatus():void{
var _local1:Number;
var _local2:int;
var _local3:Number;
if (_status == null){
return;
};
_local1 = new Date().time;
_local1 = (_local1 - (_ctrl.lookupMemory(BIRTH, _local1) as Number));
_local2 = Math.floor(((_local1 / (((1000 * 60) * 60) * 24)) * SPEED));
_status.box.age.text = (_local2 + " Days");
_status.box.growth.text = (Math.round((_ctrl.lookupMemory(GROWTH, 0) as Number)) + " %");
_local3 = (_ctrl.lookupMemory(HEALTH, 0) as Number);
_status.meter.gotoAndStop((Math.round(((_local3 / 130) * 14)) + 1));
if (_local3 >= 125){
_status.face.gotoAndStop("Bad");
} else {
if (_local3 >= 110){
_status.face.gotoAndStop("Normal");
} else {
if (_local3 >= 90){
_status.face.gotoAndStop("Best");
} else {
if (_local3 >= 70){
_status.face.gotoAndStop("Normal");
} else {
if (_local3 >= 40){
_status.face.gotoAndStop("Bad");
} else {
_status.face.gotoAndStop("Worst");
};
};
};
};
};
}
public function gotControl(_arg1:ControlEvent):void{
if (_timer != null){
return;
};
_timer = new Timer(2000);
_timer.addEventListener(TimerEvent.TIMER, onTimerEvent);
_timer.start();
onTimerEvent();
}
public function addMouseHandler(_arg1:EventDispatcher, _arg2:Function):void{
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, _arg2);
_arg1.addEventListener(MouseEvent.MOUSE_UP, _arg2);
_arg1.addEventListener(MouseEvent.MOUSE_OVER, _arg2);
_arg1.addEventListener(MouseEvent.MOUSE_OUT, _arg2);
}
public function cancelClick(_arg1:MouseEvent):void{
_reset.hitBox_cancel.removeEventListener(MouseEvent.MOUSE_DOWN, cancelClick);
_reset.hitBox_reset.removeEventListener(MouseEvent.MOUSE_DOWN, resetClick);
removeChild(_reset);
_reset = null;
addMouseHandler(hitBox, plantHandler);
addMouseHandler(_spade, spadeHandler);
}
public function plantHandler(_arg1:MouseEvent):void{
if (_arg1.type == MouseEvent.MOUSE_OVER){
if (_status == null){
_status = new status();
updateStatus();
_status.mouseEnabled = false;
_status.buttonMode = false;
_status.x = 0;
_status.y = (-(thePlant.height) - 100);
thePlant.addChild(_status);
};
} else {
if (_arg1.type == MouseEvent.MOUSE_OUT){
_mouseDown = false;
if (_wateringId == _ctrl.getInstanceId()){
_ctrl.sendMessage(((WATERING_DESPAWN + "-") + _ctrl.getInstanceId()));
};
if (_status != null){
thePlant.removeChild(_status);
_status = null;
};
} else {
if (_arg1.type == MouseEvent.MOUSE_DOWN){
_mouseDown = true;
_clickMousePos = thePlant.globalToLocal(new Point(_arg1.stageX, _arg1.stageY));
if (_wateringId == -1){
_ctrl.sendMessage(((WATERING_SPAWN + "-") + _ctrl.getInstanceId()));
};
} else {
if (_arg1.type == MouseEvent.MOUSE_UP){
_mouseDown = false;
if (_wateringId == _ctrl.getInstanceId()){
_ctrl.sendMessage(((WATERING_STOP + "-") + _ctrl.getInstanceId()));
updateWateringHealth();
};
};
};
};
};
}
public function pitcherEnterFrame(_arg1:Event):void{
var _local2:Number;
var _local3:MovieClip;
if (_wateringId != _ctrl.getInstanceId()){
return;
};
if (((_mouseDown) && ((_pitcher.currentLabel == "idle_loop")))){
_ctrl.sendMessage(((WATERING_START + "-") + _ctrl.getInstanceId()));
} else {
if (_pitcher.currentLabel == "pouring"){
_local2 = (Math.random() * -(thePlant.height));
if (_local2 > (_pitcher.y + 50)){
_local3 = MovieClip(new splash());
thePlant.addChild(_local3);
_local3.scaleX = 0.5;
_local3.scaleY = 0.5;
_local3.x = ((_pitcher.x - 20) - (Math.random() * 30));
_local3.y = _local2;
updateWateringHealth();
} else {
_local3 = new splash_ground();
thePlant.addChild(_local3);
_local3.scaleX = (0.5 + (Math.random() * 0.5));
_local3.scaleY = _local3.scaleX;
_local3.x = ((_pitcher.x - 20) - (Math.random() * 50));
_local3.y = (Math.random() * 10);
};
};
};
}
public function spadeHandler(_arg1:MouseEvent):void{
if (_arg1.type == MouseEvent.MOUSE_OVER){
_spade.gotoAndStop("on");
} else {
if (_arg1.type == MouseEvent.MOUSE_OUT){
_spade.gotoAndStop("off");
} else {
if (_arg1.type == MouseEvent.MOUSE_UP){
_spade.gotoAndStop("off");
_reset = new reset_window();
addChild(_reset);
_reset.x = thePlant.x;
_reset.y = ((thePlant.y - thePlant.height) - 100);
_reset.hitBox_cancel.buttonMode = true;
_reset.hitBox_cancel.mouseEnabled = true;
_reset.hitBox_reset.buttonMode = true;
_reset.hitBox_reset.mouseEnabled = true;
_reset.hitBox_cancel.addEventListener(MouseEvent.CLICK, cancelClick);
_reset.hitBox_reset.addEventListener(MouseEvent.CLICK, resetClick);
removeMouseHandler(hitBox, plantHandler);
removeMouseHandler(_spade, spadeHandler);
} else {
if (_arg1.type == MouseEvent.MOUSE_DOWN){
_spade.gotoAndStop("down");
};
};
};
};
}
public function removeMouseHandler(_arg1:EventDispatcher, _arg2:Function):void{
_arg1.removeEventListener(MouseEvent.MOUSE_DOWN, _arg2);
_arg1.removeEventListener(MouseEvent.MOUSE_UP, _arg2);
_arg1.removeEventListener(MouseEvent.MOUSE_OVER, _arg2);
_arg1.removeEventListener(MouseEvent.MOUSE_OUT, _arg2);
}
public function resetClick(_arg1:MouseEvent):void{
_reset.hitBox_cancel.removeEventListener(MouseEvent.MOUSE_DOWN, cancelClick);
_reset.hitBox_reset.removeEventListener(MouseEvent.MOUSE_DOWN, resetClick);
removeChild(_reset);
_reset = null;
addMouseHandler(hitBox, plantHandler);
addMouseHandler(_spade, spadeHandler);
_ctrl.updateMemory(HEALTH, 0);
_ctrl.updateMemory(GROWTH, 0);
_ctrl.updateMemory(TIME_STAMP, new Date().time);
_ctrl.updateMemory(BIRTH, new Date().time);
}
public function memoryChanged(_arg1:ControlEvent):void{
if (_arg1.name == GROWTH){
thePlant.plant_health.plant.gotoAndStop((Math.round((_arg1.value as Number)) + 2));
} else {
if (_arg1.name == HEALTH){
thePlant.plant_health.gotoAndStop((Math.round((_arg1.value as Number)) + 2));
};
};
if ((((_arg1.name == GROWTH)) || ((_arg1.name == HEALTH)))){
updateStatus();
};
}
public function onTimerEvent(... _args):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
if (!_ctrl.hasControl()){
_timer.removeEventListener(TimerEvent.TIMER, onTimerEvent);
_timer.stop();
_timer = null;
return;
};
_local2 = new Date().time;
_local3 = (_ctrl.lookupMemory(TIME_STAMP, -1) as Number);
_local3 = ((_local3 == -1)) ? 0 : (_local2 - _local3);
_ctrl.updateMemory(TIME_STAMP, _local2);
_local4 = (_ctrl.lookupMemory(HEALTH, 0) as Number);
if ((((_wateringId == -1)) || (((!((_pitcher == null))) && ((_pitcher.currentLabel == "idle_loop")))))){
_local4 = (_local4 - (((_local3 * SPEED) * WATER_SPEED) * TWO_PER_HOUR));
_local4 = Math.min(130, Math.max(0, _local4));
_ctrl.updateMemory(HEALTH, _local4);
};
if (_local4 > 100){
_local4 = (100 - (_local4 - 100));
};
_local5 = (_ctrl.lookupMemory(GROWTH, 0) as Number);
_local5 = (_local5 + (((((_local4 / 100) * _local3) * SPEED) * GROWTH_SPEED) * TWO_PER_HOUR));
_ctrl.updateMemory(GROWTH, Math.min(100, Math.max(0, _local5)));
}
public function onUnload(_arg1:Event):void{
if (_timer != null){
_timer.removeEventListener(TimerEvent.TIMER, onTimerEvent);
};
if (_pitcher != null){
_timer.removeEventListener(Event.ENTER_FRAME, pitcherEnterFrame);
};
}
public function updateWateringHealth():void{
var _local1:Number;
if (((((getTimer() - _wateringTime) < WATERING_THROTTLE)) && (!((_wateringTime == -1))))){
return;
};
_local1 = (_ctrl.lookupMemory(HEALTH, 0) as Number);
_ctrl.updateMemory(HEALTH, Math.min(130, (_local1 + POTENCY)));
_wateringTime = getTimer();
}
function frame1(){
stop();
_ctrl = new FurniControl(this);
if (_ctrl.isConnected()){
_ctrl.addEventListener(ControlEvent.MEMORY_CHANGED, memoryChanged);
_ctrl.addEventListener(ControlEvent.MESSAGE_RECEIVED, messageReceived);
_ctrl.addEventListener(ControlEvent.GOT_CONTROL, gotControl);
_ctrl.requestControl();
_ctrl.setHotSpot(thePlant.x, thePlant.y, thePlant.height);
if (_ctrl.canEditRoom()){
_spade = new spade();
addChild(_spade);
_spade.x = thePlant.x;
_spade.y = (thePlant.y + 10);
_spade.buttonMode = true;
_spade.mouseEnabled = true;
addMouseHandler(_spade, spadeHandler);
};
_clock = new Date().time;
birth = (_ctrl.lookupMemory(BIRTH, _clock) as Number);
if (birth == _clock){
_ctrl.updateMemory(BIRTH, birth);
};
thePlant.plant_health.plant.gotoAndStop(((_ctrl.lookupMemory(GROWTH, 0) as Number) + 2));
thePlant.plant_health.gotoAndStop(((_ctrl.lookupMemory(HEALTH, 0) as Number) + 2));
hitBox.buttonMode = true;
addMouseHandler(hitBox, plantHandler);
addEventListener(Event.UNLOAD, onUnload);
} else {
thePlant.plant_health.gotoAndStop(102);
thePlant.plant_health.plant.gotoAndStop(102);
};
_mouseDown = false;
_wateringId = -1;
_wateringTime = -1;
}
}
}//package plant_bonsai_3_fla
Section 6
//meter_tick_pulse_30 (plant_bonsai_3_fla.meter_tick_pulse_30)
package plant_bonsai_3_fla {
import flash.display.*;
public dynamic class meter_tick_pulse_30 extends MovieClip {
public function meter_tick_pulse_30(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package plant_bonsai_3_fla
Section 7
//plant_1 (plant_bonsai_3_fla.plant_1)
package plant_bonsai_3_fla {
import flash.display.*;
public dynamic class plant_1 extends MovieClip {
public var plant_health:MovieClip;
public function plant_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package plant_bonsai_3_fla
Section 8
//plant_growth_3 (plant_bonsai_3_fla.plant_growth_3)
package plant_bonsai_3_fla {
import flash.display.*;
public dynamic class plant_growth_3 extends MovieClip {
public var plant:MovieClip;
public function plant_growth_3(){
addFrameScript(0, frame1, 24, frame25, 49, frame50, 74, frame75, 100, frame101);
}
function frame75(){
stop();
}
function frame25(){
stop();
}
function frame1(){
stop();
}
function frame101(){
stop();
}
function frame50(){
stop();
}
}
}//package plant_bonsai_3_fla
Section 9
//plant_health_2 (plant_bonsai_3_fla.plant_health_2)
package plant_bonsai_3_fla {
import flash.display.*;
public dynamic class plant_health_2 extends MovieClip {
public var plant:MovieClip;
public function plant_health_2(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package plant_bonsai_3_fla
Section 10
//spout_drip_24 (plant_bonsai_3_fla.spout_drip_24)
package plant_bonsai_3_fla {
import flash.display.*;
public dynamic class spout_drip_24 extends MovieClip {
public var dice:Number;
public function spout_drip_24(){
addFrameScript(44, frame45);
}
function frame45(){
dice = (Math.random() * 100);
if (dice > 80){
gotoAndPlay("wait");
} else {
gotoAndPlay("drip");
};
}
}
}//package plant_bonsai_3_fla
Section 11
//status_box_32 (plant_bonsai_3_fla.status_box_32)
package plant_bonsai_3_fla {
import flash.display.*;
import flash.text.*;
public dynamic class status_box_32 extends MovieClip {
public var growth:TextField;
public var age:TextField;
}
}//package plant_bonsai_3_fla
Section 12
//status_face_33 (plant_bonsai_3_fla.status_face_33)
package plant_bonsai_3_fla {
import flash.display.*;
public dynamic class status_face_33 extends MovieClip {
public function status_face_33(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package plant_bonsai_3_fla
Section 13
//status_meter_29 (plant_bonsai_3_fla.status_meter_29)
package plant_bonsai_3_fla {
import flash.display.*;
public dynamic class status_meter_29 extends MovieClip {
public function status_meter_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package plant_bonsai_3_fla
Section 14
//buzzbuzz (buzzbuzz)
package {
import flash.display.*;
public dynamic class buzzbuzz extends MovieClip {
}
}//package
Section 15
//pitcher (pitcher)
package {
import flash.display.*;
public dynamic class pitcher extends MovieClip {
public function pitcher(){
addFrameScript(69, frame70, 199, frame200, 224, frame225);
}
function frame70(){
gotoAndPlay("idle_loop");
}
function frame200(){
gotoAndPlay("pouring");
}
function frame225(){
gotoAndPlay("idle_loop");
}
}
}//package
Section 16
//pitcher_despawn (pitcher_despawn)
package {
import flash.display.*;
public dynamic class pitcher_despawn extends MovieClip {
public function pitcher_despawn(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 17
//reset_window (reset_window)
package {
import flash.display.*;
public dynamic class reset_window extends MovieClip {
public var hitBox_cancel:MovieClip;
public var hitBox_reset:MovieClip;
}
}//package
Section 18
//spade (spade)
package {
import flash.display.*;
public dynamic class spade extends MovieClip {
public var hitBox:MovieClip;
public function spade(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 19
//splash (splash)
package {
import flash.display.*;
public dynamic class splash extends MovieClip {
public function splash(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 20
//splash_ground (splash_ground)
package {
import flash.display.*;
public dynamic class splash_ground extends MovieClip {
public function splash_ground(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 21
//status (status)
package {
import flash.display.*;
public dynamic class status extends MovieClip {
public var face:MovieClip;
public var meter:MovieClip;
public var box:MovieClip;
public function status(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package
Section 22
//stench (stench)
package {
import flash.display.*;
public dynamic class stench extends MovieClip {
public function stench(){
addFrameScript(60, frame61);
}
function frame61(){
stop();
this.parent.removeChild(this);
}
}
}//package