Section 1
//didi_source_backfds_4 (_fla.didi_source_backfds_4)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class didi_source_backfds_4 extends MovieClip {
public var fButton:SimpleButton;
public function didi_source_backfds_4(){
addFrameScript(0, frame1);
}
function frame1(){
fButton.addEventListener(MouseEvent.CLICK, fButtonClicked);
}
public function fButtonClicked(_arg1:MouseEvent){
var urlRequest:URLRequest;
var e = _arg1;
try {
urlRequest = new URLRequest("http://www.didigames.com/");
navigateToURL(urlRequest, "_blank");
} catch(e:Error) {
};
}
}
}//package _fla
Section 2
//Lloadingy_1 (_fla.Lloadingy_1)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
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.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Lloadingy_1 extends MovieClip {
public var a:int;
public var bar:MovieClip;
public var mc:MovieClip;
public function Lloadingy_1(){
addFrameScript(0, frame1, 88, frame89, 90, frame91, 264, frame265);
}
public function myover(_arg1:Event):void{
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, myloadmovie);
mc.play();
play();
}
function frame1(){
this.addEventListener(MouseEvent.CLICK, onClick);
this.buttonMode = true;
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, myloadmovie);
this.loaderInfo.addEventListener(Event.COMPLETE, myover);
}
function frame91(){
a = 1;
}
public function onClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.didigames.com"));
}
function frame265(){
stop();
(parent as MovieClip).gotoAndStop(2);
}
function frame89(){
a = 1;
trace(a);
}
public function myloadmovie(_arg1:ProgressEvent):void{
var _local2:Number = (_arg1.bytesLoaded / _arg1.bytesTotal);
var _local3:Number = Math.round((_local2 * 100));
trace(_local3);
bar.loading_animation.gotoAndStop(int(_local3));
}
}
}//package _fla
Section 3
//Timeline_191 (_fla.Timeline_191)
package _fla {
import flash.display.*;
public dynamic class Timeline_191 extends MovieClip {
public function Timeline_191(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 4
//Timeline_192 (_fla.Timeline_192)
package _fla {
import flash.display.*;
public dynamic class Timeline_192 extends MovieClip {
public function Timeline_192(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 5
//Timeline_193 (_fla.Timeline_193)
package _fla {
import flash.display.*;
public dynamic class Timeline_193 extends MovieClip {
public function Timeline_193(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 6
//Timeline_194 (_fla.Timeline_194)
package _fla {
import flash.display.*;
public dynamic class Timeline_194 extends MovieClip {
public function Timeline_194(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 7
//Timeline_196 (_fla.Timeline_196)
package _fla {
import flash.display.*;
public dynamic class Timeline_196 extends MovieClip {
public function Timeline_196(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 8
//Timeline_197 (_fla.Timeline_197)
package _fla {
import flash.display.*;
public dynamic class Timeline_197 extends MovieClip {
public function Timeline_197(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 9
//Timeline_43 (_fla.Timeline_43)
package _fla {
import flash.display.*;
public dynamic class Timeline_43 extends MovieClip {
public function Timeline_43(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 10
//Timeline_44 (_fla.Timeline_44)
package _fla {
import flash.display.*;
public dynamic class Timeline_44 extends MovieClip {
public function Timeline_44(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 11
//Timeline_6 (_fla.Timeline_6)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
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.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_6 extends MovieClip {
public var fButton:MovieClip;
public function Timeline_6(){
addFrameScript(0, frame1, 59, frame60);
}
function frame1(){
if ((parent as MovieClip).a == 1){
play();
} else {
stop();
};
fButton.addEventListener(MouseEvent.CLICK, fButtonClicked);
}
function frame60(){
stop();
}
public function fButtonClicked(_arg1:MouseEvent){
var urlRequest:URLRequest;
var e = _arg1;
try {
urlRequest = new URLRequest("http://www.didigames.com/");
navigateToURL(urlRequest, "_blank");
} catch(e:Error) {
};
}
}
}//package _fla
Section 12
//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 13
//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){
return;
};
if (!_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 14
//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 15
//Circ (com.greensock.easing.Circ)
package com.greensock.easing {
public class Circ {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
return ((((-(_arg3) * 0.5) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 * 0.5) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
}
}//package com.greensock.easing
Section 16
//Cubic (com.greensock.easing.Cubic)
package com.greensock.easing {
public class Cubic {
public static const power:uint = 2;
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
return ((((((_arg3 * 0.5) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 * 0.5) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package com.greensock.easing
Section 17
//Quad (com.greensock.easing.Quad)
package com.greensock.easing {
public class Quad {
public static const power:uint = 1;
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
return (((((_arg3 * 0.5) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) * 0.5) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package com.greensock.easing
Section 18
//Quint (com.greensock.easing.Quint)
package com.greensock.easing {
public class Quint {
public static const power:uint = 4;
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
return ((((((((_arg3 * 0.5) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 * 0.5) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package com.greensock.easing
Section 19
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.events.*;
import flash.display.*;
import com.greensock.core.*;
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.133;
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 (_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 (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
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 20
//GameSound (gameSound.GameSound)
package gameSound {
import vo.*;
import flash.media.*;
public class GameSound {
private var soundAr:Object;
public var currentBgSound:String;
private var channel:SoundChannel;
public function GameSound(){
soundAr = new Object();
super();
soundAr["BG"] = new (Werwolf.instance.getClass("SoundBG"));
}
public function stopBgSound():void{
if (this.channel){
this.channel.stop();
this.channel = null;
};
}
public function furbishBgSound():void{
if (Def.isSound){
if (channel == null){
channel = soundAr["BG"].play(0, 99999);
};
} else {
stopBgSound();
};
}
}
}//package gameSound
Section 21
//BeginScene (scene.BeginScene)
package scene {
import flash.events.*;
import flash.display.*;
import vo.*;
import flash.net.*;
public class BeginScene {
public static const BEGINGAME:String = "begin";
public function BeginScene(){
Werwolf.instance.movie.gotoAndStop(1, "begin");
Werwolf.instance.addScriptToNextframe(init);
Def.gameSound.furbishBgSound();
}
private function init():void{
MovieClip(Werwolf.instance.getMovie("playBn")).buttonMode = true;
MovieClip(Werwolf.instance.getMovie("moreGameBn")).buttonMode = true;
Werwolf.instance.movie.addEventListener(MouseEvent.CLICK, onClick);
}
private function onClick(_arg1:MouseEvent):void{
switch (_arg1.target.name){
case "playBn":
trace("playBn");
Werwolf.instance.movie.removeEventListener(MouseEvent.CLICK, onClick);
new GameScene();
break;
case "Logo":
case "moreGameBn":
navigateToURL(new URLRequest("http://www.didigames.com"));
break;
};
}
}
}//package scene
Section 22
//GameScene (scene.GameScene)
package scene {
import flash.events.*;
import flash.display.*;
import com.greensock.*;
import vo.*;
import com.greensock.easing.*;
import flash.net.*;
import flash.ui.*;
public class GameScene {
private var panel:MovieClip;
private var modelArr:Array;
private var pencil:MovieClip;
private var hit:Boolean;// = false
private var panel2:MovieClip;
private var hairPanel:MovieClip;
private var activeModel:MovieClip;
private var dressNum:int;
private var sceneNum:int;// = 0
private var oldMouseY:Number;
private var oldMouseX:Number;
private var hair:MovieClip;
private var dressOp:MovieClip;
public function GameScene(){
modelArr = [];
super();
Def.modelOneState = [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0];
Def.modelTwoState = [1, 0, 0, 0, 0, 0];
Werwolf.instance.movie.visible = false;
Werwolf.instance.movie.gotoAndStop(1, "game");
Werwolf.instance.addScriptToNextframe(init);
}
private function done():void{
sceneNum = 0;
modelArr[0].y = (modelArr[0].y + 20);
var _local1:int = modelArr.length;
var _local2:int;
while (_local2 < _local1) {
modelArr[_local2].visible = true;
TweenLite.to(modelArr[_local2], 0.6, {x:(360 + (_local2 * 60)), ease:Quad.easeOut});
_local2++;
};
TweenLite.to(panel, 0.6, {x:-350, ease:Cubic.easeOut});
Werwolf.instance.getMovie("doneBn").visible = false;
Werwolf.instance.getMovie("backGroundBn").visible = false;
Werwolf.instance.getMovie("playAgainBn").visible = true;
Werwolf.instance.getMovie("Logo").visible = true;
}
private function playAgain():void{
Werwolf.instance.getMovie("nextBn").visible = false;
Werwolf.instance.getMovie("doneBn").visible = false;
Werwolf.instance.getMovie("backBn").visible = false;
Werwolf.instance.getMovie("backGroundBn").visible = false;
Werwolf.instance.getMovie("playAgainBn").visible = false;
Werwolf.instance.getMovie("nextBn2").visible = false;
Werwolf.instance.getMovie("Logo").visible = false;
destroy();
new BeginScene();
}
private function init():void{
Werwolf.instance.movie.visible = true;
initMC();
initBn();
initModel();
initSceneOne();
addEventListeners();
}
private function initOp(_arg1:MovieClip):void{
var _local2:int = _arg1.numChildren;
var _local3:int;
while (_local3 < _local2) {
MovieClip(_arg1.getChildByName(("c" + _local3))).gotoAndStop(1);
_local3++;
};
}
private function mcClick(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
if (sceneNum == 1){
_local2 = 1;
while (_local2 < 6) {
if (_arg1.target.name == ("t" + _local2)){
if (((activeModel.getChildByName("tattoo").visible) && ((MovieClip(activeModel.getChildByName("tattoo")).currentFrame == _local2)))){
activeModel.getChildByName("tattoo").visible = false;
} else {
activeModel.getChildByName("tattoo").visible = true;
MovieClip(activeModel.getChildByName("tattoo")).gotoAndStop(_local2);
};
break;
};
_local2++;
};
_local3 = 1;
while (_local3 < 6) {
if (_arg1.target.name == ("f" + _local3)){
if (((activeModel.getChildByName("lianshi").visible) && ((MovieClip(activeModel.getChildByName("lianshi")).currentFrame == _local3)))){
activeModel.getChildByName("lianshi").visible = false;
} else {
activeModel.getChildByName("lianshi").visible = true;
MovieClip(activeModel.getChildByName("lianshi")).gotoAndStop(_local3);
};
break;
};
_local3++;
};
} else {
if (sceneNum == 2){
_local4 = dressOp.numChildren;
_local5 = 0;
while (_local5 < _local4) {
if (_arg1.target.name == ("mc" + _local5)){
if (((MovieClip(activeModel.getChildByName(("c" + int((dressOp.currentFrame - 1))))).visible) && ((MovieClip(activeModel.getChildByName(("c" + int((dressOp.currentFrame - 1))))).currentFrame == (_local5 + 1))))){
MovieClip(activeModel.getChildByName(("c" + int((dressOp.currentFrame - 1))))).visible = false;
if (activeModel == modelArr[0]){
Def.modelOneState[((int((dressOp.currentFrame - 1)) + Def.oneSceneStateNum) + 2)] = 0;
} else {
Def.modelTwoState[((int((dressOp.currentFrame - 1)) + Def.twoSceneStateNum) + 1)] = 0;
};
} else {
MovieClip(activeModel.getChildByName(("c" + int((dressOp.currentFrame - 1))))).visible = true;
MovieClip(activeModel.getChildByName(("c" + int((dressOp.currentFrame - 1))))).gotoAndStop((_local5 + 1));
if (activeModel == modelArr[0]){
Def.modelOneState[((int((dressOp.currentFrame - 1)) + Def.oneSceneStateNum) + 2)] = (_local5 + 1);
} else {
Def.modelTwoState[((int((dressOp.currentFrame - 1)) + Def.twoSceneStateNum) + 1)] = (_local5 + 1);
};
};
};
_local5++;
};
_local4 = MovieClip(panel.mShoes).numChildren;
trace(_local4, "len");
_local6 = 1;
while (_local6 < (_local4 + 1)) {
if (_arg1.target.name == ("xiezi" + _local6)){
if (((activeModel.shoes.visible) && ((MovieClip(activeModel.shoes).currentFrame == _local6)))){
activeModel.shoes.visible = false;
if (activeModel == modelArr[1]){
Def.modelTwoState[(Def.modelTwoState.length - 1)] = 0;
} else {
Def.modelOneState[(Def.modelOneState.length - 1)] = 0;
};
} else {
activeModel.shoes.visible = true;
MovieClip(activeModel.shoes).gotoAndStop(_local6);
if (activeModel == modelArr[1]){
Def.modelTwoState[(Def.modelTwoState.length - 1)] = _local6;
} else {
Def.modelOneState[(Def.modelOneState.length - 1)] = _local6;
};
};
};
_local6++;
};
};
};
}
private function next2():void{
var _local1:Number;
if (activeModel == modelArr[0]){
activeModel = modelArr[1];
MovieClip(activeModel.hair).gotoAndStop(Def.modelTwoState[Def.twoSceneStateNum]);
hairPanel.hair0.visible = false;
hairPanel.hair1.visible = true;
hair = hairPanel.hair1;
panel2.tattooOp0.visible = false;
panel2.tattooOp1.visible = true;
panel2.dangban0.visible = false;
panel2.dangban1.visible = true;
panel2.lianshi.visible = false;
pencil.x = -50;
pencil.stopDrag();
Mouse.show();
Werwolf.instance.removeEventListener(Event.ENTER_FRAME, onFrame);
_local1 = (modelArr[0].x - 80);
modelArr[1].scaleX = (modelArr[1].scaleY = Def.per);
modelArr[1].x = (Werwolf.instance.stage.stageWidth + 20);
modelArr[1].y = modelArr[0].y;
modelArr[1].visible = true;
TweenLite.to(modelArr[0], 0.6, {x:(Werwolf.instance.stage.stageWidth + 20), ease:Cubic.easeOut});
TweenLite.to(modelArr[1], 0.6, {x:_local1, ease:Cubic.easeOut});
TweenLite.to(panel, 0.6, {x:(0 - panel.width), ease:Cubic.easeOut});
} else {
Werwolf.instance.getMovie("nextBn2").visible = false;
TweenLite.to(panel2, 0.6, {x:Werwolf.instance.stage.stageWidth, ease:Cubic.easeOut});
TweenLite.to(hairPanel, 0.6, {x:Werwolf.instance.stage.stageWidth, ease:Cubic.easeOut});
TweenLite.to(activeModel, 0.6, {x:Def.DRESS_INITX, y:Def.DRESS_INITY, scaleX:1, scaleY:1, ease:Cubic.easeOut});
initSceneTwo();
};
}
private function before2(_arg1:MovieClip):void{
var _local2:int = _arg1.numChildren;
var _local3:int;
while (_local3 < _local2) {
before(MovieClip(_arg1.getChildByName(("c" + _local3))));
_local3++;
};
}
private function changeBackGround():void{
if (MovieClip(Werwolf.instance.getMovie("backGround")).currentFrame == MovieClip(Werwolf.instance.getMovie("backGround")).totalFrames){
MovieClip(Werwolf.instance.getMovie("backGround")).gotoAndStop(1);
} else {
MovieClip(Werwolf.instance.getMovie("backGround")).nextFrame();
};
}
private function initMC():void{
MovieClip(Werwolf.instance.getMovie("backGround")).gotoAndStop(1);
Werwolf.instance.getMovie("panel1").visible = false;
pencil = Werwolf.instance.getMovie("pencil");
panel2 = Werwolf.instance.getMovie("panel");
hairPanel = Werwolf.instance.getMovie("hairPanel");
hair = hairPanel.hair0;
hair.gotoAndStop(Def.modelOneState[Def.oneSceneStateNum]);
MovieClip(hairPanel.hair1).gotoAndStop(Def.modelOneState[Def.twoSceneStateNum]);
hairPanel.hair1.visible = false;
}
private function changeHair():void{
var _local1:int;
if (((MovieClip(activeModel.hair).visible) && ((MovieClip(activeModel.hair).currentFrame == hair.currentFrame)))){
MovieClip(activeModel.hair).visible = false;
if (activeModel.name == "model0"){
Def.modelOneState[Def.oneSceneStateNum] = 0;
} else {
Def.modelTwoState[Def.twoSceneStateNum] = 0;
};
} else {
_local1 = hair.currentFrame;
MovieClip(activeModel.hair).visible = true;
MovieClip(activeModel.hair).gotoAndStop(_local1);
if (activeModel.name == "model0"){
Def.modelOneState[Def.oneSceneStateNum] = _local1;
} else {
Def.modelTwoState[Def.twoSceneStateNum] = _local1;
};
};
}
private function movePencil():void{
var locX:Number;
var locY:Number;
var activeGroup:MovieClip;
var childNum:int;
var r:int;
var i:int;
var com2:Function;
var k:int;
if (sceneNum == 1){
locX = pencil.x;
locY = pencil.y;
if (!hit){
var com1:Function = function ():void{
TweenLite.to(pencil, 0.25, {x:locX, y:locY, ease:Circ.easeOut, onComplete:com2});
};
com2 = function ():void{
hit = false;
};
hit = true;
oldMouseX = Werwolf.instance.mouseX;
oldMouseY = Werwolf.instance.mouseY;
TweenLite.to(pencil, 0.25, {x:(locX + 10), y:(locY - 10), ease:Circ.easeOut, onComplete:com1});
};
activeGroup = panel.group.getChildByName(("group" + pencil.currentFrame));
childNum = activeGroup.numChildren;
r = 0;
while (r < childNum) {
if (activeGroup.getChildByName(("mc" + r)).hitTestPoint(Werwolf.instance.mouseX, Werwolf.instance.mouseY)){
MovieClip(pencil.pen).gotoAndStop((r + 1));
MovieClip(activeModel.model.getChildByName(("c" + (pencil.currentFrame - 1)))).gotoAndStop((r + 1));
if (activeModel.name == "model0"){
Def.modelOneState[(pencil.currentFrame - 1)] = (r + 1);
} else {
Def.modelTwoState[(pencil.currentFrame - 1)] = (r + 1);
};
break;
};
r = (r + 1);
};
i = 0;
while (i < 6) {
if (panel.pifu.getChildByName(("pifu" + (i + 1))).hitTestPoint(Werwolf.instance.mouseX, Werwolf.instance.mouseY)){
var wait:Function = function ():void{
MovieClip(pencil.pen).gotoAndStop(MovieClip(activeModel.model.getChildByName(("c" + i))).currentFrame);
};
pencil.gotoAndStop((i + 1));
k = 1;
while (k < 7) {
if (k == pencil.currentFrame){
MovieClip(panel.baffle).getChildByName(("baffle" + k)).visible = false;
} else {
MovieClip(panel.baffle).getChildByName(("baffle" + k)).visible = true;
};
k = (k + 1);
};
Werwolf.instance.addScriptToNextframe(wait);
break;
};
i = (i + 1);
};
};
}
private function addEventListeners():void{
Werwolf.instance.addEventListener(MouseEvent.CLICK, onClick);
}
private function onFrame(_arg1:Event):void{
if (((((Werwolf.instance.getMovie("nextBn2").hitTestPoint(Werwolf.instance.mouseX, Werwolf.instance.mouseY)) || (panel2.hitTestPoint(Werwolf.instance.mouseX, Werwolf.instance.mouseY)))) || (hairPanel.hitTestPoint(Werwolf.instance.mouseX, Werwolf.instance.mouseY)))){
pencil.visible = false;
Mouse.show();
} else {
pencil.visible = true;
Mouse.hide();
};
if (hit){
if (((!((Werwolf.instance.mouseX == oldMouseX))) || (!((Werwolf.instance.mouseY == oldMouseY))))){
TweenLite.killTweensOf(pencil);
hit = false;
};
};
oldMouseX = Werwolf.instance.mouseX;
oldMouseY = Werwolf.instance.mouseY;
}
private function initSceneTwo():void{
sceneNum = 2;
Werwolf.instance.getMovie("nextBn").visible = true;
Werwolf.instance.getMovie("backBn").visible = true;
Werwolf.instance.getMovie("backGroundBn").visible = true;
Werwolf.instance.getMovie("doneBn").visible = false;
Werwolf.instance.getMovie("playAgainBn").visible = false;
panel = Werwolf.instance.getMovie("panel1");
panel.visible = true;
panel.x = -350;
TweenLite.to(panel, 0.6, {x:20, ease:Cubic.easeOut});
dressOp = panel.op1;
dressOp.gotoAndStop(1);
MovieClip(panel.op0).gotoAndStop(1);
dressOp.visible = true;
panel.op0.visible = false;
panel.mShoes.visible = true;
panel.wShoes.visible = false;
var _local1:MovieClip = panel.mc;
var _local2:int;
while (_local2 < 9) {
MovieClip(_local1.getChildByName(("mc" + _local2))).buttonMode = true;
if (_local2 > 0){
if (_local2 < 6){
MovieClip(_local1.getChildByName(("xiezi" + _local2))).buttonMode = true;
};
};
_local2++;
};
}
private function after2(_arg1:MovieClip):void{
var _local2:int = _arg1.numChildren;
var _local3:int;
while (_local3 < _local2) {
after(MovieClip(_arg1.getChildByName(("c" + _local3))));
_local3++;
};
}
private function initDressMC(_arg1:MovieClip, _arg2:int):void{
if (_arg2 == 0){
_arg1.visible = false;
} else {
_arg1.visible = true;
_arg1.gotoAndStop(_arg2);
};
}
private function after(_arg1:MovieClip):void{
if (_arg1.currentFrame == _arg1.totalFrames){
_arg1.gotoAndStop(1);
} else {
_arg1.nextFrame();
};
}
private function back():void{
Werwolf.instance.getMovie("nextBn").visible = false;
Werwolf.instance.getMovie("doneBn").visible = false;
Werwolf.instance.getMovie("backBn").visible = false;
Werwolf.instance.getMovie("backGroundBn").visible = false;
Werwolf.instance.getMovie("playAgainBn").visible = false;
Werwolf.instance.getMovie("nextBn2").visible = true;
modelArr[0].visible = false;
modelArr[1].visible = false;
activeModel = modelArr[0];
panel.x = -350;
initSceneOne();
}
private function removeEventListeners():void{
Werwolf.instance.removeEventListener(MouseEvent.CLICK, onClick);
}
private function initSceneOne():void{
var fun:Function;
fun = function ():void{
MovieClip(pencil.pen).gotoAndStop(Def.modelOneState[0]);
};
sceneNum = 1;
Mouse.hide();
pencil.startDrag(true);
pencil.parent.setChildIndex(pencil, (pencil.parent.numChildren - 1));
pencil.gotoAndStop(1);
Werwolf.instance.addScriptToNextframe(fun);
Werwolf.instance.getMovie("Logo").visible = false;
panel = Werwolf.instance.getMovie("panel0");
panel.visible = true;
panel.x = Werwolf.instance.stage.stageWidth;
panel2.x = Werwolf.instance.stage.stageWidth;
hairPanel.x = panel2.x;
hair = hairPanel.hair0;
hair.visible = true;
hairPanel.hair1.visible = false;
panel2.tattooOp0.visible = true;
panel2.tattooOp1.visible = false;
panel2.dangban0.visible = true;
panel2.dangban1.visible = false;
panel2.lianshi.visible = true;
var i = 1;
while (i < 7) {
if (i == pencil.currentFrame){
MovieClip(panel.baffle).getChildByName(("baffle" + i)).visible = false;
} else {
MovieClip(panel.baffle).getChildByName(("baffle" + i)).visible = true;
};
i = (i + 1);
};
activeModel.visible = true;
activeModel.scaleX = (activeModel.scaleY = 1);
activeModel.x = 700;
activeModel.y = 75;
TweenLite.to(activeModel, 1, {x:100, ease:Quint.easeOut});
TweenLite.to(panel, 1, {x:18, ease:Cubic.easeOut});
TweenLite.to(panel2, 1, {x:465, ease:Cubic.easeOut});
TweenLite.to(hairPanel, 1, {x:470, ease:Cubic.easeOut});
Werwolf.instance.addEventListener(Event.ENTER_FRAME, onFrame);
}
private function onClick(_arg1:MouseEvent):void{
trace(_arg1.target.name, "click name");
movePencil();
buttonClick(_arg1);
mcClick(_arg1);
}
private function next():void{
activeModel.visible = false;
activeModel = modelArr[0];
activeModel.scaleX = (activeModel.scaleY = (1 / Def.per));
activeModel.x = (Def.DRESS_INITX - 50);
activeModel.y = Def.DRESS_INITY;
TweenLite.to(activeModel, 0.6, {x:Def.DRESS_INITX, ease:Quint.easeOut});
panel.mShoes.visible = false;
panel.wShoes.visible = true;
dressOp.visible = false;
dressOp = panel.op0;
dressOp.visible = true;
Werwolf.instance.getMovie("nextBn").visible = false;
Werwolf.instance.getMovie("doneBn").visible = true;
}
private function buttonClick(_arg1:Event):void{
switch (_arg1.target.name){
case "beforeBn":
before(hair);
break;
case "beforeBn2":
before(dressOp);
break;
case "afterBn":
after(hair);
break;
case "afterBn2":
after(dressOp);
break;
case "nextBn":
next();
break;
case "nextBn2":
next2();
break;
case "backBn":
back();
break;
case "doneBn":
done();
break;
case "backGroundBn":
changeBackGround();
break;
case "playAgainBn":
playAgain();
break;
case "hairBn":
changeHair();
break;
case "Logo":
navigateToURL(new URLRequest("http://www.didigames.com"));
break;
};
}
private function initModel():void{
var _local2:int;
activeModel = Werwolf.instance.getMovie("model0");
var _local1:MovieClip = Werwolf.instance.getMovie("model1");
_local1.visible = false;
modelArr.push(activeModel, _local1);
Def.per = (activeModel.height / _local1.height);
activeModel.getChildByName("tattoo").visible = false;
_local1.getChildByName("tattoo").visible = false;
MovieClip(activeModel.hair).gotoAndStop(Def.modelOneState[Def.oneSceneStateNum]);
dressNum = 5;
var _local3:int;
while (_local3 < dressNum) {
_local2 = Def.modelOneState[((_local3 + Def.oneSceneStateNum) + 2)];
initDressMC(MovieClip(activeModel.getChildByName(("c" + _local3))), _local2);
_local3++;
};
var _local4:int;
while (_local4 < 6) {
MovieClip(activeModel.model.getChildByName(("c" + _local4))).gotoAndStop(Def.modelOneState[_local4]);
_local4++;
};
initDressMC(activeModel.lianshi, Def.modelOneState[(Def.oneSceneStateNum + 1)]);
initDressMC(activeModel.shoes, Def.modelOneState[(Def.modelOneState.length - 1)]);
dressNum = 3;
var _local5:int;
while (_local5 < dressNum) {
_local2 = Def.modelTwoState[((_local5 + Def.twoSceneStateNum) + 2)];
if (_local2 == 0){
MovieClip(_local1.getChildByName(("c" + _local5))).visible = false;
} else {
MovieClip(_local1.getChildByName(("c" + _local5))).visible = true;
MovieClip(_local1.getChildByName(("c" + _local5))).gotoAndStop(Def.modelTwoState[((_local5 + Def.twoSceneStateNum) + 2)]);
};
_local5++;
};
if (Def.modelTwoState[(Def.modelTwoState.length - 1)] == 0){
_local1.shoes.visible = false;
} else {
_local1.shoes.visible = true;
MovieClip(_local1.shoes).gotoAndStop(Def.modelTwoState[(Def.modelTwoState.length - 1)]);
};
}
public function destroy():void{
removeEventListeners();
Werwolf.instance.removeEventListener(Event.ENTER_FRAME, onFrame);
TweenLite.killTweensOf(modelArr[0]);
TweenLite.killTweensOf(modelArr[1]);
TweenLite.killTweensOf(modelArr[panel]);
modelArr.splice(0, 2);
hair = null;
pencil = null;
panel = null;
panel2 = null;
dressOp = null;
activeModel = null;
modelArr = null;
}
private function initBn():void{
Werwolf.instance.getMovie("nextBn").visible = false;
Werwolf.instance.getMovie("doneBn").visible = false;
Werwolf.instance.getMovie("backBn").visible = false;
Werwolf.instance.getMovie("backGroundBn").visible = false;
Werwolf.instance.getMovie("playAgainBn").visible = false;
Werwolf.instance.getMovie("nextBn2").visible = true;
MovieClip(Werwolf.instance.getMovie("nextBn")).buttonMode = true;
MovieClip(Werwolf.instance.getMovie("doneBn")).buttonMode = true;
MovieClip(Werwolf.instance.getMovie("backBn")).buttonMode = true;
MovieClip(Werwolf.instance.getMovie("backGroundBn")).buttonMode = true;
MovieClip(Werwolf.instance.getMovie("playAgainBn")).buttonMode = true;
MovieClip(Werwolf.instance.getMovie("nextBn2")).buttonMode = true;
MovieClip(hairPanel.hairBn).buttonMode = true;
var _local1 = 1;
while (_local1 < 6) {
MovieClip(panel2.dangban0.getChildByName(("t" + _local1))).buttonMode = true;
MovieClip(panel2.dangban1.getChildByName(("t" + _local1))).buttonMode = true;
MovieClip(panel2.getChildByName(("f" + _local1))).buttonMode = true;
_local1++;
};
}
private function before(_arg1:MovieClip):void{
if (_arg1.currentFrame == 1){
_arg1.gotoAndStop(_arg1.totalFrames);
} else {
_arg1.prevFrame();
};
}
}
}//package scene
Section 23
//Def (vo.Def)
package vo {
import gameSound.*;
public class Def {
public static const DRESS_INITX:Number = 450;
public static const DRESS_INITY:Number = 15;
public static const MINITY:Number = 18;
public static const MINITX:Number = -130;
public static var gameSound:GameSound = new GameSound();
public static var isSound:Boolean = true;
public static var modelTwoState:Array = [];
public static var modelOneState:Array = [];
public static var twoSceneStateNum:int = 0;
public static var oneSceneStateNum:int = 6;
public static var per:Number;
}
}//package vo
Section 24
//SoundBG (SoundBG)
package {
import flash.media.*;
public dynamic class SoundBG extends Sound {
}
}//package
Section 25
//Werwolf (Werwolf)
package {
import flash.events.*;
import flash.display.*;
import scene.*;
public class Werwolf extends MovieClip {
public var hairPanel:MovieClip;
public var sprite:Sprite;
public var Logo:MovieClip;
public var pencil:MovieClip;
public var _mask:Sprite;
public var panel:MovieClip;
public var backGround:MovieClip;
public var nextBn:MovieClip;
public var playBn:MovieClip;
public var backBn:MovieClip;
public var model0:MovieClip;
public var model1:MovieClip;
public var moreGameBn:MovieClip;
public var panel0:MovieClip;
public var panel1:MovieClip;
public var doneBn:MovieClip;
private var gameMask:Sprite;
public var nextBn2:MovieClip;
public var movie:MovieClip;
public var playAgainBn:MovieClip;
public var backGroundBn:MovieClip;
public static var instance:Werwolf;
public function Werwolf(){
_mask = new Sprite();
sprite = new Sprite();
gameMask = new Sprite();
super();
addFrameScript(0, frame1, 1, frame2);
_mask.graphics.beginFill(0);
_mask.graphics.drawRect(0, 0, 640, 480);
_mask.graphics.endFill();
gameMask.graphics.beginFill(0);
gameMask.graphics.drawRect(0, 0, 640, 480);
gameMask.graphics.endFill();
this.addChild(gameMask);
this.mask = gameMask;
instance = this;
}
public function getMovie(_arg1:String){
return (this.movie.getChildByName(_arg1));
}
public function addScriptToNextframe(_arg1:Function):void{
var frameNum:int;
var onEnter:Function;
var fun = _arg1;
onEnter = function (_arg1:Event):void{
frameNum++;
if (frameNum == 2){
fun();
removeEventListener(Event.ENTER_FRAME, onEnter);
};
};
this.addEventListener(Event.ENTER_FRAME, onEnter);
frameNum = 0;
}
public function getClass(_arg1:String):Class{
return ((this.loaderInfo.applicationDomain.getDefinition(_arg1) as Class));
}
function frame1(){
stop();
}
function frame2(){
begin();
}
private function begin():void{
movie = this;
this.addChild(sprite);
new BeginScene();
}
}
}//package