Frame 1
var sceneFlow__;
if (sceneFlow__ == null) {
this._lockroot = true;
sceneFlow__ = new ascs.scene.SceneFlow(_root, eval("Null"));
sceneFlow__.changeScene(tf.scene.Trial.LINKAGE_ID);
}
Symbol 61 MovieClip Frame 16
this.gotoAndStop("16");
Symbol 74 MovieClip Frame 16
this.gotoAndStop("16");
Symbol 107 MovieClip [T02B] Frame 1
#initclip 47
Object.registerClass("T02B", tf.entity.tomoe.trial.T02B);
#endinitclip
Symbol 235 MovieClip Frame 16
this.gotoAndStop("16");
Symbol 253 MovieClip [T02A_P01_001] Frame 18
this.gotoAndStop("18");
Symbol 285 MovieClip [T02A_E02] Frame 1
#initclip 32
Object.registerClass("T02A_E02", tf.entity.tomoe.trial.T02A_E02);
#endinitclip
Symbol 285 MovieClip [T02A_E02] Frame 8
this.gotoAndPlay("5");
Symbol 290 MovieClip [T02A_E01] Frame 1
#initclip 33
Object.registerClass("T02A_E01", tf.entity.tomoe.trial.T02A_E01);
#endinitclip
Symbol 290 MovieClip [T02A_E01] Frame 128
this.gotoAndPlay("125");
Symbol 292 MovieClip [T02A] Frame 1
#initclip 34
Object.registerClass("T02A", tf.entity.tomoe.trial.T02A);
#endinitclip
Symbol 308 MovieClip Frame 10
this.gotoAndStop("10");
Symbol 330 MovieClip Frame 17
this.gotoAndStop("17");
Symbol 334 MovieClip [T02_H03] Frame 1
#initclip 35
Object.registerClass("T02_H03", ascs.ctrl.PushButton);
#endinitclip
Symbol 336 MovieClip [T02_H02] Frame 1
#initclip 36
Object.registerClass("T02_H02", ascs.ctrl.PushButton);
#endinitclip
Symbol 338 MovieClip [T02_H01] Frame 1
#initclip 37
Object.registerClass("T02_H01", ascs.ctrl.PushButton);
#endinitclip
Symbol 340 MovieClip [Replay] Frame 1
#initclip 38
Object.registerClass("Replay", ascs.ctrl.PushButton);
#endinitclip
Symbol 342 MovieClip [Start] Frame 1
#initclip 39
Object.registerClass("Start", ascs.ctrl.PushButton);
#endinitclip
Symbol 349 MovieClip [Select02] Frame 1
#initclip 40
Object.registerClass("Select02", ascs.ctrl.PushButton);
#endinitclip
Symbol 351 MovieClip [Select03] Frame 1
#initclip 41
Object.registerClass("Select03", ascs.ctrl.ToggleButton);
#endinitclip
Symbol 356 MovieClip [Icon01] Frame 1
#initclip 42
Object.registerClass("Icon01", tf.entity.Icon);
#endinitclip
Symbol 361 MovieClip [Icon02] Frame 1
#initclip 43
Object.registerClass("Icon02", tf.entity.Icon);
#endinitclip
Symbol 363 MovieClip [Cursor02] Frame 1
#initclip 44
Object.registerClass("Cursor02", tf.entity.Cursor);
#endinitclip
Symbol 365 MovieClip [Cursor01] Frame 1
#initclip 45
Object.registerClass("Cursor01", tf.entity.Cursor);
#endinitclip
Symbol 372 MovieClip [Meter] Frame 1
#initclip 46
Object.registerClass("Meter", tf.entity.Meter);
#endinitclip
Symbol 373 MovieClip [__Packages.ascs.scene.AbstractScene] Frame 0
class ascs.scene.AbstractScene extends MovieClip
{
var linkageID_, sceneFlow_;
function AbstractScene () {
super();
}
function toString() {
return("[AbstractScene]");
}
function getLinkageID() {
return(linkageID_);
}
function getSceneFlow() {
return(sceneFlow_);
}
function onReload(id) {
}
}
Symbol 374 MovieClip [__Packages.ascs.scene.SceneFlow] Frame 0
class ascs.scene.SceneFlow
{
var parent_, context_, stack_;
function SceneFlow (prt, ctx) {
parent_ = prt;
context_ = ctx;
stack_ = new ascs.util.Stack();
}
function toString() {
return("[SceneFlow]");
}
function getContext() {
return(context_);
}
function pushScene(id) {
var _local2 = new Object({scene:null, linkageID:id});
stack_.push(_local2);
}
function popScene() {
if (!stack_.isEmpty()) {
var _local3 = stack_.pop();
_local3.scene.removeMovieClip();
var _local2 = stack_.peek();
if (_local2.scene == null) {
createScene(_local2);
} else {
_local2.scene.enabled = true;
_local2.scene._visible = true;
_local2.scene.play();
_local2.scene.onReload(_local3.linkageID);
}
}
}
function changeScene(id) {
if (!stack_.isEmpty()) {
stack_.pop().scene.removeMovieClip();
}
pushScene(id);
return(createScene(stack_.peek()));
}
function callScene(id) {
if (!stack_.isEmpty()) {
var _local2 = stack_.peek();
_local2.scene.enabled = false;
_local2.scene._visible = false;
_local2.scene.stop();
}
pushScene(id);
return(createScene(stack_.peek()));
}
function createScene(node) {
var _local3 = parent_.getNextHighestDepth();
var _local4 = ("scene_" + _local3) + "_mc";
var _local5 = new Object({linkageID_:node.linkageID, sceneFlow_:this});
node.scene = ascs.scene.AbstractScene(parent_.attachMovie(node.linkageID, _local4, _local3, _local5));
return(node.scene);
}
}
Symbol 375 MovieClip [__Packages.ascs.util.Stack] Frame 0
class ascs.util.Stack
{
var elements_;
function Stack () {
elements_ = new Array();
}
function toString() {
return("[Stack]");
}
function isEmpty() {
return(size() == 0);
}
function size() {
return(elements_.length);
}
function peek() {
if (isEmpty()) {
throw new Error();
}
return(elements_[size() - 1]);
}
function push(elem) {
elements_.push(elem);
}
function pop() {
return(elements_.pop());
}
}
Symbol 376 MovieClip [__Packages.tf.scene.Trial] Frame 0
class tf.scene.Trial extends ascs.scene.AbstractScene
{
var attachMovie, getNextHighestDepth, t02_h01, t02_h02, t02_h03, sel02, sel03, tools_, ic01, ic02, tv_006, fdin, start, fdout, replay, csr01, csr02, tomoe, mtr, end, yell_, gasp_, isEventListenerEmpty, dispatchEvent;
function Trial () {
super();
ascs.util.EventLauncher.initialize(this);
}
function onLoad() {
Mouse.hide();
attachMovie("T02_H01", "t02_h01", getNextHighestDepth(), {enabled:false});
t02_h01.addEventListener("onRelease", mx.utils.Delegate.create(this, t02_h01Released));
attachMovie("T02_H02", "t02_h02", getNextHighestDepth(), {enabled:false});
t02_h02.addEventListener("onRelease", mx.utils.Delegate.create(this, t02_h02Released));
attachMovie("T02_H03", "t02_h03", getNextHighestDepth(), {enabled:false});
t02_h03.addEventListener("onRelease", mx.utils.Delegate.create(this, t02_h03Released));
attachMovie("T02A", "tomoe", getNextHighestDepth());
attachMovie("Meter", "mtr", getNextHighestDepth());
attachMovie("Select02", "sel02", getNextHighestDepth(), {enabled:false});
sel02.addEventListener("onRelease", mx.utils.Delegate.create(this, select02Released));
attachMovie("Select03", "sel03", getNextHighestDepth(), {enabled:false});
sel03.addEventListener("onRelease", mx.utils.Delegate.create(this, select03Released));
attachMovie("Icon01", "ic01", getNextHighestDepth(), {enabled:false});
attachMovie("Icon02", "ic02", getNextHighestDepth(), {_visible:false, enabled:false});
tools_ = new ascs.ctrl.ButtonGroup();
tools_.addButton(ic01);
tools_.addButton(ic02);
tv_006 = new ascs.media.SoundClip("TV_006");
tv_006.addEventListener("soundclipStarted", mx.utils.Delegate.create(this, gaspStarted));
var _local2 = 14;
while (_local2 < 41) {
this["tv_0" + _local2] = new ascs.media.SoundClip("TV_0" + _local2);
if (_local2 < 16) {
this["tv_0" + _local2].addEventListener("soundclipStarted", mx.utils.Delegate.create(this, yellStarted));
} else {
this["tv_0" + _local2].addEventListener("soundclipStarted", mx.utils.Delegate.create(this, gaspStarted));
}
_local2++;
}
attachMovie("FadeIn", "fdin", getNextHighestDepth());
fdin.stop();
attachMovie("Start", "start", getNextHighestDepth());
start.addEventListener("onRelease", mx.utils.Delegate.create(this, startReleased));
attachMovie("FadeOut", "fdout", getNextHighestDepth(), {_visible:false});
fdout.stop();
attachMovie("End", "end", getNextHighestDepth(), {_visible:false});
attachMovie("Replay", "replay", getNextHighestDepth(), {_visible:false, enabled:false});
replay.addEventListener("onRelease", mx.utils.Delegate.create(this, replayReleased));
attachMovie("Cursor01", "csr01", getNextHighestDepth(), {_visible:false});
ic01.setCursor(csr01);
ic01.doClick();
attachMovie("Cursor02", "csr02", getNextHighestDepth(), {_visible:false});
ic02.setCursor(csr02);
}
function onUnload() {
for (var _local2 in this) {
if (this[_local2] instanceof ascs.media.SoundClip) {
this[_local2].removeSoundClip();
}
}
}
function beginTrial() {
for (var _local2 in this) {
if (this[_local2] instanceof MovieClip) {
this[_local2]._alpha = 100;
this[_local2].enabled = true;
this[_local2]._visible = true;
}
}
attachMovie("T02A", "tomoe", tomoe.getDepth());
mtr.setValue(1);
if (sel03.isSelected()) {
sel03.doClick();
}
ic02.enabled = false;
ic02._visible = false;
if (ic02.isSelected()) {
ic01.doClick();
} else {
csr02._visible = false;
}
fdin._visible = false;
fdout._visible = false;
end._visible = false;
replay.enabled = false;
replay._visible = false;
}
function endTrial() {
for (var _local2 in this) {
if (this[_local2] instanceof MovieClip) {
this[_local2].enabled = false;
}
}
fdout._visible = true;
fdout.gotoAndPlay(1);
fdout.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this._parent.showEnd();
this._parent.showReplay();
this._parent.fdin._visible = true;
this._parent.fdin.gotoAndStop(1);
this._visible = false;
this.stop();
this.onEnterFrame = null;
}
};
}
function showReplay() {
replay._visible = true;
var _local2 = new mx.transitions.TransitionManager(replay);
_local2.startTransition({type:mx.transitions.Fade, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.None.easeNone});
_local2.addEventListener("allTransitionsInDone", ascs.util.ListenerFunction.enableMovieClip);
}
function showEnd() {
end._visible = true;
var _local2 = new mx.transitions.TransitionManager(end);
_local2.startTransition({type:mx.transitions.Fade, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.None.easeNone});
_local2.addEventListener("allTransitionsInDone", ascs.util.ListenerFunction.enableMovieClip);
}
function isYellPlaying() {
if (fdin._visible) {
return(true);
}
return(((yell_ == null) ? false : (yell_.isPlaying())));
}
function isGaspPlaying() {
if (gasp_ == null) {
return(false);
}
return((gasp_.isPlaying() ? (gasp_.getPositionRatio() < GASP_POSITION_RATIO) : false));
}
function yellStop() {
if (yell_ != null) {
yell_.stop();
}
}
function gaspStop() {
if (gasp_ != null) {
gasp_.stop();
}
}
function t02_h01Released(evt) {
if (isEventListenerEmpty("t02_h01Released")) {
return(undefined);
}
dispatchEvent({type:"t02_h01Released"});
}
function t02_h02Released(evt) {
if (isEventListenerEmpty("t02_h02Released")) {
return(undefined);
}
dispatchEvent({type:"t02_h02Released"});
}
function t02_h03Released(evt) {
if (isEventListenerEmpty("t02_h03Released")) {
return(undefined);
}
dispatchEvent({type:"t02_h03Released"});
}
function select02Released(evt) {
if (isEventListenerEmpty("select02Released")) {
return(undefined);
}
evt.target.enabled = false;
var _local2 = new mx.transitions.TransitionManager(evt.target);
_local2.startTransition({type:mx.transitions.Fade, direction:mx.transitions.Transition.OUT, duration:1, easing:mx.transitions.easing.None.easeNone});
_local2.addEventListener("allTransitionsOutDone", ascs.util.ListenerFunction.hideMovieClip);
dispatchEvent({type:"select02Released"});
}
function select03Released(evt) {
if (isEventListenerEmpty("select03Released")) {
return(undefined);
}
evt.target.enabled = false;
var _local2 = new mx.transitions.TransitionManager(evt.target);
_local2.startTransition({type:mx.transitions.Fade, direction:mx.transitions.Transition.OUT, duration:1, easing:mx.transitions.easing.None.easeNone});
_local2.addEventListener("allTransitionsOutDone", ascs.util.ListenerFunction.hideMovieClip);
ic02._visible = true;
var _local3 = new mx.transitions.TransitionManager(ic02);
_local3.startTransition({type:mx.transitions.Fade, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.Back.easeIn});
_local3.addEventListener("allTransitionsInDone", ascs.util.ListenerFunction.enableMovieClip);
dispatchEvent({type:"select03Released"});
}
function startReleased(evt) {
var _local2 = new mx.transitions.TransitionManager(evt.target);
_local2.startTransition({type:mx.transitions.Fade, direction:mx.transitions.Transition.OUT, duration:1, easing:mx.transitions.easing.None.easeNone});
_local2.addEventListener("allTransitionsOutDone", ascs.util.ListenerFunction.removeMovieClip);
fdin.play();
fdin.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this._parent.beginTrial();
this.stop();
this.onEnterFrame = null;
}
};
}
function replayReleased(evt) {
var _local2 = new mx.transitions.TransitionManager(evt.target);
_local2.startTransition({type:mx.transitions.Fade, direction:mx.transitions.Transition.OUT, duration:1, easing:mx.transitions.easing.None.easeNone});
_local2.addEventListener("allTransitionsOutDone", ascs.util.ListenerFunction.hideMovieClip);
var _local3 = new mx.transitions.TransitionManager(end);
_local3.startTransition({type:mx.transitions.Fade, direction:mx.transitions.Transition.OUT, duration:1, easing:mx.transitions.easing.None.easeNone});
_local3.addEventListener("allTransitionsOutDone", ascs.util.ListenerFunction.hideMovieClip);
fdin.play();
fdin.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this._parent.beginTrial();
this.stop();
this.onEnterFrame = null;
}
};
}
function yellStarted(evt) {
yell_ = evt.target;
}
function gaspStarted(evt) {
if (yell_ != null) {
yell_.stop();
}
gasp_ = evt.target;
}
static var LINKAGE_ID = "__Packages.tf.scene.Trial";
static var CONSTRUCTOR = tf.scene.Trial;
static var IS_REGISTERED = Object.registerClass(LINKAGE_ID, CONSTRUCTOR);
static var PIXEL_DISSOLVE_DURATION = 1.5;
static var GASP_POSITION_RATIO = 0.7;
}
Symbol 377 MovieClip [__Packages.ascs.ctrl.ButtonGroup] Frame 0
class ascs.ctrl.ButtonGroup
{
var buttons_, ignores_;
function ButtonGroup () {
buttons_ = new mx.utils.CollectionImpl();
ignores_ = new mx.utils.CollectionImpl();
}
function toString() {
return("[ButtonGroup]");
}
function addButton(btn) {
btn.addEventListener("onRelease", this);
buttons_.addItem(btn);
}
function removeButton(btn) {
btn.removeEventListener("onRelease", this);
buttons_.removeItem(btn);
}
function getButtons() {
return(buttons_);
}
function onRelease(evt) {
ignores_.addItem(evt.target);
var _local3 = buttons_.getIterator();
while (_local3.hasNext()) {
var _local2 = ascs.ctrl.ToggleButton(_local3.next());
if (!ignores_.contains(_local2)) {
if (_local2.isSelected()) {
_local2.doClick();
}
}
}
ignores_.removeItem(evt.target);
}
}
Symbol 378 MovieClip [__Packages.mx.utils.Collection] Frame 0
interface mx.utils.Collection
{
}
Symbol 379 MovieClip [__Packages.mx.utils.Iterator] Frame 0
interface mx.utils.Iterator
{
}
Symbol 380 MovieClip [__Packages.mx.utils.CollectionImpl] Frame 0
class mx.utils.CollectionImpl extends Object implements mx.utils.Collection
{
var _items;
function CollectionImpl () {
super();
_items = new Array();
}
function addItem(item) {
var _local2 = false;
if (item != null) {
_items.push(item);
_local2 = true;
}
return(_local2);
}
function clear() {
_items = new Array();
}
function contains(item) {
return(internalGetItem(item) > -1);
}
function getItemAt(index) {
return(_items[index]);
}
function getIterator() {
return(new mx.utils.IteratorImpl(this));
}
function getLength() {
return(_items.length);
}
function isEmpty() {
return(_items.length == 0);
}
function removeItem(item) {
var _local2 = false;
var _local3 = internalGetItem(item);
if (_local3 > -1) {
_items.splice(_local3, 1);
_local2 = true;
}
return(_local2);
}
function internalGetItem(item) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < _items.length) {
if (_items[_local2] == item) {
_local3 = _local2;
break;
}
_local2++;
}
return(_local3);
}
}
Symbol 381 MovieClip [__Packages.mx.utils.IteratorImpl] Frame 0
class mx.utils.IteratorImpl implements mx.utils.Iterator
{
var _collection, _cursor;
function IteratorImpl (coll) {
_collection = coll;
_cursor = 0;
}
function hasNext() {
return(_cursor < _collection.getLength());
}
function next() {
return(_collection.getItemAt(_cursor++));
}
}
Symbol 382 MovieClip [__Packages.ascs.ctrl.PushButton] Frame 0
class ascs.ctrl.PushButton extends MovieClip
{
var isSelected_, dispatchEvent;
function PushButton () {
super();
ascs.util.EventLauncher.initialize(this);
isSelected_ = false;
}
function toString() {
return("[PushButton]");
}
function onPress() {
dispatchEvent({type:"onPress"});
}
function onRelease() {
isSelected_ = true;
dispatchEvent({type:"onRelease"});
isSelected_ = false;
}
function onReleaseOutside() {
dispatchEvent({type:"onReleaseOutside"});
}
function onRollOut() {
dispatchEvent({type:"onRollOut"});
}
function onRollOver() {
dispatchEvent({type:"onRollOver"});
}
function doClick() {
onRollOver();
onPress();
onRelease();
}
function isSelected() {
return(isSelected_);
}
}
Symbol 383 MovieClip [__Packages.ascs.util.EventLauncher] Frame 0
class ascs.util.EventLauncher
{
function EventLauncher () {
}
static function initialize(obj) {
mx.events.EventDispatcher.initialize(obj);
if (instance__ == null) {
instance__ = new ascs.util.EventLauncher();
}
obj.isEventListenerEmpty = instance__.isEventListenerEmpty;
obj.getEventListenerLength = instance__.getEventListenerLength;
obj.getEventListeners = instance__.getEventListeners;
}
function isEventListenerEmpty(evtTyp) {
return(getEventListenerLength(evtTyp) == 0);
}
function getEventListenerLength(evtTyp) {
return(((this["__q_" + evtTyp] == null) ? 0 : (this["__q_" + evtTyp].length)));
}
function getEventListeners(evtTyp) {
return(this["__q_" + evtTyp]);
}
static var instance__ = null;
}
Symbol 384 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 385 MovieClip [__Packages.ascs.ctrl.ToggleButton] Frame 0
class ascs.ctrl.ToggleButton extends ascs.ctrl.PushButton
{
var isSelected_, gotoAndStop, dispatchEvent;
function ToggleButton () {
super();
}
function toString() {
return("[ToggleButton]");
}
function onLoad() {
if (!isSelected_) {
(gotoAndStop("up"));// not popped
} else {
(gotoAndStop("down"));// not popped
}
}
function onPress() {
(gotoAndStop("down"));// not popped
dispatchEvent({type:"onPress"});
}
function onRelease() {
isSelected_ = !isSelected_;
if (!isSelected_) {
(gotoAndStop("up_over"));// not popped
} else {
(gotoAndStop("down_over"));// not popped
}
dispatchEvent({type:"onRelease"});
}
function onReleaseOutside() {
if (!isSelected_) {
(gotoAndStop("up"));// not popped
} else {
(gotoAndStop("down"));// not popped
}
dispatchEvent({type:"onReleaseOutside"});
}
function onRollOut() {
if (!isSelected_) {
(gotoAndStop("up"));// not popped
} else {
(gotoAndStop("down"));// not popped
}
dispatchEvent({type:"onRollOut"});
}
function onRollOver() {
if (!isSelected_) {
(gotoAndStop("up_over"));// not popped
} else {
(gotoAndStop("down_over"));// not popped
}
dispatchEvent({type:"onRollOver"});
}
}
Symbol 386 MovieClip [__Packages.ascs.media.SoundClip] Frame 0
class ascs.media.SoundClip
{
var target_, sound_, linkageID_, secondOffset_, loop_, isPlaying_, dispatchEvent;
function SoundClip (id) {
mx.transitions.OnEnterFrameBeacon.init();
ascs.util.EventLauncher.initialize(this);
var _local3 = _root.getNextHighestDepth();
var _local4 = ("sound_" + _local3) + "_mc";
target_ = _root.createEmptyMovieClip(_local4, _local3);
sound_ = new Sound(target_);
sound_.attachSound((linkageID_ = id));
secondOffset_ = 0;
loop_ = 0;
isPlaying_ = false;
}
function toString() {
return("[SoundClip]");
}
function removeSoundClip() {
stop();
target_.removeMovieClip();
}
function getLinkageID() {
return(linkageID_);
}
function setVolume(vol) {
sound_.setVolume(vol);
}
function getVolume() {
return(sound_.getVolume());
}
function setPan(bal) {
sound_.setPan(bal);
}
function getPan() {
return(sound_.getPan());
}
function setTransform(trans) {
sound_.setTransform(trans);
}
function getTransform() {
return(sound_.getTransform());
}
function getDuration() {
return(((sound_ == null) ? 0 : (sound_.duration)));
}
function setPosition(offset) {
if (offset < 0) {
offset = 0;
} else if (offset > sound_.duration) {
offset = sound_.duration;
}
secondOffset_ = offset;
if (isPlaying()) {
sound_.start(secondOffset_);
}
}
function getPosition() {
return(((sound_ == null) ? 0 : (sound_.position)));
}
function getPositionRatio() {
return(getPosition() / getDuration());
}
function isPlaying() {
return(isPlaying_);
}
function start(lp) {
if (!isPlaying()) {
if (sound_.onSoundComplete == null) {
sound_.onSoundComplete = mx.utils.Delegate.create(this, soundclipCompleted);
}
if (sound_.position == sound_.duration) {
secondOffset_ = 0;
}
if (lp > 0) {
loop_ = lp;
}
sound_.start(secondOffset_);
isPlaying_ = true;
MovieClip.addListener(this);
dispatchEvent({type:"soundclipStarted"});
}
}
function pause() {
if (isPlaying()) {
sound_.stop(linkageID_);
secondOffset_ = sound_.position;
isPlaying_ = false;
MovieClip.removeListener(this);
dispatchEvent({type:"soundclipPaused"});
}
}
function stop() {
if (isPlaying()) {
sound_.stop(linkageID_);
secondOffset_ = 0;
isPlaying_ = false;
MovieClip.removeListener(this);
dispatchEvent({type:"soundclipStopped"});
}
}
function onEnterFrame() {
dispatchEvent({type:"soundclipProgressed"});
}
function soundclipCompleted() {
if (loop_ == 0) {
isPlaying_ = false;
MovieClip.removeListener(this);
dispatchEvent({type:"soundclipCompleted"});
} else {
loop_--;
sound_.start();
}
}
}
Symbol 387 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
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 388 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
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 389 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 390 MovieClip [__Packages.mx.transitions.TransitionManager] Frame 0
class mx.transitions.TransitionManager
{
var _transitions, removeEventListener, _content, addEventListener, _contentAppearance, _innerBounds, _outerBounds, _width, _height, _triggerEvent, dispatchEvent;
function TransitionManager (content) {
this.content = (content);
_transitions = {};
}
function set content(c) {
removeEventListener("allTransitionsInDone", _content);
removeEventListener("allTransitionsOutDone", _content);
_content = c;
saveContentAppearance();
addEventListener("allTransitionsInDone", _content);
addEventListener("allTransitionsOutDone", _content);
//return(content);
}
function get content() {
return(_content);
}
function get transitionsList() {
return(_transitions);
}
function get numTransitions() {
var _local2 = 0;
for (var _local3 in _transitions) {
_local2++;
}
return(_local2);
}
function get numInTransitions() {
var _local3 = 0;
var _local2 = _transitions;
for (var _local4 in _local2) {
if (!_local2[_local4].direction) {
_local3++;
}
}
return(_local3);
}
function get numOutTransitions() {
var _local3 = 0;
var _local2 = _transitions;
for (var _local4 in _local2) {
if (_local2[_local4].direction) {
_local3++;
}
}
return(_local3);
}
function get contentAppearance() {
return(_contentAppearance);
}
static function start(content, transParams) {
if (content.__transitionManager == undefined) {
content.__transitionManager = new mx.transitions.TransitionManager(content);
}
if (transParams.direction == 1) {
content.__transitionManager._triggerEvent = "hide";
} else {
content.__transitionManager._triggerEvent = "reveal";
}
return(content.__transitionManager.startTransition(transParams));
}
function startTransition(transParams) {
removeTransition(findTransition(transParams));
var _local3 = transParams.type;
var _local2 = new _local3[undefined](_content, transParams, this);
addTransition(_local2);
_local2.start();
return(_local2);
}
function addTransition(trans) {
trans.ID = ++IDCount;
_transitions[trans.ID] = trans;
return(trans);
}
function removeTransition(trans) {
if (_transitions[trans.ID] == undefined) {
return(false);
}
trans.cleanUp();
return(delete _transitions[trans.ID]);
}
function findTransition(transParams) {
var _local2;
for (var _local4 in _transitions) {
_local2 = _transitions[_local4];
if (_local2.type == transParams.type) {
return(_local2);
}
}
return(undefined);
}
function removeAllTransitions() {
for (var _local2 in _transitions) {
_transitions[_local2].cleanUp();
removeTransition(_transitions[_local2]);
}
}
function saveContentAppearance() {
var _local2 = _content;
if (_contentAppearance == undefined) {
var _local3 = (_contentAppearance = {});
for (var _local4 in _visualPropList) {
_local3[_local4] = _local2[_local4];
}
_local3.colorTransform = new Color(_local2).getTransform();
}
_innerBounds = _local2.getBounds(targetPath(_local2));
_outerBounds = _local2.getBounds(targetPath(_local2._parent));
_width = _local2._width;
_height = _local2._height;
}
function restoreContentAppearance() {
var _local2 = _content;
var _local3 = _contentAppearance;
for (var _local4 in _visualPropList) {
_local2[_local4] = _local3[_local4];
}
new Color(_local2).setTransform(_local3.colorTransform);
}
function transitionInDone(e) {
removeTransition(e.target);
if (numInTransitions == 0) {
var _local2;
_local2 = _content._visible;
if ((_triggerEvent == "hide") || (_triggerEvent == "hideChild")) {
_content._visible = false;
}
if (_local2) {
dispatchEvent({type:"allTransitionsInDone", target:this});
}
}
}
function transitionOutDone(e) {
removeTransition(e.target);
if (numOutTransitions == 0) {
restoreContentAppearance();
var _local2;
_local2 = _content._visible;
if (_local2 && ((_triggerEvent == "hide") || (_triggerEvent == "hideChild"))) {
_content._visible = false;
}
updateAfterEvent();
if (_local2) {
dispatchEvent({type:"allTransitionsOutDone", target:this});
}
}
}
function toString() {
return("[TransitionManager]");
}
static var version = "1.1.0.52";
static var IDCount = 0;
var type = mx.transitions.TransitionManager;
var className = "TransitionManager";
var _visualPropList = {_x:null, _y:null, _xscale:null, _yscale:null, _alpha:null, _rotation:null};
static var __mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.TransitionManager.prototype);
}
Symbol 391 MovieClip [__Packages.mx.transitions.Transition] Frame 0
class mx.transitions.Transition
{
var _manager, removeEventListener, addEventListener, _content, _twn, _easing, _progress, dispatchEvent, _innerBounds, _outerBounds, _width, _height;
function Transition (content, transParams, manager) {
if (!arguments.length) {
return;
}
init(content, transParams, manager);
}
function set manager(mgr) {
if (_manager != undefined) {
removeEventListener("transitionInDone", _manager);
removeEventListener("transitionOutDone", _manager);
removeEventListener("transitionProgress", _manager);
}
_manager = mgr;
addEventListener("transitionInDone", _manager);
addEventListener("transitionOutDone", _manager);
addEventListener("transitionProgress", _manager);
//return(manager);
}
function get manager() {
return(_manager);
}
function set content(c) {
if (typeof(c) == "movieclip") {
_content = c;
_twn.obj = c;
}
//return(content);
}
function get content() {
return(_content);
}
function set direction(direction) {
_direction = (direction ? 1 : 0);
//return(this.direction);
}
function get direction() {
return(_direction);
}
function set duration(d) {
if (d) {
_duration = d;
_twn.duration = d;
}
//return(duration);
}
function get duration() {
return(_duration);
}
function set easing(e) {
if (typeof(e) == "string") {
e = eval (e);
} else if (e == undefined) {
e = _noEase;
}
_easing = e;
_twn.easing = e;
//return(easing);
}
function get easing() {
return(_easing);
}
function set progress(p) {
if (_progress == p) {
return;
}
_progress = p;
if (_direction) {
_render(1 - p);
} else {
_render(p);
}
dispatchEvent({type:"transitionProgress", target:this, progress:p});
//return(progress);
}
function get progress() {
return(_progress);
}
function init(content, transParams, manager) {
this.content = (content);
direction = (transParams.direction);
duration = (transParams.duration);
easing = (transParams.easing);
this.manager = (manager);
_innerBounds = this.manager._innerBounds;
_outerBounds = this.manager._outerBounds;
_width = this.manager._width;
_height = this.manager._height;
_resetTween();
}
function toString() {
return(("[Transition " + className) + "]");
}
function start() {
content._visible = true;
_twn.start();
}
function stop() {
_twn.fforward();
_twn.stop();
}
function cleanUp() {
removeEventListener("transitionInDone", _manager);
removeEventListener("transitionOutDone", _manager);
removeEventListener("transitionProgress", _manager);
stop();
}
function getNextHighestDepthMC(mc) {
var _local4 = mc.getNextHighestDepth();
if (_local4 != undefined) {
return(_local4);
}
_local4 = -1;
var _local3;
var _local1;
for (var _local5 in mc) {
_local1 = mc[_local5];
if ((typeof(_local1) == "movieclip") && (_local1._parent == mc)) {
_local3 = _local1.getDepth();
if (_local3 > _local4) {
_local4 = _local3;
}
}
}
return(_local4 + 1);
}
function drawBox(mc, x, y, w, h) {
mc.moveTo(x, y);
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
}
function drawCircle(mc, x, y, r) {
mc.moveTo(x + r, y);
mc.curveTo(r + x, (0.414213562373095 * r) + y, (0.707106781186547 * r) + x, (0.707106781186547 * r) + y);
mc.curveTo((0.414213562373095 * r) + x, r + y, x, r + y);
mc.curveTo((-0.414213562373095 * r) + x, r + y, (-0.707106781186547 * r) + x, (0.707106781186547 * r) + y);
mc.curveTo((-r) + x, (0.414213562373095 * r) + y, (-r) + x, y);
mc.curveTo((-r) + x, (-0.414213562373095 * r) + y, (-0.707106781186547 * r) + x, (-0.707106781186547 * r) + y);
mc.curveTo((-0.414213562373095 * r) + x, (-r) + y, x, (-r) + y);
mc.curveTo((0.414213562373095 * r) + x, (-r) + y, (0.707106781186547 * r) + x, (-0.707106781186547 * r) + y);
mc.curveTo(r + x, (-0.414213562373095 * r) + y, r + x, y);
}
function _render(p) {
}
function _resetTween() {
_twn.stop();
_twn.removeListener(this);
_twn = new mx.transitions.Tween(this, null, easing, 0, 1, duration, true);
_twn.stop();
_twn.prop = "progress";
_twn.addListener(this);
}
function _noEase(t, b, c, d) {
return(((c * t) / d) + b);
}
function onMotionFinished(src) {
if (direction) {
dispatchEvent({type:"transitionOutDone", target:this});
} else {
dispatchEvent({type:"transitionInDone", target:this});
}
}
static var version = "1.1.0.52";
static var IN = 0;
static var OUT = 1;
var type = mx.transitions.Transition;
var className = "Transition";
var _direction = 0;
var _duration = 2;
static var __mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.Transition.prototype);
}
Symbol 392 MovieClip [__Packages.mx.transitions.Tween] Frame 0
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 393 MovieClip [__Packages.mx.transitions.Fade] Frame 0
class mx.transitions.Fade extends mx.transitions.Transition
{
var _alphaFinal, __get__manager, _content;
function Fade (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
super.init(content, transParams, manager);
_alphaFinal = __get__manager().__get__contentAppearance()._alpha;
}
function _render(p) {
_content._alpha = _alphaFinal * p;
}
static var version = "1.1.0.52";
var type = mx.transitions.Fade;
var className = "Fade";
}
Symbol 394 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 395 MovieClip [__Packages.ascs.util.ListenerFunction] Frame 0
class ascs.util.ListenerFunction
{
function ListenerFunction () {
}
static function enableMovieClip(evt) {
if (evt.target instanceof MovieClip) {
evt.target.enabled = true;
} else if (evt.target instanceof mx.transitions.TransitionManager) {
evt.target.content.enabled = true;
}
evt.target.removeEventListener(evt.type, arguments.callee);
}
static function hideMovieClip(evt) {
if (evt.target instanceof MovieClip) {
evt.target._visible = false;
} else if (evt.target instanceof mx.transitions.TransitionManager) {
evt.target.content._visible = false;
}
evt.target.removeEventListener(evt.type, arguments.callee);
}
static function removeMovieClip(evt) {
if (evt.target instanceof MovieClip) {
evt.target.removeMovieClip();
} else if (evt.target instanceof mx.transitions.TransitionManager) {
evt.target.content.removeMovieClip();
evt.target.removeEventListener(evt.type, arguments.callee);
}
}
}
Symbol 396 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 397 MovieClip [__Packages.tf.entity.tomoe.trial.T02A_E02] Frame 0
class tf.entity.tomoe.trial.T02A_E02 extends MovieClip
{
var _parent, attachMovie, getNextHighestDepth, onMouseUp;
function T02A_E02 () {
super();
}
function onLoad() {
if (_parent.sel03.isSelected()) {
attachMovie("T02_J02", "juice", getNextHighestDepth());
} else {
attachMovie("T02A_P03_Blur", "pants", getNextHighestDepth());
}
if (_parent.mtr.getAmountToMaximumCount() == 1) {
_parent.tv_031.start();
_parent.tv_031.addEventListener("soundclipCompleted", mx.utils.Delegate.create(this, tv_031Completed));
} else {
_parent.tv_040.start();
_parent.tv_040.addEventListener("soundclipCompleted", mx.utils.Delegate.create(this, gaspCompleted));
}
}
function tv_031Completed(evt) {
_parent.tv_032.start();
_parent.tv_032.addEventListener("soundclipCompleted", mx.utils.Delegate.create(this, gaspCompleted));
evt.target.removeEventListener(evt.type, arguments.caller);
}
function gaspCompleted(evt) {
onMouseUp = function () {
this._parent.endTrial();
this.onMouseUp = null;
};
evt.target.removeEventListener(evt.type, arguments.caller);
}
}
Symbol 398 MovieClip [__Packages.tf.entity.tomoe.trial.T02A_E01] Frame 0
class tf.entity.tomoe.trial.T02A_E01 extends MovieClip
{
var _parent, attachMovie, getNextHighestDepth, onMouseUp;
function T02A_E01 () {
super();
}
function onLoad() {
if (_parent.sel03.isSelected()) {
attachMovie("T02_J02", "juice", getNextHighestDepth());
} else {
attachMovie("T02A_P03_Blur", "pants", getNextHighestDepth());
}
_parent.yellStop();
_parent.gaspStop();
if (_parent.mtr.getAmountToMaximumCount() == 1) {
_parent.tv_029.start();
_parent.tv_029.addEventListener("soundclipCompleted", mx.utils.Delegate.create(this, tv_029Completed));
} else {
var _local2 = new Array();
_local2.push(_parent.tv_037);
_local2.push(_parent.tv_038);
_local2.push(_parent.tv_039);
var _local3 = Math.floor(Math.random() * _local2.length);
_local2[_local3].start();
_local2[_local3].addEventListener("soundclipCompleted", mx.utils.Delegate.create(this, gaspCompleted));
}
}
function tv_029Completed(evt) {
_parent.tv_030.start();
_parent.tv_030.addEventListener("soundclipCompleted", mx.utils.Delegate.create(this, gaspCompleted));
evt.target.removeEventListener(evt.type, arguments.caller);
}
function gaspCompleted(evt) {
onMouseUp = function () {
this._parent.mtr.zero();
this._parent.attachMovie("T02A_E02", "tomoe", this.getDepth());
};
evt.target.removeEventListener(evt.type, arguments.caller);
}
}
Symbol 399 MovieClip [__Packages.tf.entity.tomoe.trial.T02A] Frame 0
class tf.entity.tomoe.trial.T02A extends MovieClip
{
var _parent, attachMovie, getNextHighestDepth, intervalID_, getDepth, pants, juice, _totalframes, _currentframe;
function T02A () {
super();
}
function onLoad() {
_parent.addEventListener("t02_h01Released", this);
_parent.addEventListener("t02_h02Released", this);
_parent.addEventListener("t02_h03Released", this);
_parent.mtr.addEventListener("sexobjectOrgasmed", this);
_parent.mtr.addEventListener("meterIncreasedAtLow", this);
_parent.mtr.addEventListener("meterIncreasedAtMiddle", this);
_parent.mtr.addEventListener("meterIncreasedAtHigh", this);
_parent.addEventListener("select02Released", this);
if (_parent.sel03.isSelected()) {
if (_parent.mtr.hasAmountToMaximum()) {
attachMovie("T02_J02", "juice", getNextHighestDepth());
} else if (_parent.mtr.isMiddle()) {
attachMovie("T02_J01", "juice", getNextHighestDepth());
} else if (_parent.mtr.isHigh()) {
attachMovie("T02_J02", "juice", getNextHighestDepth());
}
} else {
_parent.addEventListener("select03Released", this);
if (_parent.mtr.hasAmountToMaximum()) {
attachMovie("T02A_P03", "pants", getNextHighestDepth());
} else if (_parent.mtr.isLow()) {
attachMovie("T02A_P01", "pants", getNextHighestDepth());
} else if (_parent.mtr.isMiddle()) {
attachMovie("T02A_P02", "pants", getNextHighestDepth());
} else if (_parent.mtr.isHigh()) {
attachMovie("T02A_P03", "pants", getNextHighestDepth());
}
}
intervalID_ = setInterval(this, "yell", YELL_INTERVAL);
}
function onUnload() {
_parent.removeEventListener("t02_h01Released", this);
_parent.removeEventListener("t02_h02Released", this);
_parent.removeEventListener("t02_h03Released", this);
_parent.mtr.removeEventListener("sexobjectOrgasmed", this);
_parent.mtr.removeEventListener("meterIncreasedAtLow", this);
_parent.mtr.removeEventListener("meterIncreasedAtMiddle", this);
_parent.mtr.removeEventListener("meterIncreasedAtHigh", this);
_parent.removeEventListener("select02Released", this);
if (!_parent.sel03.isSelected()) {
_parent.removeEventListener("select03Released", this);
}
clearInterval(intervalID_);
}
function t02_h01Released(evt) {
_parent.mtr.increaseWithEvent(EROGENOUS_ZONE_RELEASED_PLEASURE);
}
function t02_h02Released(evt) {
_parent.mtr.increaseWithEvent(EROGENOUS_ZONE_RELEASED_PLEASURE);
}
function t02_h03Released(evt) {
_parent.mtr.increaseWithEvent(EROGENOUS_ZONE_RELEASED_PLEASURE);
}
function sexobjectOrgasmed(evt) {
_parent.attachMovie("T02A_E01", "tomoe", getDepth());
}
function meterIncreasedAtLow(evt) {
if (!_parent.isGaspPlaying()) {
var _local3 = new Array();
_local3.push(_parent.tv_016);
_local3.push(_parent.tv_017);
if (_parent.ic02.isSelected()) {
_local3.push(_parent.tv_024);
_local3.push(_parent.tv_025);
}
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].isPlaying()) {
_local3.splice(_local2, 1);
}
_local2++;
}
if (_local3.length != 0) {
_local3[Math.floor(Math.random() * _local3.length)].start();
}
}
var _local4 = null;
if (_parent.t02_h01.isSelected()) {
switch (Math.round(Math.random())) {
case 0 :
_local4 = _parent.attachMovie("T02A_L01", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
break;
case 1 :
_local4 = _parent.attachMovie("T02A_L02", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
}
} else if (_parent.t02_h02.isSelected()) {
switch (Math.round(Math.random())) {
case 0 :
_local4 = _parent.attachMovie("T02A_R01", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
break;
case 1 :
_local4 = _parent.attachMovie("T02A_R02", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
}
} else if (_parent.t02_h03.isSelected()) {
switch (Math.round(Math.random())) {
case 0 :
_local4 = _parent.attachMovie("T02A_S01", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
break;
case 1 :
_local4 = _parent.attachMovie("T02A_S02", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
}
}
if (evt.target.hasAmountToMaximum()) {
if (_parent.sel03.isSelected()) {
_local4.attachMovie("T02_J02_Blur", "juice", _local4.getNextHighestDepth());
} else {
_local4.attachMovie("T02A_P03_Blur", "pants", _local4.getNextHighestDepth());
}
} else if (!_parent.sel03.isSelected()) {
_local4.attachMovie("T02A_P01_Blur", "pants", _local4.getNextHighestDepth());
}
}
function meterIncreasedAtMiddle(evt) {
if ((!evt.target.hasAmountToMaximum()) && (evt.hasPassedThroughLow)) {
_parent.gaspStop();
_parent.tv_027.start();
} else if (!_parent.isGaspPlaying()) {
var _local3 = new Array();
_local3.push(_parent.tv_018);
_local3.push(_parent.tv_019);
_local3.push(_parent.tv_020);
if (_parent.ic02.isSelected()) {
_local3.push(_parent.tv_026);
}
if (evt.target.hasAmountToMaximum()) {
_local3.push(_parent.tv_034);
_local3.push(_parent.tv_035);
}
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].isPlaying()) {
_local3.splice(_local2, 1);
}
_local2++;
}
if (_local3.length != 0) {
_local3[Math.floor(Math.random() * _local3.length)].start();
}
}
var _local4;
if (_parent.t02_h01.isSelected()) {
_local4 = _parent.attachMovie("T02A_L02", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
} else if (_parent.t02_h02.isSelected()) {
_local4 = _parent.attachMovie("T02A_R02", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
} else if (_parent.t02_h03.isSelected()) {
switch (Math.round(Math.random())) {
case 0 :
_local4 = _parent.attachMovie("T02A_S02", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
break;
case 1 :
_local4 = _parent.attachMovie("T02A_S03", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
}
}
if (evt.target.hasAmountToMaximum()) {
if (_parent.sel03.isSelected()) {
_local4.attachMovie("T02_J02_Blur", "juice", _local4.getNextHighestDepth());
} else {
_local4.attachMovie("T02A_P03_Blur", "pants", _local4.getNextHighestDepth());
}
} else if (evt.hasPassedThroughLow) {
if (_parent.sel03.isSelected()) {
_local4.attachMovie("T02_J01_001", "juice", _local4.getNextHighestDepth(), {onEnterFrame:transitionToT02_J01});
} else {
_local4.attachMovie("T02A_P01_001", "pants", _local4.getNextHighestDepth(), {onEnterFrame:transitionToT02A_P02});
}
} else if (_parent.sel03.isSelected()) {
_local4.attachMovie("T02_J01_Blur", "juice", _local4.getNextHighestDepth());
} else {
_local4.attachMovie("T02A_P02_Blur", "pants", _local4.getNextHighestDepth());
}
}
function meterIncreasedAtHigh(evt) {
if ((!evt.target.hasAmountToMaximum()) && (evt.hasPassedThroughMiddle)) {
_parent.gaspStop();
_parent.tv_028.start();
} else if (!_parent.isGaspPlaying()) {
var _local3 = new Array();
_local3.push(_parent.tv_021);
_local3.push(_parent.tv_022);
_local3.push(_parent.tv_023);
if (evt.target.hasAmountToMaximum()) {
_local3.push(_parent.tv_036);
}
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].isPlaying()) {
_local3.splice(_local2, 1);
}
_local2++;
}
if (_local3.length != 0) {
_local3[Math.floor(Math.random() * _local3.length)].start();
}
}
var _local4;
if (_parent.t02_h01.isSelected()) {
var _local6 = 2;
if (evt.target.hasAmountToMaximum()) {
_local6++;
}
switch (Math.floor(Math.random() * _local6)) {
case 0 :
_local4 = _parent.attachMovie("T02A_L03", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
break;
case 1 :
_local4 = _parent.attachMovie("T02A_L04", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
break;
case 2 :
_local4 = _parent.attachMovie("T02A_L05", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
}
} else if (_parent.t02_h02.isSelected()) {
var _local6 = 2;
if (evt.target.hasAmountToMaximum()) {
_local6++;
}
switch (Math.floor(Math.random() * _local6)) {
case 0 :
_local4 = _parent.attachMovie("T02A_R03", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
break;
case 1 :
_local4 = _parent.attachMovie("T02A_R04", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
break;
case 2 :
_local4 = _parent.attachMovie("T02A_R05", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
}
} else if (_parent.t02_h03.isSelected()) {
switch (Math.round(Math.random())) {
case 0 :
_local4 = _parent.attachMovie("T02A_S04", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
break;
case 1 :
_local4 = _parent.attachMovie("T02A_S05", "tomoe", getDepth(), {onEnterFrame:returnToT02A});
}
}
if (evt.target.hasAmountToMaximum()) {
if (_parent.sel03.isSelected()) {
_local4.attachMovie("T02_J02_Blur", "juice", _local4.getNextHighestDepth());
} else {
_local4.attachMovie("T02A_P03_Blur", "pants", _local4.getNextHighestDepth());
}
} else if (evt.hasPassedThroughMiddle) {
if (_parent.sel03.isSelected()) {
_local4.attachMovie("T02_J02_001", "juice", _local4.getNextHighestDepth(), {onEnterFrame:transitionToT02_J02});
} else {
_local4.attachMovie("T02A_P02_001", "pants", _local4.getNextHighestDepth(), {onEnterFrame:transitionToT02A_P03});
}
} else if (_parent.sel03.isSelected()) {
_local4.attachMovie("T02_J02_Blur", "juice", _local4.getNextHighestDepth());
} else {
_local4.attachMovie("T02A_P03_Blur", "pants", _local4.getNextHighestDepth());
}
}
function select02Released(evt) {
_parent.gaspStop();
_parent.tv_006.start();
_parent.attachMovie("T02B", "tomoe", getDepth());
}
function select03Released(evt) {
var _local2 = SELECT03_RELEASED_PLEASURE;
if ((_parent.mtr.getValue() + _local2) >= _parent.mtr.getLimit()) {
_local2 = (_parent.mtr.getLimit() - 1) - _parent.mtr.getValue();
}
_parent.mtr.increase(_local2);
_parent.gaspStop();
_parent.tv_033.start();
var _local3 = new mx.transitions.TransitionManager(pants);
_local3.startTransition({type:mx.transitions.Fade, direction:mx.transitions.Transition.OUT, duration:1, easing:mx.transitions.easing.None.easeNone});
_local3.addEventListener("allTransitionsOutDone", ascs.util.ListenerFunction.removeMovieClip);
if (_parent.mtr.hasAmountToMaximum()) {
attachMovie("T02_J02", "juice", getNextHighestDepth());
} else if (_parent.mtr.isMiddle()) {
attachMovie("T02_J01", "juice", getNextHighestDepth());
} else if (_parent.mtr.isHigh()) {
attachMovie("T02_J02", "juice", getNextHighestDepth());
}
var _local4 = new mx.transitions.TransitionManager(juice);
_local4.startTransition({type:mx.transitions.Fade, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.None.easeNone});
_parent.removeEventListener("select03Released", this);
}
function returnToT02A() {
if (_currentframe == _totalframes) {
_parent.attachMovie("T02A", "tomoe", getDepth());
}
}
function transitionToT02A_P02() {
if (_currentframe == _totalframes) {
_parent.attachMovie("T02A_P02", "pants", getDepth());
}
}
function transitionToT02A_P03() {
if (_currentframe == _totalframes) {
_parent.attachMovie("T02A_P03", "pants", getDepth());
}
}
function transitionToT02_J01() {
if (_currentframe == _totalframes) {
_parent.attachMovie("T02_J01", "juice", getDepth());
}
}
function transitionToT02_J02() {
if (_currentframe == _totalframes) {
_parent.attachMovie("T02_J02", "juice", getDepth());
}
}
function yell() {
if ((!_parent.isYellPlaying()) && (!_parent.isGaspPlaying())) {
((Math.round(Math.random()) == 0) ? (_parent.tv_014.start()) : (_parent.tv_015.start()));
}
}
static var EROGENOUS_ZONE_RELEASED_PLEASURE = 2;
static var SELECT03_RELEASED_PLEASURE = 15;
static var YELL_INTERVAL = 10000;
}
Symbol 400 MovieClip [__Packages.tf.entity.Icon] Frame 0
class tf.entity.Icon extends ascs.ctrl.ToggleButton
{
var isSelected_, cursor_, gotoAndStop, dispatchEvent;
function Icon () {
super();
}
function onRelease() {
if (!isSelected_) {
isSelected_ = true;
cursor_._x = cursor_._x + cursor_._xmouse;
cursor_._y = cursor_._y + cursor_._ymouse;
cursor_._visible = true;
(gotoAndStop("down_over"));// not popped
} else if (arguments.caller != null) {
isSelected_ = false;
cursor_._visible = false;
(gotoAndStop("up_over"));// not popped
}
dispatchEvent({type:"onRelease"});
}
function setCursor(csr) {
cursor_ = csr;
}
}
Symbol 401 MovieClip [__Packages.tf.entity.Cursor] Frame 0
class tf.entity.Cursor extends MovieClip
{
var _totalframes, _currentframe, gotoAndStop, stop, play, _x, _width, _xmouse, _y, _height, _ymouse;
function Cursor () {
super();
}
function onEnterFrame() {
if (_currentframe == _totalframes) {
(gotoAndStop(1));// not popped
}
}
function onLoad() {
stop();
}
function onMouseDown() {
play();
}
function onMouseMove() {
_x = _x + (_xmouse - (_width / 2));
_y = _y + (_ymouse - (_height / 2));
updateAfterEvent();
}
}
Symbol 402 MovieClip [__Packages.tf.entity.Meter] Frame 0
class tf.entity.Meter extends MovieClip
{
var value_, limit_, _totalframes, amountToMaximumCount_, stop, _currentframe, prevFrame, nextFrame, gotoAndStop, dispatchEvent;
function Meter () {
super();
ascs.util.EventLauncher.initialize(this);
value_ = 1;
limit_ = _totalframes;
amountToMaximumCount_ = 0;
}
function onLoad() {
stop();
}
function onEnterFrame() {
if (Math.floor(value_) < _currentframe) {
prevFrame();
} else if (Math.floor(value_) > _currentframe) {
nextFrame();
}
}
function setLimit(lmt) {
if (lmt < 1) {
lmt = 1;
} else if (lmt > _totalframes) {
lmt = _totalframes;
}
limit_ = lmt;
if (value_ > limit_) {
value_ = limit_;
gotoAndStop(Math.floor(value_));
}
}
function getLimit() {
return(limit_);
}
function getOrgasmCount() {
return(amountToMaximumCount_);
}
function getAmountToMaximumCount() {
return(amountToMaximumCount_);
}
function hasAmountToMaximum() {
return(amountToMaximumCount_ > 0);
}
function setValue(val) {
if (val < 1) {
value_ = 1;
} else if (val > _totalframes) {
value_ = _totalframes;
} else {
value_ = val;
}
gotoAndStop(Math.floor(value_));
}
function getValue() {
return(value_);
}
function zero() {
value_ = 1;
}
function isLow() {
return(value_ <= LOW_VALUE);
}
function isMiddle() {
return((value_ > LOW_VALUE) && (value_ <= HIGH_VALUE));
}
function isHigh() {
return(value_ > HIGH_VALUE);
}
function increase(incrNum) {
if (incrNum < 0) {
incrNum = 0;
} else {
var _local3 = _totalframes - value_;
if (incrNum > _local3) {
incrNum = _local3;
}
}
if (incrNum > 0) {
value_ = value_ + incrNum;
if (value_ > limit_) {
value_ = limit_;
}
}
}
function increaseWithEvent(incrNum) {
if (incrNum < 0) {
incrNum = 0;
} else {
var _local7 = _totalframes - value_;
if (incrNum > _local7) {
incrNum = _local7;
}
}
var _local3 = value_;
if (incrNum > 0) {
value_ = value_ + incrNum;
if (value_ > limit_) {
value_ = limit_;
}
}
var _local2 = value_;
if ((_local2 == _totalframes) && (_local3 != _totalframes)) {
amountToMaximumCount_++;
}
if (_local2 == _totalframes) {
var _local6 = false;
if (amountToMaximumCount_ == 1) {
_local6 = true;
}
dispatchEvent({type:"sexobjectOrgasmed", oldValue:_local3, newValue:_local2, isFirstOrgasm:_local6});
} else if (_local2 <= LOW_VALUE) {
dispatchEvent({type:"meterIncreasedAtLow", oldValue:_local3, newValue:_local2});
} else if ((_local2 > LOW_VALUE) && (_local2 <= HIGH_VALUE)) {
var _local5 = false;
if (_local3 <= LOW_VALUE) {
_local5 = true;
}
dispatchEvent({type:"meterIncreasedAtMiddle", oldValue:_local3, newValue:_local2, hasPassedThroughLow:_local5});
} else if (_local2 > HIGH_VALUE) {
var _local5 = false;
if ((_local3 > LOW_VALUE) && (_local3 <= HIGH_VALUE)) {
_local5 = true;
}
dispatchEvent({type:"meterIncreasedAtHigh", oldValue:_local3, newValue:_local2, hasPassedThroughMiddle:_local5});
}
dispatchEvent({type:"meterIncreased", oldValue:_local3, newValue:_local2});
}
static var LOW_VALUE = 40;
static var HIGH_VALUE = 75;
}
Symbol 403 MovieClip [__Packages.tf.entity.tomoe.trial.T02B] Frame 0
class tf.entity.tomoe.trial.T02B extends MovieClip
{
var _parent, attachMovie, getNextHighestDepth;
function T02B () {
super();
}
function onLoad() {
if (_parent.sel03.isSelected()) {
if (_parent.mtr.hasAmountToMaximum()) {
attachMovie("T02_J02", "juice", getNextHighestDepth());
} else if (_parent.mtr.isMiddle()) {
attachMovie("T02_J01", "juice", getNextHighestDepth());
} else if (_parent.mtr.isHigh()) {
attachMovie("T02_J02", "juice", getNextHighestDepth());
}
} else {
_parent.addEventListener("select03Released", this);
if (_parent.mtr.hasAmountToMaximum()) {
attachMovie("T02B_P03", "pants", getNextHighestDepth());
} else if (_parent.mtr.isLow()) {
attachMovie("T02B_P01", "pants", getNextHighestDepth());
} else if (_parent.mtr.isMiddle()) {
attachMovie("T02B_P02", "pants", getNextHighestDepth());
} else if (_parent.mtr.isHigh()) {
attachMovie("T02B_P03", "pants", getNextHighestDepth());
}
}
_parent.endTrial();
}
}