Section 1
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var priority:int;
public var start:Number;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var name:String;
public var property:String;
public var nextNode:PropTween;
public var isPlugin:Boolean;
public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
if (_arg7){
_arg7.prevNode = this;
this.nextNode = _arg7;
};
this.priority = _arg8;
}
}
}//package com.greensock.core
Section 2
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
public var autoRemoveChildren:Boolean;
protected var _lastChild:TweenCore;
protected var _firstChild:TweenCore;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local5:Number;
var _local6:TweenCore;
var _local4:TweenCore = _firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){
if (!_local4.cachedReversed){
_local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration;
_local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false);
};
};
_local4 = _local6;
};
}
public function addChild(_arg1:TweenCore):void{
if (((!(_arg1.gc)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (_firstChild){
_firstChild.prevNode = _arg1;
};
_arg1.nextNode = _firstChild;
_firstChild = _arg1;
_arg1.prevNode = null;
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (((!(_arg1.gc)) && (!(_arg2)))){
_arg1.setEnabled(false, true);
};
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_lastChild == _arg1){
_lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_firstChild == _arg1){
_firstChild = _arg1.nextNode;
};
};
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
}
}//package com.greensock.core
Section 3
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
public var initted:Boolean;
protected var _hasUpdate:Boolean;
public var active:Boolean;
protected var _delay:Number;
public var cachedTime:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var timeline:SimpleTimeline;
public var data;
public var cachedStartTime:Number;
public var prevNode:TweenCore;
public var cachedDuration:Number;
public var gc:Boolean;
protected var _pauseTime:Number;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var cachedTimeScale:Number;
public var cachedTotalDuration:Number;
public static const version:Number = 1.13;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
this.vars = ((_arg2) || ({}));
this.cachedDuration = (this.cachedTotalDuration = ((_arg1) || (0)));
_delay = ((this.vars.delay) || (0));
this.cachedTimeScale = ((this.vars.timeScale) || (1));
this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false)))));
this.cachedTotalTime = (this.cachedTime = 0);
this.data = this.vars.data;
if (!_classInitted){
if (isNaN(TweenLite.rootFrame)){
TweenLite.initClass();
_classInitted = true;
} else {
return;
};
};
var _local3:SimpleTimeline = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline;
this.cachedStartTime = (_local3.cachedTotalTime + _delay);
_local3.addChild(this);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function get delay():Number{
return (_delay);
}
public function get duration():Number{
return (this.cachedDuration);
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
public function set startTime(_arg1:Number):void{
var _local2:Boolean = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc)))));
this.cachedStartTime = _arg1;
if (_local2){
this.timeline.addChild(this);
};
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function resume():void{
this.paused = false;
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(false);
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
renderTime(this.cachedTotalDuration, _arg2, false);
return;
};
if (this.timeline.autoRemoveChildren){
this.setEnabled(false, false);
} else {
this.active = false;
};
if (!_arg2){
if (((((this.vars.onComplete) && ((this.cachedTotalTime == this.cachedTotalDuration)))) && (!(this.cachedReversed)))){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
} else {
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){
this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams);
};
};
};
}
public function invalidate():void{
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
public function reverse(_arg1:Boolean=true):void{
this.reversed = true;
if (_arg1){
this.paused = false;
} else {
if (this.gc){
this.setEnabled(true, false);
};
};
}
public function set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
_pauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - _pauseTime));
_pauseTime = NaN;
setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
};
}
public function kill():void{
setEnabled(false, false);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get currentTime():Number{
return (this.cachedTime);
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed){
_local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale));
} else {
this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale));
};
if (!this.timeline.cacheIsDirty){
setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
renderTime(_arg1, _arg2, false);
};
};
}
public function pause():void{
this.paused = true;
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
if (((!(_arg2)) && (this.gc))){
this.timeline.addChild(this);
};
} else {
this.active = false;
if (!_arg2){
this.timeline.remove(this, true);
};
};
this.gc = !(_arg1);
return (false);
}
}
}//package com.greensock.core
Section 4
//Back (com.greensock.easing.Back)
package com.greensock.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 * 0.5) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package com.greensock.easing
Section 5
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.display.*;
import com.greensock.core.*;
import flash.events.*;
import flash.utils.*;
import com.greensock.plugins.*;
public class TweenLite extends TweenCore {
protected var _hasPlugins:Boolean;
public var propTweenLookup:Object;
public var cachedPT1:PropTween;
protected var _overwrite:uint;
protected var _ease:Function;
public var target:Object;
public var ratio:Number;// = 0
protected var _overwrittenProps:Object;
protected var _notifyPluginsOfEnabled:Boolean;
public static const version:Number = 11.13;
public static var rootTimeline:SimpleTimeline;
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var rootFramesTimeline:SimpleTimeline;
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var masterList:Dictionary = new Dictionary(false);
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _shape:Shape = new Shape();
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1};
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local5:TweenLite;
super(_arg2, _arg3);
this.target = _arg1;
if ((((this.target is TweenCore)) && (("timeScale" in this.vars)))){
this.cachedTimeScale = 1;
};
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((!((Number(_arg3.overwrite) > -1))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
var _local4:Array = masterList[_arg1];
if (!_local4){
masterList[_arg1] = [this];
} else {
if (_overwrite == 1){
for each (_local5 in _local4) {
if (!_local5.gc){
_local5.setEnabled(false, false);
};
};
masterList[_arg1] = [this];
} else {
_local4[_local4.length] = this;
};
};
if (((this.active) || (this.vars.immediateRender))){
renderTime(0, false, true);
};
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number = this.cachedTime;
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
if (_arg1 >= this.cachedDuration){
this.cachedTotalTime = (this.cachedTime = this.cachedDuration);
this.ratio = 1;
_local4 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local4 = true;
};
_rawPrevTime = _arg1;
};
};
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local4 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
this.ratio = _ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
var _local6:PropTween = this.cachedPT1;
while (_local6) {
_local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change));
_local6 = _local6.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local4){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1){
_local3 = TweenLite.masterList[this.target];
if (!_local3){
TweenLite.masterList[this.target] = [this];
} else {
_local3[_local3.length] = this;
};
};
super.setEnabled(_arg1, _arg2);
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this));
};
return (false);
}
protected function init():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:Boolean;
var _local5:Array;
var _local6:PropTween;
if (typeof(this.vars.ease) == "function"){
_ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = _ease;
_ease = easeProxy;
};
this.cachedPT1 = null;
this.propTweenLookup = {};
for (_local1 in this.vars) {
if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){
} else {
if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){
this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1);
if (this.cachedPT1.name == "_MULTIPLE_"){
_local2 = _local3.overwriteProps.length;
while (_local2--) {
this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1;
};
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
};
if (_local3.priority){
this.cachedPT1.priority = _local3.priority;
_local4 = true;
};
if (((_local3.onDisable) || (_local3.onEnable))){
_notifyPluginsOfEnabled = true;
};
_hasPlugins = true;
} else {
this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1);
this.propTweenLookup[_local1] = this.cachedPT1;
};
};
};
if (_local4){
onPluginEvent("onInit", this);
};
if (this.vars.runBackwards){
_local6 = this.cachedPT1;
while (_local6) {
_local6.start = (_local6.start + _local6.change);
_local6.change = -(_local6.change);
_local6 = _local6.nextNode;
};
};
_hasUpdate = Boolean(!((this.vars.onUpdate == null)));
if (_overwrittenProps){
killVars(_overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){
init();
};
};
this.initted = true;
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (_overwrittenProps == null){
_overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in propTweenLookup)){
_local4 = propTweenLookup[_local3];
if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){
_local4.target.killProps(_arg1);
if (_local4.target.overwriteProps.length == 0){
_local4.name = "";
};
};
if (_local4.name != "_MULTIPLE_"){
if (_local4.nextNode){
_local4.nextNode.prevNode = _local4.prevNode;
};
if (_local4.prevNode){
_local4.prevNode.nextNode = _local4.nextNode;
} else {
if (this.cachedPT1 == _local4){
this.cachedPT1 = _local4.nextNode;
};
};
if (((_local4.isPlugin) && (_local4.target.onDisable))){
_local4.target.onDisable();
if (_local4.target.activeDisable){
_local5 = true;
};
};
delete propTweenLookup[_local3];
};
};
if (_arg2){
_overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
public static function initClass():void{
rootFrame = 0;
rootTimeline = new SimpleTimeline(null);
rootFramesTimeline = new SimpleTimeline(null);
rootTimeline.cachedStartTime = (getTimer() * 0.001);
rootFramesTimeline.cachedStartTime = rootFrame;
rootTimeline.autoRemoveChildren = true;
rootFramesTimeline.autoRemoveChildren = true;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
}
public static function killTweensOf(_arg1:Object, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
if ((_arg1 in masterList)){
_local3 = masterList[_arg1];
_local4 = _local3.length;
while (_local4--) {
if (!TweenLite(_local3[_local4]).gc){
if (_arg2){
TweenLite(_local3[_local4]).complete(false, false);
} else {
TweenLite(_local3[_local4]).setEnabled(false, false);
};
};
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenLite(_arg1, _arg2, _arg3));
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
protected static function updateAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false);
rootFrame++;
rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false);
if (!(rootFrame % 60)){
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = _local4.length;
while (_local5--) {
if (TweenLite(_local4[_local5]).gc){
_local4.splice(_local5, 1);
};
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.greensock
Section 6
//Data_Event (com.kobe.Data_Event)
package com.kobe {
import flash.events.*;
public class Data_Event extends Event {
private var date:Date;
public var obj:Object;
public function Data_Event(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
date = new Date();
super(_arg1, _arg2, _arg3);
}
}
}//package com.kobe
Section 7
//MyMouse (com.kobe.MyMouse)
package com.kobe {
import flash.display.*;
public class MyMouse {
public static var b_mc:MovieClip;
public static var f:int;
public static var logo:String;
public static var name:String;
}
}//package com.kobe
Section 8
//BaseButton (fl.controls.BaseButton)
package fl.controls {
import flash.display.*;
import fl.core.*;
import flash.events.*;
import flash.utils.*;
import fl.events.*;
public class BaseButton extends UIComponent {
protected var pressTimer:Timer;
protected var _autoRepeat:Boolean;// = false
protected var _selected:Boolean;// = false
protected var background:DisplayObject;
private var unlockedMouseState:String;
protected var mouseState:String;
private var _mouseStateLocked:Boolean;// = false
private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35};
public function BaseButton(){
buttonMode = true;
mouseChildren = false;
useHandCursor = false;
setupMouseEvents();
setMouseState("up");
pressTimer = new Timer(1, 0);
pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true);
}
override public function get enabled():Boolean{
return (super.enabled);
}
protected function startPress():void{
if (_autoRepeat){
pressTimer.delay = Number(getStyleValue("repeatDelay"));
pressTimer.start();
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
super.draw();
}
protected function drawLayout():void{
background.width = width;
background.height = height;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
mouseEnabled = _arg1;
}
public function set autoRepeat(_arg1:Boolean):void{
_autoRepeat = _arg1;
}
protected function mouseEventHandler(_arg1:MouseEvent):void{
if (_arg1.type == MouseEvent.MOUSE_DOWN){
setMouseState("down");
startPress();
} else {
if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){
setMouseState("over");
endPress();
} else {
if (_arg1.type == MouseEvent.ROLL_OUT){
setMouseState("up");
endPress();
};
};
};
}
protected function drawBackground():void{
var _local1:String = (enabled) ? mouseState : "disabled";
if (selected){
_local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1));
};
_local1 = (_local1 + "Skin");
var _local2:DisplayObject = background;
background = getDisplayObjectInstance(getStyleValue(_local1));
addChildAt(background, 0);
if (((!((_local2 == null))) && (!((_local2 == background))))){
removeChild(_local2);
};
}
public function get selected():Boolean{
return (_selected);
}
protected function setupMouseEvents():void{
addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true);
}
protected function endPress():void{
pressTimer.reset();
}
public function set mouseStateLocked(_arg1:Boolean):void{
_mouseStateLocked = _arg1;
if (_arg1 == false){
setMouseState(unlockedMouseState);
} else {
unlockedMouseState = mouseState;
};
}
public function get autoRepeat():Boolean{
return (_autoRepeat);
}
public function set selected(_arg1:Boolean):void{
if (_selected == _arg1){
return;
};
_selected = _arg1;
invalidate(InvalidationType.STATE);
}
protected function buttonDown(_arg1:TimerEvent):void{
if (!_autoRepeat){
endPress();
return;
};
if (pressTimer.currentCount == 1){
pressTimer.delay = Number(getStyleValue("repeatInterval"));
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
public function setMouseState(_arg1:String):void{
if (_mouseStateLocked){
unlockedMouseState = _arg1;
return;
};
if (mouseState == _arg1){
return;
};
mouseState = _arg1;
invalidate(InvalidationType.STATE);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 9
//Button (fl.controls.Button)
package fl.controls {
import flash.display.*;
import fl.core.*;
import fl.managers.*;
public class Button extends LabelButton implements IFocusManagerComponent {
protected var _emphasized:Boolean;// = false
protected var emphasizedBorder:DisplayObject;
private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2};
public static var createAccessibilityImplementation:Function;
public function set emphasized(_arg1:Boolean):void{
_emphasized = _arg1;
invalidate(InvalidationType.STYLES);
}
override protected function initializeAccessibility():void{
if (Button.createAccessibilityImplementation != null){
Button.createAccessibilityImplementation(this);
};
}
protected function drawEmphasized():void{
var _local2:Number;
if (emphasizedBorder != null){
removeChild(emphasizedBorder);
};
emphasizedBorder = null;
if (!_emphasized){
return;
};
var _local1:Object = getStyleValue("emphasizedSkin");
if (_local1 != null){
emphasizedBorder = getDisplayObjectInstance(_local1);
};
if (emphasizedBorder != null){
addChildAt(emphasizedBorder, 0);
_local2 = Number(getStyleValue("emphasizedPadding"));
emphasizedBorder.x = (emphasizedBorder.y = -(_local2));
emphasizedBorder.width = (width + (_local2 * 2));
emphasizedBorder.height = (height + (_local2 * 2));
};
}
public function get emphasized():Boolean{
return (_emphasized);
}
override protected function draw():void{
if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){
drawEmphasized();
};
super.draw();
if (emphasizedBorder != null){
setChildIndex(emphasizedBorder, (numChildren - 1));
};
}
override public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
var _local3:*;
super.drawFocus(_arg1);
if (_arg1){
_local2 = Number(getStyleValue("emphasizedPadding"));
if ((((_local2 < 0)) || (!(_emphasized)))){
_local2 = 0;
};
_local3 = getStyleValue("focusRectPadding");
_local3 = ((_local3)==null) ? 2 : _local3;
_local3 = (_local3 + _local2);
uiFocusRect.x = -(_local3);
uiFocusRect.y = -(_local3);
uiFocusRect.width = (width + (_local3 * 2));
uiFocusRect.height = (height + (_local3 * 2));
};
}
public static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles));
}
}
}//package fl.controls
Section 10
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement)
package fl.controls {
public class ButtonLabelPlacement {
public static const TOP:String = "top";
public static const LEFT:String = "left";
public static const BOTTOM:String = "bottom";
public static const RIGHT:String = "right";
}
}//package fl.controls
Section 11
//LabelButton (fl.controls.LabelButton)
package fl.controls {
import flash.display.*;
import fl.core.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
public class LabelButton extends BaseButton implements IFocusManagerComponent {
protected var _toggle:Boolean;// = false
public var textField:TextField;
protected var mode:String;// = "center"
protected var _labelPlacement:String;// = "right"
protected var oldMouseState:String;
protected var _label:String;// = "Label"
protected var icon:DisplayObject;
private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false};
public static var createAccessibilityImplementation:Function;
override protected function draw():void{
if (textField.text != _label){
label = _label;
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
drawIcon();
drawTextFormat();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
override protected function drawLayout():void{
var _local7:Number;
var _local8:Number;
var _local1:Number = Number(getStyleValue("textPadding"));
var _local2:String = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement;
textField.height = (textField.textHeight + 4);
var _local3:Number = (textField.textWidth + 4);
var _local4:Number = (textField.textHeight + 4);
var _local5:Number = ((icon)==null) ? 0 : (icon.width + _local1);
var _local6:Number = ((icon)==null) ? 0 : (icon.height + _local1);
textField.visible = (label.length > 0);
if (icon != null){
icon.x = Math.round(((width - icon.width) / 2));
icon.y = Math.round(((height - icon.height) / 2));
};
if (textField.visible == false){
textField.width = 0;
textField.height = 0;
} else {
if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){
_local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1))));
if ((height - 2) > _local4){
_local8 = _local4;
} else {
_local8 = (height - 2);
};
_local3 = _local7;
textField.width = _local3;
_local4 = _local8;
textField.height = _local4;
textField.x = Math.round(((width - _local3) / 2));
textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0));
if (icon != null){
icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1));
};
} else {
_local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1))));
_local3 = _local7;
textField.width = _local3;
textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0));
textField.y = Math.round(((height - textField.height) / 2));
if (icon != null){
icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1));
};
};
};
super.drawLayout();
}
protected function toggleSelected(_arg1:MouseEvent):void{
selected = !(selected);
dispatchEvent(new Event(Event.CHANGE, true));
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
setMouseState(oldMouseState);
oldMouseState = null;
endPress();
dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
}
public function get labelPlacement():String{
return (_labelPlacement);
}
public function get toggle():Boolean{
return (_toggle);
}
protected function setEmbedFont(){
var _local1:Object = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
override public function get selected():Boolean{
return ((_toggle) ? _selected : false);
}
override protected function configUI():void{
super.configUI();
textField = new TextField();
textField.type = TextFieldType.DYNAMIC;
textField.selectable = false;
addChild(textField);
}
override protected function initializeAccessibility():void{
if (LabelButton.createAccessibilityImplementation != null){
LabelButton.createAccessibilityImplementation(this);
};
}
public function set labelPlacement(_arg1:String):void{
_labelPlacement = _arg1;
invalidate(InvalidationType.SIZE);
}
protected function drawIcon():void{
var _local1:DisplayObject = icon;
var _local2:String = (enabled) ? mouseState : "disabled";
if (selected){
_local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1));
};
_local2 = (_local2 + "Icon");
var _local3:Object = getStyleValue(_local2);
if (_local3 == null){
_local3 = getStyleValue("icon");
};
if (_local3 != null){
icon = getDisplayObjectInstance(_local3);
};
if (icon != null){
addChildAt(icon, 1);
};
if (((!((_local1 == null))) && (!((_local1 == icon))))){
removeChild(_local1);
};
}
public function set label(_arg1:String):void{
_label = _arg1;
if (textField.text != _label){
textField.text = _label;
dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE));
};
invalidate(InvalidationType.SIZE);
invalidate(InvalidationType.STYLES);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
if (oldMouseState == null){
oldMouseState = mouseState;
};
setMouseState("down");
startPress();
};
}
public function set toggle(_arg1:Boolean):void{
if (((!(_arg1)) && (super.selected))){
selected = false;
};
_toggle = _arg1;
if (_toggle){
addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true);
} else {
removeEventListener(MouseEvent.CLICK, toggleSelected);
};
invalidate(InvalidationType.STATE);
}
override public function set selected(_arg1:Boolean):void{
_selected = _arg1;
if (_toggle){
invalidate(InvalidationType.STATE);
};
}
protected function drawTextFormat():void{
var _local1:Object = UIComponent.getStyleDefinition();
var _local2:TextFormat = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
var _local3:TextFormat = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
}
public function get label():String{
return (_label);
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition()));
}
}
}//package fl.controls
Section 12
//Slider (fl.controls.Slider)
package fl.controls {
import flash.display.*;
import fl.core.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.ui.*;
public class Slider extends UIComponent implements IFocusManagerComponent {
protected var _direction:String;
protected var _snapInterval:Number;// = 0
protected var _liveDragging:Boolean;// = false
protected var track:BaseButton;
protected var _minimum:Number;// = 0
protected var thumb:BaseButton;
protected var _maximum:Number;// = 10
protected var _tickInterval:Number;// = 0
protected var tickContainer:Sprite;
protected var _value:Number;// = 0
protected static const TICK_STYLES:Object = {upSkin:"tickSkin"};
protected static const TRACK_STYLES:Object = {upSkin:"sliderTrackSkin", overSkin:"sliderTrackSkin", downSkin:"sliderTrackSkin", disabledSkin:"sliderTrackDisabledSkin"};
protected static const THUMB_STYLES:Object = {upSkin:"thumbUpSkin", overSkin:"thumbOverSkin", downSkin:"thumbDownSkin", disabledSkin:"thumbDisabledSkin"};
protected static var defaultStyles:Object = {thumbUpSkin:"SliderThumb_upSkin", thumbOverSkin:"SliderThumb_overSkin", thumbDownSkin:"SliderThumb_downSkin", thumbDisabledSkin:"SliderThumb_disabledSkin", sliderTrackSkin:"SliderTrack_skin", sliderTrackDisabledSkin:"SliderTrack_disabledSkin", tickSkin:"SliderTick_skin", focusRectSkin:null, focusRectPadding:null};
public function Slider(){
_direction = SliderDirection.HORIZONTAL;
super();
setStyles();
}
public function get tickInterval():Number{
return (_tickInterval);
}
override public function setSize(_arg1:Number, _arg2:Number):void{
if ((((_direction == SliderDirection.VERTICAL)) && (!(isLivePreview)))){
super.setSize(_arg2, _arg1);
} else {
super.setSize(_arg1, _arg2);
};
invalidate(InvalidationType.SIZE);
}
public function set tickInterval(_arg1:Number):void{
_tickInterval = _arg1;
invalidate(InvalidationType.SIZE);
}
override public function set enabled(_arg1:Boolean):void{
if (enabled == _arg1){
return;
};
super.enabled = _arg1;
track.enabled = (thumb.enabled = _arg1);
}
protected function drawTicks():void{
var _local5:DisplayObject;
clearTicks();
tickContainer = new Sprite();
var _local1:Number = ((maximum)<1) ? (tickInterval / 100) : tickInterval;
var _local2:Number = ((maximum - minimum) / _local1);
var _local3:Number = (_width / _local2);
var _local4:uint;
while (_local4 <= _local2) {
_local5 = getDisplayObjectInstance(getStyleValue("tickSkin"));
_local5.x = (_local3 * _local4);
_local5.y = ((track.y - _local5.height) - 2);
tickContainer.addChild(_local5);
_local4++;
};
addChild(tickContainer);
}
public function get maximum():Number{
return (_maximum);
}
public function set minimum(_arg1:Number):void{
_minimum = _arg1;
this.value = Math.max(_arg1, this.value);
invalidate(InvalidationType.DATA);
}
public function get minimum():Number{
return (_minimum);
}
protected function clearTicks():void{
if (((!(tickContainer)) || (!(tickContainer.parent)))){
return;
};
removeChild(tickContainer);
}
protected function calculateValue(_arg1:Number, _arg2:String, _arg3:String, _arg4:int=undefined):void{
var _local5:Number = ((_arg1 / _width) * (maximum - minimum));
if (_direction == SliderDirection.VERTICAL){
_local5 = (maximum - _local5);
} else {
_local5 = (minimum + _local5);
};
doSetValue(_local5, _arg2, _arg3, _arg4);
}
protected function positionThumb():void{
thumb.x = ((((_direction)==SliderDirection.VERTICAL) ? (maximum - value) : (value - minimum) / (maximum - minimum)) * _width);
}
public function get snapInterval():Number{
return (_snapInterval);
}
public function set liveDragging(_arg1:Boolean):void{
_liveDragging = _arg1;
}
protected function thumbReleaseHandler(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, doDrag);
stage.removeEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler);
dispatchEvent(new SliderEvent(SliderEvent.THUMB_RELEASE, value, SliderEventClickTarget.THUMB, InteractionInputType.MOUSE));
dispatchEvent(new SliderEvent(SliderEvent.CHANGE, value, SliderEventClickTarget.THUMB, InteractionInputType.MOUSE));
}
protected function onTrackClick(_arg1:MouseEvent):void{
calculateValue(track.mouseX, InteractionInputType.MOUSE, SliderEventClickTarget.TRACK);
if (!liveDragging){
dispatchEvent(new SliderEvent(SliderEvent.CHANGE, value, SliderEventClickTarget.TRACK, InteractionInputType.MOUSE));
};
}
public function set maximum(_arg1:Number):void{
_maximum = _arg1;
this.value = Math.min(_arg1, this.value);
invalidate(InvalidationType.DATA);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES)){
setStyles();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
track.setSize(_width, track.height);
track.drawNow();
thumb.drawNow();
};
if (tickInterval > 0){
drawTicks();
} else {
clearTicks();
};
positionThumb();
super.draw();
}
protected function getPrecision(_arg1:Number):Number{
var _local2:String = _arg1.toString();
if (_local2.indexOf(".") == -1){
return (0);
};
return (_local2.split(".").pop().length);
}
protected function doSetValue(_arg1:Number, _arg2:String=null, _arg3:String=null, _arg4:int=undefined):void{
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local5:Number = _value;
if (((!((_snapInterval == 0))) && (!((_snapInterval == 1))))){
_local6 = Math.pow(10, getPrecision(snapInterval));
_local7 = (_snapInterval * _local6);
_local8 = Math.round((_arg1 * _local6));
_local9 = (Math.round((_local8 / _local7)) * _local7);
_arg1 = (_local9 / _local6);
_value = Math.max(minimum, Math.min(maximum, _arg1));
} else {
_value = Math.max(minimum, Math.min(maximum, Math.round(_arg1)));
};
if (((!((_local5 == _value))) && (((((liveDragging) && (!((_arg3 == null))))) || ((_arg2 == InteractionInputType.KEYBOARD)))))){
dispatchEvent(new SliderEvent(SliderEvent.CHANGE, value, _arg3, _arg2, _arg4));
};
positionThumb();
}
public function get liveDragging():Boolean{
return (_liveDragging);
}
override protected function configUI():void{
super.configUI();
thumb = new BaseButton();
thumb.setSize(13, 13);
thumb.autoRepeat = false;
addChild(thumb);
thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbPressHandler, false, 0, true);
track = new BaseButton();
track.move(0, 0);
track.setSize(80, 4);
track.autoRepeat = false;
track.useHandCursor = false;
track.addEventListener(MouseEvent.CLICK, onTrackClick, false, 0, true);
addChildAt(track, 0);
}
public function set snapInterval(_arg1:Number):void{
_snapInterval = _arg1;
}
protected function doDrag(_arg1:MouseEvent):void{
var _local2:Number = (_width / snapInterval);
var _local3:Number = track.mouseX;
calculateValue(_local3, InteractionInputType.MOUSE, SliderEventClickTarget.THUMB);
dispatchEvent(new SliderEvent(SliderEvent.THUMB_DRAG, value, SliderEventClickTarget.THUMB, InteractionInputType.MOUSE));
}
public function set value(_arg1:Number):void{
doSetValue(_arg1);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
var _local3:Number;
if (!enabled){
return;
};
var _local2:Number = ((snapInterval)>0) ? snapInterval : 1;
var _local4 = (direction == SliderDirection.HORIZONTAL);
if ((((((_arg1.keyCode == Keyboard.DOWN)) && (!(_local4)))) || ((((_arg1.keyCode == Keyboard.LEFT)) && (_local4))))){
_local3 = (value - _local2);
} else {
if ((((((_arg1.keyCode == Keyboard.UP)) && (!(_local4)))) || ((((_arg1.keyCode == Keyboard.RIGHT)) && (_local4))))){
_local3 = (value + _local2);
} else {
if ((((((_arg1.keyCode == Keyboard.PAGE_DOWN)) && (!(_local4)))) || ((((_arg1.keyCode == Keyboard.HOME)) && (_local4))))){
_local3 = minimum;
} else {
if ((((((_arg1.keyCode == Keyboard.PAGE_UP)) && (!(_local4)))) || ((((_arg1.keyCode == Keyboard.END)) && (_local4))))){
_local3 = maximum;
};
};
};
};
if (!isNaN(_local3)){
_arg1.stopPropagation();
doSetValue(_local3, InteractionInputType.KEYBOARD, null, _arg1.keyCode);
};
}
public function get value():Number{
return (_value);
}
protected function setStyles():void{
copyStylesToChild(thumb, THUMB_STYLES);
copyStylesToChild(track, TRACK_STYLES);
}
protected function thumbPressHandler(_arg1:MouseEvent):void{
stage.addEventListener(MouseEvent.MOUSE_MOVE, doDrag, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler, false, 0, true);
dispatchEvent(new SliderEvent(SliderEvent.THUMB_PRESS, value, SliderEventClickTarget.THUMB, InteractionInputType.MOUSE));
}
public function set direction(_arg1:String):void{
_direction = _arg1;
var _local2 = (_direction == SliderDirection.VERTICAL);
if (isLivePreview){
if (_local2){
setScaleY(-1);
y = track.height;
} else {
setScaleY(1);
y = 0;
};
positionThumb();
return;
};
if (((_local2) && (componentInspectorSetting))){
if ((rotation % 90) == 0){
setScaleY(-1);
};
};
if (!componentInspectorSetting){
rotation = (_local2) ? 90 : 0;
};
}
public function get direction():String{
return (_direction);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 13
//SliderDirection (fl.controls.SliderDirection)
package fl.controls {
public class SliderDirection {
public static var HORIZONTAL:String = "horizontal";
public static var VERTICAL:String = "vertical";
}
}//package fl.controls
Section 14
//ComponentShim (fl.core.ComponentShim)
package fl.core {
import flash.display.*;
public dynamic class ComponentShim extends MovieClip {
}
}//package fl.core
Section 15
//InvalidationType (fl.core.InvalidationType)
package fl.core {
public class InvalidationType {
public static const SIZE:String = "size";
public static const ALL:String = "all";
public static const DATA:String = "data";
public static const SCROLL:String = "scroll";
public static const STATE:String = "state";
public static const STYLES:String = "styles";
public static const SELECTED:String = "selected";
public static const RENDERER_STYLES:String = "rendererStyles";
}
}//package fl.core
Section 16
//UIComponent (fl.core.UIComponent)
package fl.core {
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import flash.utils.*;
import fl.events.*;
import flash.text.*;
import flash.system.*;
public class UIComponent extends Sprite {
protected var _x:Number;
protected var _enabled:Boolean;// = true
protected var callLaterMethods:Dictionary;
private var _mouseFocusEnabled:Boolean;// = true
private var tempText:TextField;
private var _focusEnabled:Boolean;// = true
protected var startHeight:Number;
protected var _height:Number;
protected var invalidateFlag:Boolean;// = false
protected var _oldIMEMode:String;// = null
protected var _inspector:Boolean;// = false
protected var startWidth:Number;
public var focusTarget:IFocusManagerComponent;
protected var errorCaught:Boolean;// = false
protected var invalidHash:Object;
protected var sharedStyles:Object;
protected var uiFocusRect:DisplayObject;
protected var isLivePreview:Boolean;// = false
protected var _imeMode:String;// = null
protected var _width:Number;
protected var instanceStyles:Object;
public var version:String;// = "3.0.0.16"
protected var isFocused:Boolean;// = false
protected var _y:Number;
public static var inCallLaterPhase:Boolean = false;
private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)};
public static var createAccessibilityImplementation:Function;
private static var focusManagers:Dictionary = new Dictionary(false);
public function UIComponent(){
instanceStyles = {};
sharedStyles = {};
invalidHash = {};
callLaterMethods = new Dictionary();
StyleManager.registerInstance(this);
configUI();
invalidate(InvalidationType.ALL);
tabEnabled = (this is IFocusManagerComponent);
focusRect = false;
if (tabEnabled){
addEventListener(FocusEvent.FOCUS_IN, focusInHandler);
addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
};
initializeFocusManager();
addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true);
}
public function getStyle(_arg1:String):Object{
return (instanceStyles[_arg1]);
}
protected function checkLivePreview():Boolean{
var className:String;
if (parent == null){
return (false);
};
try {
className = getQualifiedClassName(parent);
} catch(e:Error) {
};
return ((className == "fl.livepreview::LivePreviewParent"));
}
private function callLaterDispatcher(_arg1:Event):void{
var _local3:Object;
if (_arg1.type == Event.ADDED_TO_STAGE){
removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher);
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
return;
};
_arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher);
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
return;
};
inCallLaterPhase = true;
var _local2:Dictionary = callLaterMethods;
for (_local3 in _local2) {
_local3();
delete _local2[_local3];
};
inCallLaterPhase = false;
}
protected function validate():void{
invalidHash = {};
}
protected function focusOutHandler(_arg1:FocusEvent):void{
if (isOurFocus((_arg1.target as DisplayObject))){
drawFocus(false);
isFocused = false;
};
}
public function set mouseFocusEnabled(_arg1:Boolean):void{
_mouseFocusEnabled = _arg1;
}
public function getFocus():InteractiveObject{
if (stage){
return (stage.focus);
};
return (null);
}
override public function get height():Number{
return (_height);
}
private function addedHandler(_arg1:Event):void{
removeEventListener("addedToStage", addedHandler);
initializeFocusManager();
}
protected function getStyleValue(_arg1:String):Object{
return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]);
}
public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{
invalidHash[_arg1] = true;
if (_arg2){
this.callLater(draw);
};
}
protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((_arg1 == this));
}
public function get enabled():Boolean{
return (_enabled);
}
protected function getScaleX():Number{
return (super.scaleX);
}
protected function getScaleY():Number{
return (super.scaleY);
}
public function get focusEnabled():Boolean{
return (_focusEnabled);
}
protected function afterComponentParameters():void{
}
override public function get scaleY():Number{
return ((height / startHeight));
}
protected function setIMEMode(_arg1:Boolean){
var enabled = _arg1;
if (_imeMode != null){
if (enabled){
IME.enabled = true;
_oldIMEMode = IME.conversionMode;
try {
if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _imeMode;
};
errorCaught = false;
} catch(e:Error) {
errorCaught = true;
throw (new Error(("IME mode not supported: " + _imeMode)));
};
} else {
if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _oldIMEMode;
};
IME.enabled = false;
};
};
}
protected function draw():void{
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
override public function set height(_arg1:Number):void{
if (_height == _arg1){
return;
};
setSize(width, _arg1);
}
protected function configUI():void{
isLivePreview = checkLivePreview();
var _local1:Number = rotation;
rotation = 0;
var _local2:Number = super.width;
var _local3:Number = super.height;
var _local4 = 1;
super.scaleY = _local4;
super.scaleX = _local4;
setSize(_local2, _local3);
move(super.x, super.y);
rotation = _local1;
startWidth = _local2;
startHeight = _local3;
if (numChildren > 0){
removeChildAt(0);
};
}
protected function setScaleY(_arg1:Number):void{
super.scaleY = _arg1;
}
override public function get scaleX():Number{
return ((width / startWidth));
}
protected function setScaleX(_arg1:Number):void{
super.scaleX = _arg1;
}
private function initializeFocusManager():void{
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true);
} else {
createFocusManager();
};
}
protected function keyDownHandler(_arg1:KeyboardEvent):void{
}
public function set focusManager(_arg1:IFocusManager):void{
UIComponent.focusManagers[this] = _arg1;
}
public function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
protected function isInvalid(_arg1:String, ... _args):Boolean{
if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){
return (true);
};
while (_args.length > 0) {
if (invalidHash[_args.pop()]){
return (true);
};
};
return (false);
}
public function setStyle(_arg1:String, _arg2:Object):void{
if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
instanceStyles[_arg1] = _arg2;
invalidate(InvalidationType.STYLES);
}
override public function get visible():Boolean{
return (super.visible);
}
protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
if (isOurFocus((_arg1.target as DisplayObject))){
_local2 = focusManager;
if (((_local2) && (_local2.showFocusIndicator))){
drawFocus(true);
isFocused = true;
};
};
}
public function get componentInspectorSetting():Boolean{
return (_inspector);
}
override public function get x():Number{
return ((isNaN(_x)) ? super.x : _x);
}
override public function get y():Number{
return ((isNaN(_y)) ? super.y : _y);
}
public function set enabled(_arg1:Boolean):void{
if (_arg1 == _enabled){
return;
};
_enabled = _arg1;
invalidate(InvalidationType.STATE);
}
public function setSize(_arg1:Number, _arg2:Number):void{
_width = _arg1;
_height = _arg2;
invalidate(InvalidationType.SIZE);
dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false));
}
protected function keyUpHandler(_arg1:KeyboardEvent):void{
}
public function setSharedStyle(_arg1:String, _arg2:Object):void{
if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
sharedStyles[_arg1] = _arg2;
if (instanceStyles[_arg1] == null){
invalidate(InvalidationType.STYLES);
};
}
public function set focusEnabled(_arg1:Boolean):void{
_focusEnabled = _arg1;
}
override public function set width(_arg1:Number):void{
if (_width == _arg1){
return;
};
setSize(_arg1, height);
}
public function setFocus():void{
if (stage){
stage.focus = this;
};
}
override public function set scaleX(_arg1:Number):void{
setSize((startWidth * _arg1), height);
}
public function get mouseFocusEnabled():Boolean{
return (_mouseFocusEnabled);
}
override public function set scaleY(_arg1:Number):void{
setSize(width, (startHeight * _arg1));
}
protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{
var skin = _arg1;
var classDef:Object;
if ((skin is Class)){
return ((new (skin) as DisplayObject));
};
if ((skin is DisplayObject)){
(skin as DisplayObject).x = 0;
(skin as DisplayObject).y = 0;
return ((skin as DisplayObject));
};
try {
classDef = getDefinitionByName(skin.toString());
} catch(e:Error) {
try {
classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object);
} catch(e:Error) {
};
};
if (classDef == null){
return (null);
};
return ((new (classDef) as DisplayObject));
}
protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{
var _local3:String;
for (_local3 in _arg2) {
_arg1.setStyle(_local3, getStyleValue(_arg2[_local3]));
};
}
protected function initializeAccessibility():void{
if (UIComponent.createAccessibilityImplementation != null){
UIComponent.createAccessibilityImplementation(this);
};
}
public function get focusManager():IFocusManager{
var _local1:DisplayObject = this;
while (_local1) {
if (UIComponent.focusManagers[_local1] != null){
return (IFocusManager(UIComponent.focusManagers[_local1]));
};
_local1 = _local1.parent;
};
return (null);
}
override public function get width():Number{
return (_width);
}
protected function beforeComponentParameters():void{
}
protected function callLater(_arg1:Function):void{
if (inCallLaterPhase){
return;
};
callLaterMethods[_arg1] = true;
if (stage != null){
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
} else {
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
};
}
public function move(_arg1:Number, _arg2:Number):void{
_x = _arg1;
_y = _arg2;
super.x = Math.round(_arg1);
super.y = Math.round(_arg2);
dispatchEvent(new ComponentEvent(ComponentEvent.MOVE));
}
public function validateNow():void{
invalidate(InvalidationType.ALL, false);
draw();
}
override public function set visible(_arg1:Boolean):void{
if (super.visible == _arg1){
return;
};
super.visible = _arg1;
var _local2:String = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE;
dispatchEvent(new ComponentEvent(_local2, true));
}
protected function createFocusManager():void{
if (focusManagers[stage] == null){
focusManagers[stage] = new FocusManager(stage);
};
}
protected function hookAccessibility(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, hookAccessibility);
initializeAccessibility();
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_inspector = _arg1;
if (_inspector){
beforeComponentParameters();
} else {
afterComponentParameters();
};
}
override public function set y(_arg1:Number):void{
move(_x, _arg1);
}
public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
isFocused = _arg1;
if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){
removeChild(uiFocusRect);
uiFocusRect = null;
};
if (_arg1){
uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite);
if (uiFocusRect == null){
return;
};
_local2 = Number(getStyleValue("focusRectPadding"));
uiFocusRect.x = -(_local2);
uiFocusRect.y = -(_local2);
uiFocusRect.width = (width + (_local2 * 2));
uiFocusRect.height = (height + (_local2 * 2));
addChildAt(uiFocusRect, 0);
};
}
override public function set x(_arg1:Number):void{
move(_arg1, _y);
}
public function drawNow():void{
draw();
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
public static function mergeStyles(... _args):Object{
var _local5:Object;
var _local6:String;
var _local2:Object = {};
var _local3:uint = _args.length;
var _local4:uint;
while (_local4 < _local3) {
_local5 = _args[_local4];
for (_local6 in _local5) {
if (_local2[_local6] != null){
} else {
_local2[_local6] = _args[_local4][_local6];
};
};
_local4++;
};
return (_local2);
}
}
}//package fl.core
Section 17
//ComponentEvent (fl.events.ComponentEvent)
package fl.events {
import flash.events.*;
public class ComponentEvent extends Event {
public static const HIDE:String = "hide";
public static const BUTTON_DOWN:String = "buttonDown";
public static const MOVE:String = "move";
public static const RESIZE:String = "resize";
public static const ENTER:String = "enter";
public static const LABEL_CHANGE:String = "labelChange";
public static const SHOW:String = "show";
public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function toString():String{
return (formatToString("ComponentEvent", "type", "bubbles", "cancelable"));
}
override public function clone():Event{
return (new ComponentEvent(type, bubbles, cancelable));
}
}
}//package fl.events
Section 18
//InteractionInputType (fl.events.InteractionInputType)
package fl.events {
public class InteractionInputType {
public static const MOUSE:String = "mouse";
public static const KEYBOARD:String = "keyboard";
}
}//package fl.events
Section 19
//SliderEvent (fl.events.SliderEvent)
package fl.events {
import flash.events.*;
public class SliderEvent extends Event {
protected var _triggerEvent:String;
protected var _clickTarget:String;
protected var _keyCode:Number;
protected var _value:Number;
public static const CHANGE:String = "change";
public static const THUMB_PRESS:String = "thumbPress";
public static const THUMB_DRAG:String = "thumbDrag";
public static const THUMB_RELEASE:String = "thumbRelease";
public function SliderEvent(_arg1:String, _arg2:Number, _arg3:String, _arg4:String, _arg5:int=0){
_value = _arg2;
_keyCode = _arg5;
_triggerEvent = _arg4;
_clickTarget = _arg3;
super(_arg1);
}
public function get keyCode():Number{
return (_keyCode);
}
public function get triggerEvent():String{
return (_triggerEvent);
}
public function get value():Number{
return (_value);
}
public function get clickTarget():String{
return (_clickTarget);
}
override public function toString():String{
return (formatToString("SliderEvent", "type", "value", "bubbles", "cancelable", "keyCode", "triggerEvent", "clickTarget"));
}
override public function clone():Event{
return (new SliderEvent(type, _value, _clickTarget, _triggerEvent, _keyCode));
}
}
}//package fl.events
Section 20
//SliderEventClickTarget (fl.events.SliderEventClickTarget)
package fl.events {
public class SliderEventClickTarget {
public static const TRACK:String = "track";
public static const THUMB:String = "thumb";
}
}//package fl.events
Section 21
//FocusManager (fl.managers.FocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
import fl.core.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.ui.*;
public class FocusManager implements IFocusManager {
private var focusableObjects:Dictionary;
private var _showFocusIndicator:Boolean;// = true
private var defButton:Button;
private var focusableCandidates:Array;
private var _form:DisplayObjectContainer;
private var _defaultButtonEnabled:Boolean;// = true
private var activated:Boolean;// = false
private var _defaultButton:Button;
private var calculateCandidates:Boolean;// = true
private var lastFocus:InteractiveObject;
private var lastAction:String;
public function FocusManager(_arg1:DisplayObjectContainer){
focusableObjects = new Dictionary(true);
if (_arg1 != null){
_form = _arg1;
addFocusables(DisplayObject(_arg1));
_arg1.addEventListener(Event.ADDED, addedHandler);
_arg1.addEventListener(Event.REMOVED, removedHandler);
activate();
};
}
public function get showFocusIndicator():Boolean{
return (_showFocusIndicator);
}
private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{
var _local7:DisplayObject;
var _local8:IFocusManagerGroup;
var _local9:int;
var _local10:DisplayObject;
var _local11:IFocusManagerGroup;
var _local5:int = focusableCandidates.length;
var _local6:int = _arg1;
while (true) {
if (_arg2){
_arg1--;
} else {
_arg1++;
};
if (_arg3){
if (((_arg2) && ((_arg1 < 0)))){
break;
};
if (((!(_arg2)) && ((_arg1 == _local5)))){
break;
};
} else {
_arg1 = ((_arg1 + _local5) % _local5);
if (_local6 == _arg1){
break;
};
};
if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){
_local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1]));
if ((_local7 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local7);
_local9 = 0;
while (_local9 < focusableCandidates.length) {
_local10 = focusableCandidates[_local9];
if ((_local10 is IFocusManagerGroup)){
_local11 = IFocusManagerGroup(_local10);
if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){
_arg1 = _local9;
break;
};
};
_local9++;
};
};
return (_arg1);
};
};
return (_arg1);
}
private function mouseFocusChangeHandler(_arg1:FocusEvent):void{
if ((_arg1.relatedObject is TextField)){
return;
};
_arg1.preventDefault();
}
public function set form(_arg1:DisplayObjectContainer):void{
_form = _arg1;
}
private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{
var focusable:IFocusManagerComponent;
var io:InteractiveObject;
var doc:DisplayObjectContainer;
var i:int;
var child:DisplayObject;
var o = _arg1;
var skipTopLevel = _arg2;
if (!skipTopLevel){
if ((o is IFocusManagerComponent)){
focusable = IFocusManagerComponent(o);
if (focusable.focusEnabled){
if (((focusable.tabEnabled) && (isTabVisible(o)))){
focusableObjects[o] = true;
calculateCandidates = true;
};
o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
} else {
if ((o is InteractiveObject)){
io = (o as InteractiveObject);
if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){
focusableObjects[io] = true;
calculateCandidates = true;
};
io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
};
};
if ((o is DisplayObjectContainer)){
doc = DisplayObjectContainer(o);
o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){
i = 0;
while (i < doc.numChildren) {
try {
child = doc.getChildAt(i);
if (child != null){
addFocusables(doc.getChildAt(i));
};
} catch(error:SecurityError) {
};
i = (i + 1);
};
};
};
}
private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{
return (_arg1.getChildIndex(_arg2));
}
public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{
var _local2:InteractiveObject = _arg1;
while (_arg1) {
if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
};
return (_local2);
}
private function focusOutHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject = (_arg1.target as InteractiveObject);
}
private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{
var _local3:IFocusManagerGroup;
if (!isEnabledAndVisible(_arg1)){
return (false);
};
if ((_arg1 is IFocusManagerGroup)){
_local3 = IFocusManagerGroup(_arg1);
if (_arg2 == _local3.groupName){
return (false);
};
};
return (true);
}
private function setFocusToNextObject(_arg1:FocusEvent):void{
if (!hasFocusableObjects()){
return;
};
var _local2:InteractiveObject = getNextFocusManagerComponent(_arg1.shiftKey);
if (_local2){
setFocus(_local2);
};
}
private function sortFocusableObjectsTabIndex():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){
focusableCandidates.push(_local2);
};
};
focusableCandidates.sort(sortByTabIndex);
}
private function removeFocusables(_arg1:DisplayObject):void{
var _local2:Object;
var _local3:DisplayObject;
if ((_arg1 is DisplayObjectContainer)){
_arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
_arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
for (_local2 in focusableObjects) {
_local3 = DisplayObject(_local2);
if (DisplayObjectContainer(_arg1).contains(_local3)){
if (_local3 == lastFocus){
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local2];
calculateCandidates = true;
};
};
};
}
private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{
while (_arg1 != InteractiveObject(form)) {
if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
if (_arg1 == null){
break;
};
};
return (null);
}
public function sendDefaultButtonEvent():void{
defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
private function addedHandler(_arg1:Event):void{
var _local2:DisplayObject = DisplayObject(_arg1.target);
if (_local2.stage){
addFocusables(DisplayObject(_arg1.target));
};
}
private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{
var _local3:TextField;
var _local4:SimpleButton;
var _local2:DisplayObjectContainer = DisplayObject(form).parent;
while (_arg1 != _local2) {
if ((_arg1 is UIComponent)){
if (!UIComponent(_arg1).enabled){
return (false);
};
} else {
if ((_arg1 is TextField)){
_local3 = TextField(_arg1);
if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){
return (false);
};
} else {
if ((_arg1 is SimpleButton)){
_local4 = SimpleButton(_arg1);
if (!_local4.enabled){
return (false);
};
};
};
};
if (!_arg1.visible){
return (false);
};
_arg1 = _arg1.parent;
};
return (true);
}
private function tabChildrenChangeHandler(_arg1:Event):void{
if (_arg1.target != _arg1.currentTarget){
return;
};
calculateCandidates = true;
var _local2:DisplayObjectContainer = DisplayObjectContainer(_arg1.target);
if (_local2.tabChildren){
addFocusables(_local2, true);
} else {
removeFocusables(_local2);
};
}
private function deactivateHandler(_arg1:Event):void{
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
}
public function setFocus(_arg1:InteractiveObject):void{
if ((_arg1 is IFocusManagerComponent)){
IFocusManagerComponent(_arg1).setFocus();
} else {
form.stage.focus = _arg1;
};
}
public function getFocus():InteractiveObject{
var _local1:InteractiveObject = form.stage.focus;
return (findFocusManagerComponent(_local1));
}
private function hasFocusableObjects():Boolean{
var _local1:Object;
for (_local1 in focusableObjects) {
return (true);
};
return (false);
}
private function tabIndexChangeHandler(_arg1:Event):void{
calculateCandidates = true;
}
public function set defaultButton(_arg1:Button):void{
var _local2:Button = (_arg1) ? Button(_arg1) : null;
if (_local2 != _defaultButton){
if (_defaultButton){
_defaultButton.emphasized = false;
};
if (defButton){
defButton.emphasized = false;
};
_defaultButton = _local2;
defButton = _local2;
if (_local2){
_local2.emphasized = true;
};
};
}
private function sortFocusableObjects():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){
sortFocusableObjectsTabIndex();
return;
};
focusableCandidates.push(_local2);
};
focusableCandidates.sort(sortByDepth);
}
private function keyFocusChangeHandler(_arg1:FocusEvent):void{
showFocusIndicator = true;
if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){
setFocusToNextObject(_arg1);
_arg1.preventDefault();
};
}
private function getIndexOfFocusedObject(_arg1:DisplayObject):int{
var _local2:int = focusableCandidates.length;
var _local3:int;
_local3 = 0;
while (_local3 < _local2) {
if (focusableCandidates[_local3] == _arg1){
return (_local3);
};
_local3++;
};
return (-1);
}
public function hideFocus():void{
}
private function removedHandler(_arg1:Event):void{
var _local2:int;
var _local4:InteractiveObject;
var _local3:DisplayObject = DisplayObject(_arg1.target);
if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){
if (_local3 == lastFocus){
IFocusManagerComponent(lastFocus).drawFocus(false);
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local3];
calculateCandidates = true;
} else {
if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){
_local4 = (_local3 as InteractiveObject);
if (_local4){
if (_local4 == lastFocus){
lastFocus = null;
};
delete focusableObjects[_local4];
calculateCandidates = true;
};
_local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
};
};
removeFocusables(_local3);
}
private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{
var _local5:int;
var _local6:String;
var _local7:String;
var _local3 = "";
var _local4 = "";
var _local8 = "0000";
var _local9:DisplayObject = DisplayObject(_arg1);
var _local10:DisplayObject = DisplayObject(_arg2);
while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) {
_local5 = getChildIndex(_local9.parent, _local9);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local3 = (_local7 + _local3);
_local9 = _local9.parent;
};
while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) {
_local5 = getChildIndex(_local10.parent, _local10);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local4 = (_local7 + _local4);
_local10 = _local10.parent;
};
return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0);
}
public function get defaultButton():Button{
return (_defaultButton);
}
private function activateHandler(_arg1:Event):void{
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
if (lastFocus){
if ((lastFocus is IFocusManagerComponent)){
IFocusManagerComponent(lastFocus).setFocus();
} else {
form.stage.focus = lastFocus;
};
};
lastAction = "ACTIVATE";
}
public function showFocus():void{
}
public function set defaultButtonEnabled(_arg1:Boolean):void{
_defaultButtonEnabled = _arg1;
}
public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{
var _local8:IFocusManagerGroup;
if (!hasFocusableObjects()){
return (null);
};
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
var _local2:DisplayObject = form.stage.focus;
_local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2)));
var _local3 = "";
if ((_local2 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local2);
_local3 = _local8.groupName;
};
var _local4:int = getIndexOfFocusedObject(_local2);
var _local5:Boolean;
var _local6:int = _local4;
if (_local4 == -1){
if (_arg1){
_local4 = focusableCandidates.length;
};
_local5 = true;
};
var _local7:int = getIndexOfNextObject(_local4, _arg1, _local5, _local3);
return (findFocusManagerComponent(focusableCandidates[_local7]));
}
private function mouseDownHandler(_arg1:MouseEvent):void{
if (_arg1.isDefaultPrevented()){
return;
};
var _local2:InteractiveObject = getTopLevelFocusTarget(InteractiveObject(_arg1.target));
if (!_local2){
return;
};
showFocusIndicator = false;
if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){
setFocus(_local2);
};
lastAction = "MOUSEDOWN";
}
private function isTabVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer = _arg1.parent;
while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) {
if (!_local2.tabChildren){
return (false);
};
_local2 = _local2.parent;
};
return (true);
}
public function get nextTabIndex():int{
return (0);
}
private function keyDownHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.TAB){
lastAction = "KEY";
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
};
if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){
sendDefaultButtonEvent();
};
}
private function focusInHandler(_arg1:FocusEvent):void{
var _local3:Button;
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
if (form.contains(_local2)){
lastFocus = findFocusManagerComponent(InteractiveObject(_local2));
if ((lastFocus is Button)){
_local3 = Button(lastFocus);
if (defButton){
defButton.emphasized = false;
defButton = _local3;
_local3.emphasized = true;
};
} else {
if (((defButton) && (!((defButton == _defaultButton))))){
defButton.emphasized = false;
defButton = _defaultButton;
_defaultButton.emphasized = true;
};
};
};
}
private function tabEnabledChangeHandler(_arg1:Event):void{
calculateCandidates = true;
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
var _local3 = (focusableObjects[_local2] == true);
if (_local2.tabEnabled){
if (((!(_local3)) && (isTabVisible(_local2)))){
if (!(_local2 is IFocusManagerComponent)){
_local2.focusRect = false;
};
focusableObjects[_local2] = true;
};
} else {
if (_local3){
delete focusableObjects[_local2];
};
};
}
public function set showFocusIndicator(_arg1:Boolean):void{
_showFocusIndicator = _arg1;
}
public function get form():DisplayObjectContainer{
return (_form);
}
private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{
return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2));
}
public function get defaultButtonEnabled():Boolean{
return (_defaultButtonEnabled);
}
public function activate():void{
if (activated){
return;
};
form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true);
form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true);
form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true);
form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);
form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = true;
if (lastFocus){
setFocus(lastFocus);
};
}
public function deactivate():void{
form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler);
form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler);
form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.removeEventListener(Event.ACTIVATE, activateHandler);
form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler);
form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = false;
}
}
}//package fl.managers
Section 22
//IFocusManager (fl.managers.IFocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
public interface IFocusManager {
function getFocus():InteractiveObject;
function deactivate():void;
function set defaultButton(_arg1:Button):void;
function set showFocusIndicator(_arg1:Boolean):void;
function get defaultButtonEnabled():Boolean;
function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject;
function get nextTabIndex():int;
function get defaultButton():Button;
function get showFocusIndicator():Boolean;
function hideFocus():void;
function activate():void;
function showFocus():void;
function set defaultButtonEnabled(_arg1:Boolean):void;
function setFocus(_arg1:InteractiveObject):void;
function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject;
}
}//package fl.managers
Section 23
//IFocusManagerComponent (fl.managers.IFocusManagerComponent)
package fl.managers {
public interface IFocusManagerComponent {
function set focusEnabled(_arg1:Boolean):void;
function drawFocus(_arg1:Boolean):void;
function setFocus():void;
function get focusEnabled():Boolean;
function get tabEnabled():Boolean;
function get tabIndex():int;
function get mouseFocusEnabled():Boolean;
}
}//package fl.managers
Section 24
//IFocusManagerGroup (fl.managers.IFocusManagerGroup)
package fl.managers {
public interface IFocusManagerGroup {
function get groupName():String;
function get selected():Boolean;
function set groupName(_arg1:String):void;
function set selected(_arg1:Boolean):void;
}
}//package fl.managers
Section 25
//StyleManager (fl.managers.StyleManager)
package fl.managers {
import fl.core.*;
import flash.utils.*;
import flash.text.*;
public class StyleManager {
private var classToInstancesDict:Dictionary;
private var globalStyles:Object;
private var styleToClassesHash:Object;
private var classToStylesDict:Dictionary;
private var classToDefaultStylesDict:Dictionary;
private static var _instance:StyleManager;
public function StyleManager(){
styleToClassesHash = {};
classToInstancesDict = new Dictionary(true);
classToStylesDict = new Dictionary(true);
classToDefaultStylesDict = new Dictionary(true);
globalStyles = UIComponent.getStyleDefinition();
}
public static function clearComponentStyle(_arg1:Object, _arg2:String):void{
var _local3:Class = getClassDef(_arg1);
var _local4:Object = getInstance().classToStylesDict[_local3];
if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){
delete _local4[_arg2];
invalidateComponentStyle(_local3, _arg2);
};
}
private static function getClassDef(_arg1:Object):Class{
var component = _arg1;
if ((component is Class)){
return ((component as Class));
};
try {
return ((getDefinitionByName(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
if ((component is UIComponent)){
try {
return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
};
};
};
return (null);
}
public static function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Class = getClassDef(_arg1);
var _local5:Object = getInstance().classToStylesDict[_local4];
if (_local5 == null){
_local5 = (getInstance().classToStylesDict[_local4] = {});
};
if (_local5 == _arg3){
return;
};
_local5[_arg2] = _arg3;
invalidateComponentStyle(_local4, _arg2);
}
private static function setSharedStyles(_arg1:UIComponent):void{
var _local5:String;
var _local2:StyleManager = getInstance();
var _local3:Class = getClassDef(_arg1);
var _local4:Object = _local2.classToDefaultStylesDict[_local3];
for (_local5 in _local4) {
_arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5));
};
}
public static function getComponentStyle(_arg1:Object, _arg2:String):Object{
var _local3:Class = getClassDef(_arg1);
var _local4:Object = getInstance().classToStylesDict[_local3];
return (((_local4)==null) ? null : _local4[_arg2]);
}
private static function getInstance(){
if (_instance == null){
_instance = new (StyleManager);
};
return (_instance);
}
private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{
var _local4:Object;
var _local5:UIComponent;
var _local3:Dictionary = getInstance().classToInstancesDict[_arg1];
if (_local3 == null){
return;
};
for (_local4 in _local3) {
_local5 = (_local4 as UIComponent);
if (_local5 == null){
} else {
_local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2));
};
};
}
private static function invalidateStyle(_arg1:String):void{
var _local3:Object;
var _local2:Dictionary = getInstance().styleToClassesHash[_arg1];
if (_local2 == null){
return;
};
for (_local3 in _local2) {
invalidateComponentStyle(Class(_local3), _arg1);
};
}
public static function registerInstance(_arg1:UIComponent):void{
var target:Class;
var defaultStyles:Object;
var styleToClasses:Object;
var n:String;
var instance = _arg1;
var inst:StyleManager = getInstance();
var classDef:Class = getClassDef(instance);
if (classDef == null){
return;
};
if (inst.classToInstancesDict[classDef] == null){
inst.classToInstancesDict[classDef] = new Dictionary(true);
target = classDef;
while (defaultStyles == null) {
if (target["getStyleDefinition"] != null){
defaultStyles = target["getStyleDefinition"]();
break;
};
try {
target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class);
} catch(err:Error) {
try {
target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class);
} catch(e:Error) {
defaultStyles = UIComponent.getStyleDefinition();
break;
};
};
};
styleToClasses = inst.styleToClassesHash;
for (n in defaultStyles) {
if (styleToClasses[n] == null){
styleToClasses[n] = new Dictionary(true);
};
styleToClasses[n][classDef] = true;
};
inst.classToDefaultStylesDict[classDef] = defaultStyles;
if (inst.classToStylesDict[classDef] == null){
inst.classToStylesDict[classDef] = {};
};
};
inst.classToInstancesDict[classDef][instance] = true;
setSharedStyles(instance);
}
public static function getStyle(_arg1:String):Object{
return (getInstance().globalStyles[_arg1]);
}
private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{
var _local3:Class = getClassDef(_arg1);
var _local4:StyleManager = getInstance();
var _local5:Object = _local4.classToStylesDict[_local3][_arg2];
if (_local5 != null){
return (_local5);
};
_local5 = _local4.globalStyles[_arg2];
if (_local5 != null){
return (_local5);
};
return (_local4.classToDefaultStylesDict[_local3][_arg2]);
}
public static function setStyle(_arg1:String, _arg2:Object):void{
var _local3:Object = getInstance().globalStyles;
if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
_local3[_arg1] = _arg2;
invalidateStyle(_arg1);
}
}
}//package fl.managers
Section 26
//AS3TitterLogo_230 (Titteras3_fla.AS3TitterLogo_230)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class AS3TitterLogo_230 extends MovieClip {
public var Type:String;
public var Logo:MovieClip;
public function AS3TitterLogo_230(){
addFrameScript(0, frame1);
}
public function NewLogo(_arg1){
trace(Type);
var _local2:* = root;
_local2.ingameOK(true);
}
public function Over(_arg1){
gotoAndStop(2);
}
function frame1(){
stop();
Logo.buttonMode = true;
Logo.mouseChildren = false;
Logo.addEventListener(MouseEvent.CLICK, NewLogo);
Logo.addEventListener(MouseEvent.MOUSE_OVER, Over);
Logo.addEventListener(MouseEvent.MOUSE_OUT, Out);
}
public function Out(_arg1){
gotoAndStop(1);
}
}
}//package Titteras3_fla
Section 27
//Continue_33 (Titteras3_fla.Continue_33)
package Titteras3_fla {
import flash.display.*;
public dynamic class Continue_33 extends MovieClip {
public var a:MovieClip;
public function Continue_33(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 28
//Continue_34 (Titteras3_fla.Continue_34)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class Continue_34 extends MovieClip {
public function Continue_34(){
addFrameScript(0, frame1);
}
public function New(){
var _local1:* = root;
gotoAndStop(_local1.TypeSS);
}
function frame1(){
New();
}
}
}//package Titteras3_fla
Section 29
//continueBtn_32 (Titteras3_fla.continueBtn_32)
package Titteras3_fla {
import flash.display.*;
public dynamic class continueBtn_32 extends MovieClip {
public var continueBtn:MovieClip;
public function continueBtn_32(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 30
//ForGirls_42 (Titteras3_fla.ForGirls_42)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class ForGirls_42 extends MovieClip {
public function ForGirls_42(){
addFrameScript(0, frame1);
}
public function New(){
var _local1:* = root;
gotoAndStop(_local1.TypeSS);
}
function frame1(){
stop();
New();
}
}
}//package Titteras3_fla
Section 31
//Games_41 (Titteras3_fla.Games_41)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class Games_41 extends MovieClip {
public function Games_41(){
addFrameScript(0, frame1);
}
public function New(){
var _local1:* = root;
gotoAndStop(_local1.TypeSS);
}
function frame1(){
stop();
New();
}
}
}//package Titteras3_fla
Section 32
//Glowbewegend_25 (Titteras3_fla.Glowbewegend_25)
package Titteras3_fla {
import flash.display.*;
public dynamic class Glowbewegend_25 extends MovieClip {
public function Glowbewegend_25(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Titteras3_fla
Section 33
//IntroAS3_1 (Titteras3_fla.IntroAS3_1)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class IntroAS3_1 extends MovieClip {
public var introMc2:MovieClip;
public var loaderMc:MovieClip;
public function IntroAS3_1(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
introMc2.addEventListener(MouseEvent.CLICK, intro);
introMc2.buttonMode = true;
introMc2.mouseChildren = false;
}
public function intro(_arg1){
var _local2:* = root;
_local2.intro(true);
}
}
}//package Titteras3_fla
Section 34
//Introewrewrewr_36 (Titteras3_fla.Introewrewrewr_36)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class Introewrewrewr_36 extends MovieClip {
public var titterBtn:MovieClip;
public function Introewrewrewr_36(){
addFrameScript(149, frame150);
}
function frame150(){
SoundMixer.stopAll();
stop();
MovieClip(root).LoadGamePlay();
}
}
}//package Titteras3_fla
Section 35
//Loaded_29 (Titteras3_fla.Loaded_29)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class Loaded_29 extends MovieClip {
public var loadTxt:TextField;
public function Loaded_29(){
addFrameScript(0, frame1);
}
public function New(){
var _local1:* = root;
gotoAndStop(_local1.TypeSS);
}
function frame1(){
New();
}
}
}//package Titteras3_fla
Section 36
//Loaderdsfsdfsdf_2 (Titteras3_fla.Loaderdsfsdfsdf_2)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class Loaderdsfsdfsdf_2 extends MovieClip {
public var Loaded:MovieClip;
public var continueBtn:MovieClip;
public var titterBtn:MovieClip;
public var loadMc:MovieClip;
public function Loaderdsfsdfsdf_2(){
addFrameScript(0, frame1, 9, frame10);
}
public function Effect2(_arg1){
continueBtn.continueBtn.gotoAndStop(1);
}
function frame1(){
stop();
}
public function run(_arg1){
var _local2:* = root;
var _local3:* = parent;
_local3.gotoAndStop(2);
}
public function intro(_arg1){
var _local2:* = parent;
_local2.utm_content = "intro";
_local2.MoreGameURL(true);
}
public function Effect(_arg1){
continueBtn.continueBtn.gotoAndStop(2);
}
function frame10(){
stop();
if (MovieClip(root).continueButton == 2){
continueBtn.gotoAndStop(2);
};
continueBtn.continueBtn.mouseChildren = false;
continueBtn.continueBtn.buttonMode = true;
continueBtn.continueBtn.addEventListener(MouseEvent.CLICK, run);
continueBtn.continueBtn.addEventListener(MouseEvent.ROLL_OVER, Effect);
continueBtn.continueBtn.addEventListener(MouseEvent.ROLL_OUT, Effect2);
}
}
}//package Titteras3_fla
Section 37
//Loading_7 (Titteras3_fla.Loading_7)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class Loading_7 extends MovieClip {
public var loadTxt:TextField;
public function Loading_7(){
addFrameScript(0, frame1);
}
public function New(){
var _local1:* = root;
gotoAndStop(_local1.TypeSS);
}
function frame1(){
New();
}
}
}//package Titteras3_fla
Section 38
//LOGOKnop_8 (Titteras3_fla.LOGOKnop_8)
package Titteras3_fla {
import flash.display.*;
public dynamic class LOGOKnop_8 extends MovieClip {
public var Txt:MovieClip;
public var glowMc:MovieClip;
public function LOGOKnop_8(){
addFrameScript(0, frame1, 5, frame6, 9, frame10);
}
function frame1(){
stop();
}
function frame6(){
stop();
}
function frame10(){
gotoAndPlay(1);
}
}
}//package Titteras3_fla
Section 39
//LOGOs_231 (Titteras3_fla.LOGOs_231)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class LOGOs_231 extends MovieClip {
public var B:MovieClip;
public function LOGOs_231(){
addFrameScript(0, frame1);
}
public function New(){
var _local1:* = root;
gotoAndStop(_local1.TypeSS);
}
function frame1(){
New();
stop();
}
}
}//package Titteras3_fla
Section 40
//MainTimeline (Titteras3_fla.MainTimeline)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var branding:String;
public var soundChannel:SoundChannel;
public var ServerFps;
public var page:int;
public var loader:URLLoader;
public var mm_mc:music;
public var position:Number;
public var sender:LocalConnection;
public var continueButton:Number;
public var TypeSS;
public var GameName:String;
public var domain:String;
public var domein;
public var Url:String;
public var bg_mc:MovieClip;
public var IntroLoad:MovieClip;
public var MochiBotKey:String;
public var __setPropDict:Dictionary;
public var musicW:SoundM;
public var utm_content:String;
public var portal:String;
public var url:String;
public var __id0_:MovieClip;
public var playIs:Boolean;
public function MainTimeline(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 1, frame2);
}
public function com(_arg1){
var _local2:String;
_local2 = _arg1.target.data.toLowerCase();
if (_local2 == "titter.fr"){
Url = "http://www.titter.fr";
TypeSS = 2;
} else {
if (_local2 == "titter.pt"){
Url = "http://www.titter.pt";
TypeSS = 3;
} else {
if (_local2 == "titter.es"){
Url = "http://www.titter.es";
TypeSS = 4;
} else {
Url = "http://www.titter.com";
TypeSS = 1;
};
};
};
IntroLoad.loaderMc.titterBtn.Txt.gotoAndStop(TypeSS);
IntroLoad.loaderMc.loadMc.Loading.gotoAndStop(TypeSS);
}
function __setProp___id0__(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.Type = "Intro";
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function onCha1(_arg1){
page = 1;
}
public function onCha3(_arg1){
page = 3;
}
public function onCha4(_arg1){
page = 4;
}
public function onCha2(_arg1){
page = 2;
}
public function doPlayInit():void{
stage.frameRate = 30;
musicW = new SoundM();
soundChannel = musicW.play();
soundChannel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
mm_mc.play();
mm_mc.addEventListener(MouseEvent.CLICK, doPlay);
}
public function onEnterFramee(_arg1:Event){
var _local2:Number;
var _local3:Number;
if (framesLoaded == totalFrames){
trace("Loading.......(100%)");
stage.removeEventListener(Event.ENTER_FRAME, onEnterFramee);
IntroLoad.loaderMc.play();
} else {
_local2 = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal);
_local3 = Math.round((_local2 * 100));
IntroLoad.loaderMc.loadMc.gotoAndStop(_local3);
IntroLoad.loaderMc.loadMc.Loading.loadTxt.text = (_local3 + "%");
};
}
public function ingameOK(_arg1){
if (page == 1){
utm_content = "menu";
};
if ((((page == 2)) || ((page == 3)))){
utm_content = "ingame";
};
if (page == 4){
utm_content = "donepage";
};
MoreGameURL(true);
}
public function soundCompleteHandler(_arg1:Event):void{
soundChannel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
soundChannel = musicW.play();
soundChannel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
}
public function gameover(_arg1){
utm_content = "gameover";
MoreGameURL(true);
}
public function youwin(_arg1){
utm_content = "youwin";
MoreGameURL(true);
}
public function menu(_arg1){
utm_content = "menu";
MoreGameURL(true);
}
function frame1(){
MochiBotKey = "mochikey here";
GameName = "name of the game";
branding = "original";
continueButton = 1;
stage.addEventListener(Event.ENTER_FRAME, onEnterFramee);
ServerFps = stage.frameRate;
stage.frameRate = 30;
MochiBot.track(this, MochiBotKey);
sender = new LocalConnection();
url = root.loaderInfo.url;
domain = sender.domain;
utm_content = "intro";
IntroLoad.loaderMc.titterBtn.addEventListener(MouseEvent.CLICK, preloader);
IntroLoad.loaderMc.titterBtn.buttonMode = true;
stage.addEventListener("1", onCha1);
stage.addEventListener("2", onCha2);
stage.addEventListener("3", onCha3);
stage.addEventListener("4", onCha4);
stage.addEventListener("more", ingameOK);
page = 1;
Url = "http://www.titter.com";
TypeSS = 1;
domein = sender.domain;
if (domein != "localhost"){
loader = new URLLoader(new URLRequest("http://api.jaludo.com/geoip/index.php?return=domain&type=gameshell&portal=titter"));
loader.addEventListener(Event.COMPLETE, com);
};
stop();
}
function frame2(){
if ((((__setPropDict[__id0_] == undefined)) || (!((int(__setPropDict[__id0_]) == 2))))){
__setPropDict[__id0_] = 2;
__setProp___id0__();
};
position = 0;
playIs = false;
doPlayInit();
}
public function doPlay(_arg1:Event):void{
playIs = !(playIs);
if (playIs){
position = soundChannel.position;
soundChannel.stop();
mm_mc.stop();
} else {
soundChannel = musicW.play(position);
mm_mc.play();
};
}
public function LoadGamePlay(){
stage.frameRate = ServerFps;
gotoAndStop(2);
}
public function preloader(_arg1){
utm_content = "preloader";
MoreGameURL(true);
}
public function MoreGameURL(_arg1){
var _local2:String = ((((((("/#utm_campaign=" + escape(GameName)) + "&utm_content=") + escape(utm_content)) + "&utm_medium=") + escape(branding)) + "&utm_source=") + escape(url));
var _local3:String = (Url + _local2);
var _local4:URLRequest = new URLRequest(_local3);
navigateToURL(_local4);
}
public function intro(_arg1){
utm_content = "intro";
MoreGameURL(true);
}
}
}//package Titteras3_fla
Section 41
//preLoader_3 (Titteras3_fla.preLoader_3)
package Titteras3_fla {
import flash.display.*;
public dynamic class preLoader_3 extends MovieClip {
public var Loading:MovieClip;
public function preLoader_3(){
addFrameScript(0, frame1, 99, frame100);
}
function frame1(){
stop();
}
function frame100(){
stop();
}
}
}//package Titteras3_fla
Section 42
//Timeline_122 (Titteras3_fla.Timeline_122)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_122 extends MovieClip {
public function Timeline_122(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 43
//Timeline_124 (Titteras3_fla.Timeline_124)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_124 extends MovieClip {
public function Timeline_124(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 44
//Timeline_126 (Titteras3_fla.Timeline_126)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_126 extends MovieClip {
public function Timeline_126(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 45
//Timeline_128 (Titteras3_fla.Timeline_128)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_128 extends MovieClip {
public function Timeline_128(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 46
//Timeline_130 (Titteras3_fla.Timeline_130)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_130 extends MovieClip {
public function Timeline_130(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 47
//Timeline_132 (Titteras3_fla.Timeline_132)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_132 extends MovieClip {
public function Timeline_132(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 48
//Timeline_134 (Titteras3_fla.Timeline_134)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_134 extends MovieClip {
public function Timeline_134(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 49
//Timeline_136 (Titteras3_fla.Timeline_136)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_136 extends MovieClip {
public function Timeline_136(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 50
//Timeline_138 (Titteras3_fla.Timeline_138)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_138 extends MovieClip {
public function Timeline_138(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 51
//Timeline_140 (Titteras3_fla.Timeline_140)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_140 extends MovieClip {
public function Timeline_140(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 52
//Timeline_142 (Titteras3_fla.Timeline_142)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_142 extends MovieClip {
public function Timeline_142(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 53
//Timeline_144 (Titteras3_fla.Timeline_144)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_144 extends MovieClip {
public function Timeline_144(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 54
//Timeline_146 (Titteras3_fla.Timeline_146)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_146 extends MovieClip {
public function Timeline_146(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 55
//Timeline_148 (Titteras3_fla.Timeline_148)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_148 extends MovieClip {
public function Timeline_148(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 56
//Timeline_150 (Titteras3_fla.Timeline_150)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_150 extends MovieClip {
public function Timeline_150(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 57
//Timeline_152 (Titteras3_fla.Timeline_152)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_152 extends MovieClip {
public function Timeline_152(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 58
//Timeline_154 (Titteras3_fla.Timeline_154)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_154 extends MovieClip {
public function Timeline_154(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 59
//Timeline_156 (Titteras3_fla.Timeline_156)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_156 extends MovieClip {
public function Timeline_156(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 60
//Timeline_158 (Titteras3_fla.Timeline_158)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_158 extends MovieClip {
public function Timeline_158(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 61
//Timeline_160 (Titteras3_fla.Timeline_160)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_160 extends MovieClip {
public function Timeline_160(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 62
//Timeline_162 (Titteras3_fla.Timeline_162)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_162 extends MovieClip {
public function Timeline_162(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 63
//Timeline_164 (Titteras3_fla.Timeline_164)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_164 extends MovieClip {
public function Timeline_164(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 64
//Timeline_166 (Titteras3_fla.Timeline_166)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_166 extends MovieClip {
public function Timeline_166(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 65
//Timeline_168 (Titteras3_fla.Timeline_168)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_168 extends MovieClip {
public function Timeline_168(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 66
//Timeline_170 (Titteras3_fla.Timeline_170)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_170 extends MovieClip {
public function Timeline_170(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 67
//Timeline_172 (Titteras3_fla.Timeline_172)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_172 extends MovieClip {
public function Timeline_172(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 68
//Timeline_174 (Titteras3_fla.Timeline_174)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_174 extends MovieClip {
public function Timeline_174(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 69
//Timeline_176 (Titteras3_fla.Timeline_176)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_176 extends MovieClip {
public function Timeline_176(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 70
//Timeline_180 (Titteras3_fla.Timeline_180)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_180 extends MovieClip {
public function Timeline_180(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 71
//Timeline_181 (Titteras3_fla.Timeline_181)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_181 extends MovieClip {
public function Timeline_181(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 72
//Timeline_182 (Titteras3_fla.Timeline_182)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_182 extends MovieClip {
public function Timeline_182(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 73
//Timeline_183 (Titteras3_fla.Timeline_183)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_183 extends MovieClip {
public function Timeline_183(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 74
//Timeline_184 (Titteras3_fla.Timeline_184)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_184 extends MovieClip {
public function Timeline_184(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 75
//Timeline_185 (Titteras3_fla.Timeline_185)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_185 extends MovieClip {
public function Timeline_185(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 76
//Timeline_186 (Titteras3_fla.Timeline_186)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_186 extends MovieClip {
public function Timeline_186(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 77
//Timeline_196 (Titteras3_fla.Timeline_196)
package Titteras3_fla {
import fl.controls.*;
import flash.display.*;
import flash.events.*;
import com.kobe.*;
import flash.utils.*;
import fl.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class Timeline_196 extends MovieClip {
public var mabei_mc:MovieClip;
public var filt:Array;
public var value_:Number;
public var mzui_mc:MovieClip;
public var mzhuang_mc:MovieClip;
public var mtui_btn:SimpleButton;
public var mzui_btn:SimpleButton;
public var mayan_mc:MovieClip;
public var mwei_mc:MovieClip;
public var mmC_mc:MovieClip;
public var mzong_btn:SimpleButton;
public var mzong_mc:MovieClip;
public var hit_mc:MovieClip;
public var sl_mc:Slider;
public var mzs_brn:SimpleButton;
public var mtui_mc:MovieClip;
public var b:String;
public var f:int;
public var qian_btn:SimpleButton;
public var mtou_btn:SimpleButton;
public var mwei_btn:SimpleButton;
public var hou_btn:SimpleButton;
public var myan_btn:SimpleButton;
public var mshenti_btn:SimpleButton;
public var mlian_mc:MovieClip;
public function Timeline_196(){
addFrameScript(0, frame1);
}
public function doHit(_arg1:MouseEvent):void{
var _local2:Data_Event = new Data_Event("xm");
_local2.obj = new Object();
_local2.obj.name = b;
if (mmC_mc == null){
return;
};
_local2.obj.f = mmC_mc.currentFrame;
_local2.obj.filter = filt;
_local2.obj.clickIs = true;
stage.dispatchEvent(_local2);
}
public function aa():void{
}
public function setVisible():void{
mlian_mc.visible = false;
mzui_mc.visible = false;
mayan_mc.visible = false;
mzhuang_mc.visible = false;
mtui_mc.visible = false;
mabei_mc.visible = false;
mwei_mc.visible = false;
mzong_mc.visible = false;
}
public function doSl(_arg1:Event):void{
if (value_ == sl_mc.value){
return;
};
var _local2:int = (sl_mc.value * Math.random());
var _local3:int = (sl_mc.value * Math.random());
var _local4:int = (sl_mc.value * Math.random());
value_ = sl_mc.value;
var _local5:Array = new Array();
_local5 = _local5.concat([_local2, 0, 0, 0, 0]);
_local5 = _local5.concat([0, _local3, 0, 0, 0]);
_local5 = _local5.concat([0, 0, _local4, 0, 0]);
_local5 = _local5.concat([0, 0, 0, 1, 0]);
var _local6:ColorMatrixFilter = new ColorMatrixFilter(_local5);
var _local7:Array = new Array();
_local7.push(_local6);
filt = _local7;
if (mmC_mc == null){
return;
};
mmC_mc.filters = filt;
var _local8:Data_Event = new Data_Event("xm");
_local8.obj = new Object();
_local8.obj.name = b;
if (mmC_mc == null){
return;
};
_local8.obj.f = mmC_mc.currentFrame;
_local8.obj.filter = filt;
_local8.obj.clickIs = false;
stage.dispatchEvent(_local8);
}
public function doHou(_arg1:MouseEvent):void{
if (mmC_mc == null){
return;
};
mmC_mc.filters = null;
filt = null;
sl_mc.value = 0;
if ((((mmC_mc.currentFrame == 15)) && (!((b == "mzs_brn"))))){
mmC_mc.gotoAndStop(1);
} else {
if ((((mmC_mc.currentFrame == 7)) && ((b == "mzs_brn")))){
mmC_mc.gotoAndStop(1);
} else {
mmC_mc.nextFrame();
};
};
}
public function init_():void{
sl_mc.maximum = 10;
sl_mc.minimum = 0;
}
public function doMzs(_arg1:MouseEvent):void{
var _local2:SimpleButton = (_arg1.target as SimpleButton);
filt = null;
sl_mc.value = 0;
if (_local2 == null){
return;
};
setVisible();
b = _local2.name;
switch (_local2.name){
case "mzui_btn":
mzui_mc.visible = true;
mmC_mc = mzui_mc;
break;
case "mzong_btn":
mzong_mc.visible = true;
mmC_mc = mzong_mc;
break;
case "myan_btn":
mayan_mc.visible = true;
mmC_mc = mayan_mc;
break;
case "mtou_btn":
mlian_mc.visible = true;
mmC_mc = mlian_mc;
break;
case "mshenti_btn":
mabei_mc.visible = true;
mmC_mc = mabei_mc;
break;
case "mtui_btn":
mtui_mc.visible = true;
mmC_mc = mtui_mc;
break;
case "mwei_btn":
mwei_mc.visible = true;
mmC_mc = mwei_mc;
break;
case "mzs_brn":
mzhuang_mc.visible = true;
mmC_mc = mzhuang_mc;
break;
};
}
function frame1(){
mzui_btn.addEventListener(MouseEvent.CLICK, doMzs);
mzong_btn.addEventListener(MouseEvent.CLICK, doMzs);
myan_btn.addEventListener(MouseEvent.CLICK, doMzs);
mtou_btn.addEventListener(MouseEvent.CLICK, doMzs);
mshenti_btn.addEventListener(MouseEvent.CLICK, doMzs);
mtui_btn.addEventListener(MouseEvent.CLICK, doMzs);
mwei_btn.addEventListener(MouseEvent.CLICK, doMzs);
mzs_brn.addEventListener(MouseEvent.CLICK, doMzs);
hit_mc.addEventListener(MouseEvent.CLICK, doHit);
qian_btn.addEventListener(MouseEvent.CLICK, doQian);
hou_btn.addEventListener(MouseEvent.CLICK, doHou);
sl_mc.addEventListener(SliderEvent.THUMB_DRAG, doSl);
sl_mc.addEventListener(SliderEvent.CHANGE, doSl);
setVisible();
}
public function doQian(_arg1:MouseEvent):void{
if (mmC_mc == null){
return;
};
mmC_mc.filters = null;
filt = null;
sl_mc.value = 0;
if (mmC_mc.currentFrame == 1){
mmC_mc.gotoAndStop(15);
} else {
mmC_mc.prevFrame();
};
}
}
}//package Titteras3_fla
Section 78
//Timeline_219 (Titteras3_fla.Timeline_219)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_219 extends MovieClip {
public function Timeline_219(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 79
//Timeline_222 (Titteras3_fla.Timeline_222)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_222 extends MovieClip {
public function Timeline_222(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 80
//Timeline_44 (Titteras3_fla.Timeline_44)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import com.greensock.*;
import com.kobe.*;
import flash.utils.*;
import com.greensock.easing.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class Timeline_44 extends MovieClip {
public var replay_btn:SimpleButton;
public var yf_mc:MovieClip;
public var back_btn:SimpleButton;
public var jiaotou_mc:MovieClip;
public var xm_mc:MovieClip;
public var next_btn2:SimpleButton;
public var next_btn3:SimpleButton;
public var First_mc:MovieClip;
public var changeBg_btn:SimpleButton;
public var tzyz_mc:MovieClip;
public var role2_mc:MovieClip;
public var bg_mc:MovieClip;
public var back4_btn:SimpleButton;
public var moreG1:SimpleButton;
public var daying_btn:SimpleButton;
public var xmbg_mc:MovieClip;
public var role_mc:MovieClip;
public function Timeline_44(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function setAF(_arg1:MovieClip, _arg2:int):void{
if (MyMouse.b_mc == null){
return;
};
MyMouse.b_mc.play();
if (MyMouse.name == "m_1_btn"){
};
if (MyMouse.name == "m_2_btn"){
};
if (MyMouse.name == "m_3_btn"){
};
if (MyMouse.name == "m_4_btn"){
_arg1.gotoAndStop(_arg2);
return;
};
if (MyMouse.name == "m_5_btn"){
};
if (MyMouse.name == "m_6_btn"){
if (_arg1.alpha > 0.35){
_arg1.alpha = 0.2;
} else {
_arg1.alpha = (_arg1.alpha + 0.1);
};
} else {
if ((((_arg1.alpha > 0.85)) || ((_arg1.alpha < 0.25)))){
_arg1.alpha = 0.3;
} else {
_arg1.alpha = (_arg1.alpha + 0.3);
};
};
_arg1.gotoAndStop(_arg2);
}
public function doHuazhuangXM(_arg1:Data_Event):void{
if (_arg1 == null){
return;
};
switch (_arg1.obj.name){
case "mzui_btn":
xm_mc.mzui_mc.gotoAndStop(int(_arg1.obj.f));
xm_mc.mzui_mc.filters = _arg1.obj.filter;
break;
case "mzong_btn":
xm_mc.zm_mc.gotoAndStop(int(_arg1.obj.f));
xm_mc.zm_mc.filters = _arg1.obj.filter;
break;
case "myan_btn":
xm_mc.myan_mc.gotoAndStop(int(_arg1.obj.f));
xm_mc.myan_mc.filters = _arg1.obj.filter;
break;
case "mtou_btn":
xm_mc.mtou_mc.gotoAndStop(int(_arg1.obj.f));
xm_mc.mtou_mc.filters = _arg1.obj.filter;
break;
case "mshenti_btn":
xm_mc.st_mc.gotoAndStop(int(_arg1.obj.f));
xm_mc.st_mc.filters = _arg1.obj.filter;
break;
case "mtui_btn":
xm_mc.qt_mc.gotoAndStop(int(_arg1.obj.f));
xm_mc.ht_mc.gotoAndStop(int(_arg1.obj.f));
xm_mc.qt_mc.filters = _arg1.obj.filter;
xm_mc.ht_mc.filters = _arg1.obj.filter;
break;
case "mwei_btn":
xm_mc.mwei_mc.gotoAndStop(int(_arg1.obj.f));
xm_mc.mwei_mc.filters = _arg1.obj.filter;
break;
case "mzs_brn":
if (((xm_mc.zhs_mc[(("zs" + int(_arg1.obj.f)) + "_mc")].visible) && (_arg1.obj.clickIs))){
xm_mc.zhs_mc[(("zs" + int(_arg1.obj.f)) + "_mc")].visible = false;
return;
};
xm_mc.zhs_mc[(("zs" + int(_arg1.obj.f)) + "_mc")].visible = true;
xm_mc.zhs_mc[(("zs" + int(_arg1.obj.f)) + "_mc")].filters = _arg1.obj.filter;
break;
};
}
public function setInit(_arg1:MovieClip):void{
_arg1.gotoAndStop(1);
_arg1.alpha = 1;
}
public function doMu(_arg1:Event):void{
}
public function doChange(_arg1:Event):void{
bg_mc.play();
}
public function doMoveAA(_arg1:Event):void{
if (((yf_mc.visible) && ((yf_mc.currentFrame == 1)))){
yf_mc.startDrag(true);
};
}
public function init4():void{
back4_btn.addEventListener(MouseEvent.CLICK, doBack3);
TweenLite.to(role2_mc, 2, {x:175, y:35, scaleX:1, scaleY:1, alpha:1, ease:Back.easeOut});
TweenLite.to(xm_mc, 2, {x:400, y:230, scaleX:1, scaleY:1, alpha:1, ease:Back.easeOut});
}
public function remove():void{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, doMoveAA);
Mouse.show();
yf_mc.stopDrag();
yf_mc.visible = false;
}
public function init2():void{
xm_mc.visible = false;
TweenLite.to(role_mc, 1, {x:700, y:10, scaleX:1, scaleY:1, alpha:1, ease:Back.easeIn});
var _local1 = 1;
while (_local1 < 8) {
xm_mc.zhs_mc[(("zs" + _local1) + "_mc")].visible = false;
_local1++;
};
}
public function doXnOut(_arg1:MouseEvent):void{
if (role2_mc.scaleX < 1){
role2_mc.alpha = 1;
role2_mc.scaleX = 0.3;
role2_mc.scaleY = 0.3;
};
}
public function doR(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
if ((((((MyMouse.name == "")) || ((MyMouse.name == null)))) || ((MyMouse.f == 0)))){
return;
};
switch (_local2.name){
case "face1_mc":
setY();
if (MyMouse.name == "m_6_btn"){
setAF(role_mc.shong_mc, (int(MyMouse.f) + 1));
setAF(role2_mc.shong_mc, (int(MyMouse.f) + 1));
};
break;
case "mmao_mc":
setY();
break;
case "jmao_mc":
setY();
case "yying_mc":
setY();
break;
case "face_mc":
setY();
break;
case "yjing_mc":
setY();
break;
case "zui_mc":
if (MyMouse.name == "m_5_btn"){
setAF(role_mc.zui_mc, (int(MyMouse.f) + 1));
setAF(role2_mc.zui_mc, (int(MyMouse.f) + 1));
};
break;
case "shong_mc":
if (MyMouse.name == "m_6_btn"){
setAF(role_mc.shong_mc, (int(MyMouse.f) + 1));
setAF(role2_mc.shong_mc, (int(MyMouse.f) + 1));
};
break;
};
}
public function doDaying(_arg1:Event):void{
var _local2:PrintJob = new PrintJob();
_local2.start();
_local2.addPage((bg_mc.parent as Sprite));
_local2.send();
}
public function doTzxz(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
yf_mc.play();
yf_mc.stopDrag();
yf_mc.x = 220;
yf_mc.y = 130;
switch (_local2.name){
case "t1_mc":
role2_mc.tz_mc.gotoAndStop(1);
break;
case "t2_mc":
role2_mc.tz_mc.gotoAndStop(2);
break;
case "t3_mc":
role2_mc.tz_mc.gotoAndStop(3);
break;
case "t4_mc":
role2_mc.tz_mc.gotoAndStop(4);
break;
case "t5_mc":
role2_mc.tz_mc.gotoAndStop(5);
break;
case "t6_mc":
role2_mc.tz_mc.gotoAndStop(6);
break;
};
}
public function setY():void{
if (MyMouse.name == "m_3_btn"){
setAF(role_mc.yying_mc, (int(MyMouse.f) + 1));
setAF(role2_mc.yying_mc, (int(MyMouse.f) + 1));
};
if (MyMouse.name == "m_2_btn"){
setAF(role_mc.jmao_mc, (int(MyMouse.f) + 1));
setAF(role2_mc.jmao_mc, (int(MyMouse.f) + 1));
};
if (MyMouse.name == "m_4_btn"){
setAF(role_mc.yjing_mc, (int(MyMouse.f) + 1));
setAF(role2_mc.yjing_mc, (int(MyMouse.f) + 1));
};
if (MyMouse.name == "m_1_btn"){
setAF(role_mc.mmao_mc, (int(MyMouse.f) + 1));
setAF(role2_mc.mmao_mc, (int(MyMouse.f) + 1));
};
}
public function doInit(_arg1:Event):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
if ((((((MyMouse.name == "")) || ((MyMouse.name == null)))) || ((MyMouse.f == 0)))){
return;
};
if (MyMouse.name == "m_1_btn"){
setInit(role_mc.mmao_mc);
setInit(role2_mc.mmao_mc);
};
if (MyMouse.name == "m_2_btn"){
setInit(role_mc.jmao_mc);
setInit(role2_mc.jmao_mc);
};
if (MyMouse.name == "m_3_btn"){
setInit(role_mc.yying_mc);
setInit(role2_mc.yying_mc);
};
if (MyMouse.name == "m_4_btn"){
setInit(role_mc.yjing_mc);
setInit(role2_mc.yjing_mc);
};
if (MyMouse.name == "m_5_btn"){
setInit(role_mc.zui_mc);
setInit(role2_mc.zui_mc);
};
if (MyMouse.name == "m_6_btn"){
setInit(role_mc.shong_mc);
setInit(role2_mc.shong_mc);
};
}
public function domoreG1(_arg1:Event):void{
stage.dispatchEvent(new Event("more"));
}
public function init3():void{
TweenLite.to(role2_mc, 3, {x:155, y:34, scaleX:1, scaleY:1, alpha:1, ease:Back.easeOut});
yf_mc.visible = true;
Mouse.hide();
if ((((xm_mc.scaleY > 0.2)) || ((xm_mc.scaleX > 0.2)))){
xm_mc.scaleY = 0.2;
xm_mc.scaleX = 0.2;
xm_mc.y = 440;
xm_mc.x = 607;
jiaotou_mc.x = 552;
jiaotou_mc.y = 404;
};
}
public function doXmOut(_arg1:MouseEvent):void{
if (xm_mc.scaleX < 1){
xm_mc.scaleY = 0.2;
xm_mc.scaleX = 0.2;
xm_mc.alpha = 1;
};
}
public function doReplay(_arg1:Event):void{
gotoAndStop(1);
}
public function doXmOver(_arg1:MouseEvent):void{
if (xm_mc.scaleX < 1){
xm_mc.alpha = 0.5;
xm_mc.scaleX = 0.3;
xm_mc.scaleY = 0.3;
};
}
public function doNext3(_arg1:MouseEvent):void{
Mouse.show();
MyMouse.f = 0;
MyMouse.name = "";
gotoAndStop(3);
xm_mc.x = 605;
xm_mc.y = 440;
xm_mc.visible = true;
stage.removeChild(stage.getChildByName("b_bg_mc"));
}
public function doNext4(_arg1:Event):void{
remove();
gotoAndStop(4);
}
public function doXm(_arg1:MouseEvent):void{
if (((!((currentFrame == 3))) || ((xm_mc.scaleX == 1)))){
return;
};
yf_mc.visible = false;
yf_mc.startDrag(true);
Mouse.show();
jiaotou_mc.x = 610;
jiaotou_mc.y = 370;
TweenLite.to(role2_mc, 1, {x:630, y:350, scaleX:0.3, scaleY:0.3, alpha:1, ease:Back.easeOut});
TweenLite.to(tzyz_mc, 2, {scaleX:1, scaleY:0.1, alpha:0, ease:Back.easeOut});
TweenLite.to(xm_mc, 2, {x:400, y:230, scaleX:1, scaleY:1, alpha:1, ease:Back.easeOut});
TweenLite.to(xmbg_mc, 2, {scaleX:1, scaleY:1, alpha:1, ease:Back.easeOut});
}
public function doXn(_arg1:Event):void{
if ((((currentFrame == 3)) && ((xm_mc.scaleY > 0.2)))){
TweenLite.to(xm_mc, 0, {x:600, y:430, scaleX:0.2, scaleY:0.2, alpha:1, ease:Back.easeOut});
TweenLite.to(role2_mc, 3, {x:155, y:34, scaleX:1, scaleY:1, alpha:1, ease:Back.easeOut});
TweenLite.to(xmbg_mc, 2, {scaleX:0.1, scaleY:1, alpha:1, ease:Back.easeOut});
TweenLite.to(tzyz_mc, 2, {scaleX:1, scaleY:1, alpha:1, ease:Back.easeOut});
yf_mc.visible = true;
Mouse.hide();
yf_mc.startDrag(true);
jiaotou_mc.x = 552;
jiaotou_mc.y = 404;
};
}
function frame2(){
next_btn2.addEventListener(MouseEvent.CLICK, doNext3);
role_mc.mmao_mc.addEventListener(MouseEvent.CLICK, doR);
role_mc.yying_mc.addEventListener(MouseEvent.CLICK, doR);
role_mc.jmao_mc.addEventListener(MouseEvent.CLICK, doR);
role_mc.yjing_mc.addEventListener(MouseEvent.CLICK, doR);
role_mc.shong_mc.addEventListener(MouseEvent.CLICK, doR);
role_mc.zui_mc.addEventListener(MouseEvent.CLICK, doR);
role_mc.face_mc.addEventListener(MouseEvent.CLICK, doR);
role_mc.face1_mc.addEventListener(MouseEvent.CLICK, doR);
stage.addEventListener("doHuaBi", doInit);
init2();
stage.dispatchEvent(new Event("2"));
MyMouse.logo = "logo-ingame";
}
public function doPlay(_arg1:Event):void{
gotoAndStop(2);
}
public function domoreG(_arg1:Event):void{
stage.dispatchEvent(new Event("more"));
}
public function doBack3(_arg1:Event):void{
gotoAndStop(3);
TweenLite.to(xm_mc, 0, {x:600, y:430, scaleX:0.2, scaleY:0.2, alpha:1, ease:Back.easeOut});
}
function frame1(){
stop();
First_mc.play_btn.addEventListener(MouseEvent.CLICK, doPlay);
First_mc.moreG.addEventListener(MouseEvent.CLICK, domoreG);
MyMouse.logo = "logo-menu";
stage.dispatchEvent(new Event("1"));
}
public function doMout(_arg1:Event):void{
var _local2:MovieClip = (_arg1.currentTarget as MovieClip);
_local2.scaleX = 1;
_local2.scaleY = 1;
}
public function doXnOver(_arg1:MouseEvent):void{
if (role2_mc.scaleX < 1){
role2_mc.scaleY = 0.4;
role2_mc.scaleX = 0.4;
role2_mc.alpha = 0.5;
};
}
function frame4(){
replay_btn.addEventListener(MouseEvent.CLICK, doReplay);
daying_btn.addEventListener(MouseEvent.CLICK, doDaying);
init4();
MyMouse.logo = "logo-donepage";
stage.dispatchEvent(new Event("4"));
moreG1.addEventListener(MouseEvent.CLICK, domoreG1);
}
public function doBack2(_arg1:Event):void{
gotoAndStop(2);
TweenLite.to(role2_mc, 0, {x:-200, y:-200, scaleX:0.2, scaleY:0.2, alpha:1, ease:Back.easeOut});
remove();
}
function frame3(){
changeBg_btn.addEventListener(MouseEvent.CLICK, doChange);
next_btn3.addEventListener(MouseEvent.CLICK, doNext4);
back_btn.addEventListener(MouseEvent.CLICK, doBack2);
tzyz_mc.t1_mc.addEventListener(MouseEvent.CLICK, doTzxz);
tzyz_mc.t2_mc.addEventListener(MouseEvent.CLICK, doTzxz);
tzyz_mc.t3_mc.addEventListener(MouseEvent.CLICK, doTzxz);
tzyz_mc.t4_mc.addEventListener(MouseEvent.CLICK, doTzxz);
tzyz_mc.t5_mc.addEventListener(MouseEvent.CLICK, doTzxz);
tzyz_mc.t6_mc.addEventListener(MouseEvent.CLICK, doTzxz);
tzyz_mc.t1_mc.addEventListener(MouseEvent.MOUSE_OUT, doMout);
tzyz_mc.t2_mc.addEventListener(MouseEvent.MOUSE_OUT, doMout);
tzyz_mc.t3_mc.addEventListener(MouseEvent.MOUSE_OUT, doMout);
tzyz_mc.t4_mc.addEventListener(MouseEvent.MOUSE_OUT, doMout);
tzyz_mc.t5_mc.addEventListener(MouseEvent.MOUSE_OUT, doMout);
tzyz_mc.t6_mc.addEventListener(MouseEvent.MOUSE_OUT, doMout);
tzyz_mc.t1_mc.addEventListener(MouseEvent.MOUSE_OVER, doMover);
tzyz_mc.t2_mc.addEventListener(MouseEvent.MOUSE_OVER, doMover);
tzyz_mc.t3_mc.addEventListener(MouseEvent.MOUSE_OVER, doMover);
tzyz_mc.t4_mc.addEventListener(MouseEvent.MOUSE_OVER, doMover);
tzyz_mc.t5_mc.addEventListener(MouseEvent.MOUSE_OVER, doMover);
tzyz_mc.t6_mc.addEventListener(MouseEvent.MOUSE_OVER, doMover);
stage.dispatchEvent(new Event("3"));
role2_mc.addEventListener(MouseEvent.CLICK, doXn);
role2_mc.addEventListener(MouseEvent.MOUSE_OUT, doXnOut);
xm_mc.addEventListener(MouseEvent.MOUSE_OUT, doXmOut);
role2_mc.addEventListener(MouseEvent.MOUSE_OVER, doXnOver);
xm_mc.addEventListener(MouseEvent.MOUSE_OVER, doXmOver);
stage.addEventListener("xm", doHuazhuangXM);
MyMouse.logo = "logo-ingame";
xm_mc.addEventListener(MouseEvent.CLICK, doXm);
init3();
stage.addEventListener(MouseEvent.MOUSE_MOVE, doMoveAA);
stage.addChild(yf_mc);
yf_mc.startDrag(true);
yf_mc.mouseChildren = false;
yf_mc.mouseEnabled = false;
}
public function doMover(_arg1:Event):void{
var _local2:MovieClip = (_arg1.currentTarget as MovieClip);
_local2.scaleX = 1.1;
_local2.scaleY = 1.1;
}
}
}//package Titteras3_fla
Section 81
//Timeline_50 (Titteras3_fla.Timeline_50)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_50 extends MovieClip {
public function Timeline_50(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package Titteras3_fla
Section 82
//Timeline_52 (Titteras3_fla.Timeline_52)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_52 extends MovieClip {
public var face1_mc:MovieClip;
public var yjing_mc:MovieClip;
public var mmao_mc:MovieClip;
public var shong_mc:MovieClip;
public var jmao_mc:MovieClip;
public var zui_mc:MovieClip;
public var face_mc:MovieClip;
public var yying_mc:MovieClip;
public function Timeline_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 83
//Timeline_53 (Titteras3_fla.Timeline_53)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_53 extends MovieClip {
public function Timeline_53(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 84
//Timeline_54 (Titteras3_fla.Timeline_54)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_54 extends MovieClip {
public function Timeline_54(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 85
//Timeline_55 (Titteras3_fla.Timeline_55)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_55 extends MovieClip {
public function Timeline_55(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 86
//Timeline_56 (Titteras3_fla.Timeline_56)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_56 extends MovieClip {
public function Timeline_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 87
//Timeline_57 (Titteras3_fla.Timeline_57)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_57 extends MovieClip {
public function Timeline_57(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 88
//Timeline_60 (Titteras3_fla.Timeline_60)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_60 extends MovieClip {
public function Timeline_60(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 89
//Timeline_62 (Titteras3_fla.Timeline_62)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_62 extends MovieClip {
public function Timeline_62(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 90
//Timeline_63 (Titteras3_fla.Timeline_63)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_63 extends MovieClip {
public function Timeline_63(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 91
//Timeline_64 (Titteras3_fla.Timeline_64)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_64 extends MovieClip {
public function Timeline_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 92
//Timeline_65 (Titteras3_fla.Timeline_65)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_65 extends MovieClip {
public function Timeline_65(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 93
//Timeline_66 (Titteras3_fla.Timeline_66)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_66 extends MovieClip {
public function Timeline_66(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 94
//Timeline_67 (Titteras3_fla.Timeline_67)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_67 extends MovieClip {
public function Timeline_67(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 95
//Timeline_68 (Titteras3_fla.Timeline_68)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_68 extends MovieClip {
public function Timeline_68(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 96
//Timeline_69 (Titteras3_fla.Timeline_69)
package Titteras3_fla {
import flash.display.*;
public dynamic class Timeline_69 extends MovieClip {
public function Timeline_69(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Titteras3_fla
Section 97
//Timeline_78 (Titteras3_fla.Timeline_78)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import com.kobe.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class Timeline_78 extends MovieClip {
public var m_5_btn:SimpleButton;
public var m_6_btn:SimpleButton;
public var m_1_btn:SimpleButton;
public var m_6_mc:MovieClip;
public var m_4_mc:MovieClip;
public var m_2_mc:MovieClip;
public var m_5_mc:MovieClip;
public var b_bg_mc:MovieClip;
public var m_3_mc:MovieClip;
public var m_1_mc:MovieClip;
public var _b_mc:MovieClip;
public var m_2_btn:SimpleButton;
public var m_3_btn:SimpleButton;
public var m_4_btn:SimpleButton;
public function Timeline_78(){
addFrameScript(0, frame1);
}
public function doMoveB(_arg1:Event):void{
if (_b_mc == null){
return;
};
if (((!((MyMouse.b_mc == null))) && (!((MyMouse.b_mc.currentFrame == 1))))){
return;
};
_b_mc.mouseChildren = false;
_b_mc.mouseEnabled = false;
_b_mc.x = (stage.mouseX + 101);
_b_mc.y = (stage.mouseY + 145);
if (MyMouse.name == "m_4_btn"){
_b_mc.x = (stage.mouseX + 120);
_b_mc.y = (stage.mouseY + 165);
};
if (MyMouse.name == "m_6_btn"){
_b_mc.x = (stage.mouseX + 108);
_b_mc.y = (stage.mouseY + 150);
};
}
public function addEvent(_arg1:MovieClip, _arg2:int, _arg3:int):void{
var _local4:int = _arg3;
while (_local4 < (_arg2 + 1)) {
_arg1[(("b" + _local4) + "_mc")].addEventListener(MouseEvent.CLICK, doHuaBi);
_arg1[(("b" + _local4) + "_mc")].index = ((_local4 - _arg3) + 1);
_local4++;
};
}
public function doHuaBi(_arg1:Event):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
if (_local2 == null){
return;
};
var _local3:MovieClip = (_local2.parent as MovieClip);
if (_local3.alpha != 1){
return;
};
var _local4 = 1;
while (_local4 < 29) {
b_bg_mc[(("b" + _local4) + "_mc")].x = -100;
b_bg_mc[(("b" + _local4) + "_mc")].y = -150;
_local4++;
};
_b_mc = b_bg_mc[_local2.name];
_b_mc.mouseChildren = false;
_b_mc.mouseEnabled = false;
stage.dispatchEvent(new Event("doHuaBi"));
MyMouse.f = _local2.index;
MyMouse.b_mc = _b_mc;
}
public function setAlpha(_arg1:Number):void{
m_1_mc.alpha = _arg1;
m_2_mc.alpha = _arg1;
m_3_mc.alpha = _arg1;
m_4_mc.alpha = _arg1;
m_5_mc.alpha = _arg1;
m_6_mc.alpha = _arg1;
m_1_mc.mouseChildren = false;
m_2_mc.mouseChildren = false;
m_3_mc.mouseChildren = false;
m_4_mc.mouseChildren = false;
m_5_mc.mouseChildren = false;
m_6_mc.mouseChildren = false;
}
function frame1(){
m_1_btn.addEventListener(MouseEvent.CLICK, doClickB);
m_2_btn.addEventListener(MouseEvent.CLICK, doClickB);
m_3_btn.addEventListener(MouseEvent.CLICK, doClickB);
m_4_btn.addEventListener(MouseEvent.CLICK, doClickB);
m_5_btn.addEventListener(MouseEvent.CLICK, doClickB);
m_6_btn.addEventListener(MouseEvent.CLICK, doClickB);
stage.addEventListener(MouseEvent.MOUSE_MOVE, doMoveB);
addEvent(m_1_mc, 4, 1);
addEvent(m_2_mc, 9, 5);
addEvent(m_3_mc, 14, 10);
addEvent(m_4_mc, 19, 15);
addEvent(m_5_mc, 24, 20);
addEvent(m_6_mc, 28, 25);
initA();
stage.addChild(b_bg_mc);
}
public function doClickB(_arg1:Event):void{
var _local2:SimpleButton = (_arg1.target as SimpleButton);
if (_local2 == null){
return;
};
MyMouse.name = _local2.name;
setAlpha(0.3);
if (_b_mc != null){
_b_mc.y = -150;
_b_mc.x = -100;
};
if (MyMouse.name == "m_1_btn"){
Mouse.hide();
m_1_mc.alpha = 1;
m_1_mc.mouseChildren = true;
_b_mc = b_bg_mc[(("b" + 1) + "_mc")];
};
if (MyMouse.name == "m_2_btn"){
Mouse.hide();
m_2_mc.alpha = 1;
m_2_mc.mouseChildren = true;
_b_mc = b_bg_mc[(("b" + 5) + "_mc")];
};
if (MyMouse.name == "m_3_btn"){
Mouse.hide();
m_3_mc.alpha = 1;
m_3_mc.mouseChildren = true;
_b_mc = b_bg_mc[(("b" + 10) + "_mc")];
};
if (MyMouse.name == "m_4_btn"){
Mouse.show();
m_4_mc.alpha = 1;
m_4_mc.mouseChildren = true;
_b_mc = b_bg_mc[(("b" + 15) + "_mc")];
};
if (MyMouse.name == "m_5_btn"){
Mouse.hide();
m_5_mc.alpha = 1;
m_5_mc.mouseChildren = true;
_b_mc = b_bg_mc[(("b" + 20) + "_mc")];
};
if (MyMouse.name == "m_6_btn"){
Mouse.hide();
m_6_mc.alpha = 1;
m_6_mc.mouseChildren = true;
_b_mc = b_bg_mc[(("b" + 25) + "_mc")];
};
MyMouse.f = 1;
MyMouse.b_mc = _b_mc;
}
public function initA():void{
setAlpha(0.3);
}
}
}//package Titteras3_fla
Section 98
//TITTER_9 (Titteras3_fla.TITTER_9)
package Titteras3_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class TITTER_9 extends MovieClip {
public function TITTER_9(){
addFrameScript(0, frame1);
}
public function New(){
var _local1:* = root;
gotoAndStop(_local1.TypeSS);
}
function frame1(){
stop();
New();
}
}
}//package Titteras3_fla
Section 99
//focusRectSkin (focusRectSkin)
package {
import flash.display.*;
public dynamic class focusRectSkin extends MovieClip {
}
}//package
Section 100
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 101
//music (music)
package {
import flash.display.*;
public dynamic class music extends MovieClip {
}
}//package
Section 102
//SliderThumb_disabledSkin (SliderThumb_disabledSkin)
package {
import flash.display.*;
public dynamic class SliderThumb_disabledSkin extends MovieClip {
}
}//package
Section 103
//SliderThumb_downSkin (SliderThumb_downSkin)
package {
import flash.display.*;
public dynamic class SliderThumb_downSkin extends MovieClip {
}
}//package
Section 104
//SliderThumb_overSkin (SliderThumb_overSkin)
package {
import flash.display.*;
public dynamic class SliderThumb_overSkin extends MovieClip {
}
}//package
Section 105
//SliderThumb_upSkin (SliderThumb_upSkin)
package {
import flash.display.*;
public dynamic class SliderThumb_upSkin extends MovieClip {
}
}//package
Section 106
//SliderTick_skin (SliderTick_skin)
package {
import flash.display.*;
public dynamic class SliderTick_skin extends MovieClip {
}
}//package
Section 107
//SliderTrack_disabledSkin (SliderTrack_disabledSkin)
package {
import flash.display.*;
public dynamic class SliderTrack_disabledSkin extends MovieClip {
}
}//package
Section 108
//SliderTrack_skin (SliderTrack_skin)
package {
import flash.display.*;
public dynamic class SliderTrack_skin extends MovieClip {
}
}//package
Section 109
//SoundM (SoundM)
package {
import flash.media.*;
public dynamic class SoundM extends Sound {
}
}//package