[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (8 B)
stop();
Instance of Symbol 48 MovieClip in Frame 1 (65 B)
on (release) {
getURL ("http://www.didigames.com/", "_blank");
}
Frame 5 (8.63 KiB) ● ●
function HomePage() {
OneGame = false;
gotoAndStop ("HomeFrame");
HomePic.PlayOn.onRelease = function () {
NewGame();
};
HomePic.MoreGamesOn.onRelease = MoreGameOK;
}
function MoreGameOK() {
getURL ("http://www.didigames.com/", "_blank");
}
function NewGame() {
gotoAndStop ("GameFrame");
RoleUrl = GamePic.Role.Girl;
if (!OneGame) {
RoleInit(RoleUrl);
RoleInit(GamePic.Role.Boy);
OneGame = true;
}
SelectRole(EditTypeIng);
}
function RoleInit(Obj) {
for (var _local3 in Obj) {
var _local1 = Obj[_local3];
_local1.stop();
if (((((_local1._name == "YF") or (_local1._name == "KZ")) or (_local1._name == "MJ")) or (_local1._name == "RH")) or (_local1._name == "SZ")) {
_local1._visible = false;
} else if (_local1._name == "BB") {
_local1._visible = false;
} else if (_local1._name == "XZ") {
_local1._visible = false;
} else if (_local1._name == "XL") {
_local1._visible = false;
}
}
GamePic.BJ.gotoAndStop(1);
}
function SelectRole() {
SelectPic.gotoAndStop(EditTypeIng);
MenuPic.gotoAndStop(EditTypeIng);
ReadyTween("X", MenuPic, 1000, 551.9);
for (var _local1 in MenuClub) {
TF_YF_KZ_XZ_Ready(SelectPic.a[MenuClub[_local1]]);
}
if (EditTypeIng == "Girl") {
ReadyTween("X", GamePic.Role.Girl, GamePic.Role.Girl._x, 2095.9);
ReadyTween("X", GamePic.Role.Boy, GamePic.Role.Boy._x, 3000);
MenuPic.Next.onRelease = function () {
EditTypeIng = "Boy";
RoleUrl = GamePic.Role.Boy;
SelectRole();
};
}
if (EditTypeIng == "Boy") {
ReadyTween("X", GamePic.Role.Girl, GamePic.Role.Girl._x, 3095.9);
ReadyTween("X", GamePic.Role.Boy, GamePic.Role.Boy._x, 2104.4);
MenuPic.Done.onRelease = function () {
EditTypeIng = "Done";
SelectRole();
};
MenuPic.BackGround.onRelease = function () {
ChangeFrameDown(GamePic.BJ);
};
}
if (EditTypeIng == "Done") {
ReadyTween("X", GamePic.Role.Girl, GamePic.Role.Girl._x, 1848.6);
ReadyTween("X", GamePic.Role.Boy, GamePic.Role.Boy._x, 1910.1);
MenuPic.Back.onRelease = function () {
EditTypeIng = "Girl";
RoleUrl = GamePic.Role.Girl;
SelectRole();
};
MenuPic.Again.onRelease = HomePage;
}
}
function TF_YF_KZ_XZ_Ready(Obj) {
Obj._visible = false;
var _local4 = 0;
while (_local4 < Obj._totalframes) {
var _local3 = Obj.duplicateMovieClip(Obj._name + _local4, TempDetph++);
_local3.Num = int(_local4 + 1);
_local3.Type = Obj._name;
_local3.gotoAndStop(_local3.Num);
if (Obj._name == "TF") {
_local3._x = (90 * _local4) + Obj._x;
}
if (Obj._name == "YF") {
_local3._x = (70 * _local4) + Obj._x;
}
if (Obj._name == "KZ") {
_local3._x = (70 * _local4) + Obj._x;
}
if (Obj._name == "BB") {
_local3._x = (110 * _local4) + Obj._x;
}
if (Obj._name == "MJ") {
_local3._y = (60 * _local4) + Obj._y;
}
if (Obj._name == "XL") {
_local3._y = (60 * _local4) + Obj._y;
}
if (Obj._name == "RH") {
_local3._x = (30 * _local4) + Obj._x;
}
if (Obj._name == "SZ") {
_local3._x = (30 * _local4) + Obj._x;
}
if (Obj._name == "XZ") {
_local3._y = (80 * _local4) + Obj._y;
}
_local3.onRollOver = function () {
NewGlow(this, 100);
};
_local3.onRelease = function () {
ChangeFrameOK(this.Type, this.Num);
};
_local4++;
}
}
function ChangeFrameOK(Type, Frame) {
var _local1 = RoleUrl[Type];
if (!_local1._visible) {
_local1._visible = true;
} else if (_local1._currentframe == Frame) {
_local1._visible = false;
}
_local1.gotoAndStop(Frame);
}
function ChangeFrameDown(Obj) {
if (Obj._currentframe == Obj._totalframes) {
Obj.gotoAndStop(1);
} else {
Obj.nextFrame();
}
}
function ChangeFrameUp(Obj) {
if (Obj._currentframe == 1) {
Obj.gotoAndStop(Obj._totalframes);
} else {
Obj.prevFrame();
}
}
function NewMenu(Type) {
for (var _local3 in MenuClub) {
var _local2 = ToolPic[MenuClub[_local3]];
_local2.Type = MenuClub[_local3];
_local2.onRelease = function () {
NewMouse(this.Type);
};
}
NewMouse(TypeIng);
}
function NewMouse(Type) {
MouseIoc.a.gotoAndStop(Type);
TypeIng = Type;
NewColorReady(Type);
}
function NewColorReady(Type) {
var _local2 = 0;
while (_local2 < 7) {
var _local3 = ToolPic.ColorPic[Type]["a" + _local2];
_local3.s = int(_local2 + 1);
_local3.onRelease = function () {
MouseIocReady(this.s);
};
var _local4 = ToolPic.ColorPic[MenuClub[_local2]];
_local4._alpha = 30;
NewBlur(_local4, 5);
_local2++;
}
MouseIocReady(1);
ToolPic.ColorPic[Type]._alpha = 100;
ToolPic.ColorPic[Type].filters = null;
}
function MouseIocReady(Frame) {
MouseIoc.onEnterFrame = function () {
if (EditTypeIng == "Dress") {
(this._x = _xmouse);
(this._y = _ymouse);
if (MouseShow.hitTest(_xmouse, _ymouse, true)) {
this._visible = false;
Mouse.show();
} else {
this._visible = true;
Mouse.hide();
}
if (Key.isDown(1)) {
this.play();
ChangeType();
}
} else {
this._visible = false;
}
};
MouseIoc.a.a.gotoAndStop(Frame);
MouseIoc.Frame = Frame;
}
function ChangeType() {
var _local1 = RoleUrl;
if (MouseIoc.hitTest(_local1)) {
_local1[TypeIng].gotoAndStop(MouseIoc.Frame);
}
}
function ChangeTFFrame(s, Type) {
RoleUrl[Type].gotoAndStop(s);
}
function DressReady(Type) {
NewButtonReady(Type);
if (Type == "Dress") {
RoleUrl = GamePic.Girl;
SelectRole("Girl");
XYZ(RoleUrl, 2098.3, 2797.7, -352.4, 3.1);
ReadyTween("X", ToolPic, ToolPic._x, 330.4);
EditPic._visible = false;
ToolPic._visible = true;
} else if (Type == "PantsFrame") {
SelectRole("Girl", "BoyAndGirl");
RoleUrl.Boy._visible = true;
ButtonClub.Next._visible = true;
ButtonClub.DoneOn._visible = false;
XYZ(RoleUrl, 600, 800, 38, 29);
ReadyTween("X", EditPic, EditPic._x, 312.9);
EditPic._visible = true;
ToolPic._visible = false;
YF_TF_SS_MenuReady("Girl");
Mouse.show();
}
EditTypeIng = Type;
}
function DoneOK() {
ReadyTween("X", EditPic, EditPic._x, 1000);
ReadyTween("X", GamePic.Boy, GamePic.Boy._x, 153.9);
ReadyTween("X", GamePic.Girl, GamePic.Girl._x, 138);
GamePic.Boy.onRelease = null;
GamePic.Girl.onRelease = null;
GamePic.Boy._visible = true;
GamePic.Girl._visible = true;
NewButtonReady("DoneOK");
}
function ReadyTween(Type, Mc, Min, Max) {
switch (Type) {
case "X" :
var _local7 = new mx.transitions.Tween(Mc, "_x", Effect, Min, Max, 1, true);
break;
case "Y" :
Effect = mx.transitions.easing.Elastic.easeInOut;
var _local6 = new mx.transitions.Tween(Mc, "_y", Effect, Min, Max, 1, true);
break;
case "XY" :
_local7 = new mx.transitions.Tween(Mc, "_x", Effect, Min, Max, 1, true);
_local6 = new mx.transitions.Tween(Mc, "_y", Effect, Min, Max, 1, true);
break;
case "WH" :
Effect = mx.transitions.easing.Regular.easeInOut;
var _local4 = new mx.transitions.Tween(Mc, "_xscale", Effect, Min, Max, 0.5, true);
var _local5 = new mx.transitions.Tween(Mc, "_yscale", Effect, Min, Max, 0.5, true);
}
_local4.onMotionChanged = function () {
};
_local4.onMotionFinished = function () {
};
}
function XYZ(Mc, W, H, X, Y) {
Effect = mx.transitions.easing.Regular.easeInOut;
Wx = new mx.transitions.Tween(Mc, "_width", Effect, Mc._width, W, 1, true);
Hx = new mx.transitions.Tween(Mc, "_height", Effect, Mc._height, H, 1, true);
Xx = new mx.transitions.Tween(Mc, "_x", Effect, Mc._x, X, 1, true);
Yx = new mx.transitions.Tween(Mc, "_y", Effect, Mc._y, Y, 1, true);
}
function PrintPicReady() {
BackMenuButton._visible = false;
var _local3 = this.createEmptyMovieClip("mc", 0);
var _local4 = new flash.display.BitmapData(700, 500);
_local3.attachBitmap(_local4, 0);
_local4.draw(_root);
printAsBitmap (_local3, "bmovie");
BackMenuButton._visible = true;
_local3.onPress = function () {
removeMovieClip(this);
};
}
function NewBlur(Obj, Num) {
var _local1 = new flash.filters.BlurFilter(10, 10, 2);
_local1.blurY = Num;
Obj.filters = new Array(_local1);
}
function NewGlow(Mc, Alpha) {
var _local3 = new flash.filters.GlowFilter(RGB, Alpha, 15, 15, 1.8, 1, false);
Mc.filters = new Array(_local3);
Mc.onRollOut = function () {
this.filters = null;
};
Mc.onReleaseOutside = function () {
this.filters = null;
};
}
stop();
var MenuClub = ["TF", "MJ", "RH", "XL", "YF", "KZ", "BB", "XZ", "SZ"];
var RoleUrl;
var ColorUrl;
var EditTypeIng = "Girl";
var OneGame;
var RoleFrame = 1;
var TypeIng = "KH";
HomePage();
var TempDetph = 0;
var Effect = mx.transitions.easing.Regular.easeInOut;
var TweenX;
var TweenY;
var TweenWidth;
var TweenHeight;
var TweenXscale;
var TweenYscale;
var RGB = "0xFF0000";
Symbol 25 MovieClip Frame 60 (8 B)
stop();
Symbol 48 MovieClip Frame 1 (302 B)
this.onEnterFrame = function () {
_root.stop();
loading = _root.getBytesLoaded();
total = _root.getBytesTotal();
percent = (loading / total) * 100;
if (loading != total) {
bar.loading_animation.gotoAndStop(int(percent));
} else {
delete this.onEnterFrame;
play();
}
};
stop();
Symbol 48 MovieClip Frame 265 (22 B)
_root.gotoAndStop(5);
Symbol 265 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0 (465 B)
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 266 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0 (1.25 KiB) ●
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 267 MovieClip [__Packages.mx.transitions.Tween] Frame 0 (3.83 KiB) ●
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 268 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0 (1.54 KiB) ●
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 269 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0 (475 B)
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 81 Button (37 B)
on (release) {
_root.MoreGameOK();
}
Symbol 87 Button (79 B)
on (release) {
gotoAndPlay (2);
}
on (release) {
_root.soundstatus = "off";
}
Symbol 91 Button (78 B)
on (release) {
gotoAndPlay (1);
}
on (release) {
_root.soundstatus = "on";
}
Symbol 92 MovieClip Frame 1 (8 B)
stop();
Symbol 92 MovieClip Frame 2 (8 B)
stop();
Instance of Symbol 97 MovieClip in Symbol 98 MovieClip Frame 1 (715 B)
onClipEvent (load) {
_root.soundstatus = "on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame) {
if (_root.soundstatus == "on") {
step = 5;
}
if (_root.soundstatus == "off") {
step = -5;
}
maxvolume = maxvolume + step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
maxvolume = 0;
}
_root.mySound.setVolume(maxvolume);
_root.mySound2.setVolume(maxvolume);
_root.mySound3.setVolume(maxvolume);
_root.mySound4.setVolume(maxvolume);
_root.mySound5.setVolume(maxvolume);
}