Frame 1
function As1Preload(_frameBased) {
OnEnterFrameBeacon.init();
if (_frameBased == null) {
this.frameBased = false;
}
this.Init();
}
function RootLoader() {
this.percent = 0;
}
Stage.scaleMode = "noScale";
Stage.align = "TL";
objectInheritFrom = function (obj, superClass) {
var _local1 = obj;
var _local2 = superClass;
_local1.__constructor__ = _local2;
ASSetPropFlags(_local1, "__constructor__", 1);
_local1.__proto__ = _local2.prototype;
};
functionInheritFrom = function (func, superClass) {
var _local1 = func;
var _local2 = superClass;
_local1.prototype.__constructor__ = _local2;
ASSetPropFlags(_local1.prototype, "__constructor__", 1);
_local1.prototype.__proto__ = _local2.prototype;
};
createDelegate = function (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);
};
As1Preload.prototype.Init = function () {
this._assets = null;
this._time = getTimer();
this._currentKbs = 0;
this._sumKbs = 0;
this.n = 0;
this._pctOnly = true;
this.Stop();
};
As1Preload.prototype.Start = function (obj, percentOnly) {
if (percentOnly != null) {
this._pctOnly = percentOnly;
}
if (!frameBased) {
this._intervalId = setInterval(this, "_getLoadStatus", 50);
} else {
_global.MovieClip.addListener(this);
}
this.Add(obj);
};
As1Preload.prototype.Stop = function () {
if (!frameBased) {
clearInterval(_intervalId);
} else {
_global.MovieClip.removeListener(this);
}
};
As1Preload.prototype.Add = function (obj) {
this._assets = obj;
this._totalKbs = this._totalKbs + (obj.getBytesTotal() / 1024);
};
As1Preload.prototype.onEnterFrame = function () {
this._getLoadStatus();
};
As1Preload.prototype._getLoadStatus = function () {
var _local7 = this._currentKbs;
this._currentKbs = (this._totalKbs = 0);
this._currentKbs = this._currentKbs + (this._assets.getBytesLoaded() / 1024);
this._totalKbs = this._totalKbs + (this._assets.getBytesTotal() / 1024);
this._currentPct = Math.round((this._currentKbs / this._totalKbs) * 100);
this._currentPct = ((isNaN(this._currentPct) || (this._currentPct > 101)) ? 0 : (this._currentPct));
if (!_pctOnly) {
this._kbsPerSec = (this._currentKbs - this._previousKbs) / ((getTimer() - this._time) / 1000);
this._sumKbs = this._sumKbs + _kbsPerSec;
n++;
this._timeRemaining = (this._totalKbs - this._currentKbs) / (this._sumKbs / n);
this._time = getTimer();
}
var _local3 = {percent:this._currentPct, loaded:this._currentKbs, total:this._totalKbs, Kbs:this._kbsPerSec, timeleft:this._timeRemaining};
if ((this._currentKbs >= this._totalKbs) && (this._totalKbs > 4)) {
this.onLoadComplete(_local3);
if (!this.frameBased) {
clearInterval(this._intervalId);
} else {
_global.MovieClip.removeListener(this);
}
} else {
this.onLoadUpdate(_local3);
}
};
RootLoader.prototype.init = function () {
Stage.addListener(this);
this.onResize();
};
RootLoader.prototype.onResize = function () {
};
RootLoader.prototype.onLoadComplete = function () {
trace("loadComplete");
this.onEnterFrame = null;
_root.gotoAndPlay(4);
};
RootLoader.prototype.onLoadUpdate = function (obj) {
trace("update: " + obj.percent);
_loadingTxt.text = ("Loading " + obj.percent) + "%";
_loadBar._xscale = obj.percent;
this.percent = obj.percent;
};
RootLoader.prototype.onEnterFrame = function () {
};
RootLoader.prototype.__proto__ = MovieClip.prototype;
this.__proto__ = RootLoader.prototype;
this.init();
preload = new As1Preload();
preload.onLoadComplete = createDelegate(this, onLoadComplete);
preload.onLoadUpdate = createDelegate(this, onLoadUpdate);
preload.Start(this, true);
stop();
Frame 2
Frame 3
Frame 5
trace("foo");
var main = thule.Main.getInstance(this);
stop();
Symbol 148 MovieClip [__Packages.thule.view.RoadTunes] Frame 0
class thule.view.RoadTunes extends MovieClip
{
var _sound, _btnClose, _btnOpen, _btnPlay, _btnPause, _btnNext, _tracks, _graph, _loadText, _webRoot, _data, _tracksArr, _selectedTrack;
function RoadTunes () {
super();
init();
loadData();
}
function init() {
_sound = new Sound();
_btnClose._visible = false;
_btnClose.onRelease = mx.utils.Delegate.create(this, closeTracks);
_btnOpen.onRelease = mx.utils.Delegate.create(this, openTracks);
_btnPlay.onRelease = mx.utils.Delegate.create(this, playMusic);
_btnPause.onRelease = mx.utils.Delegate.create(this, pauseMusic);
_btnNext.onRelease = mx.utils.Delegate.create(this, nextMusic);
_tracks._y = -205;
_graph._visible = false;
_loadText._visible = false;
if (_level0.webRoot) {
_webRoot = _level0.webRoot;
} else {
_webRoot = "..";
}
}
function loadData() {
_data = new thule.data.RoadTunesData();
_data.onDataLoaded.addHandler(this, onDataLoaded);
}
function onDataLoaded(source, evt) {
_tracksArr = new Array();
var _local2 = 0;
while (_local2 < _data.__get__artists().length) {
var _local3 = thule.view.Track(_tracks._content.attachMovie("Track", "track" + _local2, _tracks._content.getNextHighestDepth()));
_local3._y = _local2 * 48;
_local3.__set__id(_local2);
if (_local2 < 9) {
_local3.__set__num(("0" + String(_local2 + 1)) + "|");
} else {
_local3.__set__num(String(_local2 + 1) + "|");
}
_local3.__set__artist(_data.__get__artists()[_local2]);
_local3.__set__title(_data.__get__songs()[_local2]);
_local3.__set__credit(_data.__get__credits()[_local2]);
_local3.__set__stream(_data.__get__streams()[_local2]);
_local3.__set__website(_data.__get__websites()[_local2]);
_local3.__set__download(_data.__get__downloads()[_local2]);
_local3.onTrack.addHandler(this, playTrack);
_tracksArr.push(_local3);
_local2++;
}
}
function showSelected(n) {
trace((("RoadTunes.showSelected(" + n) + ") of ") + _tracksArr.length);
var _local2 = 0;
while (_local2 < _tracksArr.length) {
if (n == _local2) {
_tracksArr[_local2].selected = true;
_selectedTrack = _local2;
} else {
_tracksArr[_local2].selected = false;
}
_local2++;
}
}
function playTrack(src) {
trace((("RoadTunes.playTrack " + _selectedTrack) + " ") + src.id);
if (_selectedTrack != src.id) {
_loadText._visible = true;
_graph._visible = false;
_trackPosition = 0;
_sound.loadSound((_webRoot + "/tracks/") + src.stream);
_sound.onLoad = mx.utils.Delegate.create(this, _onLoadTrack);
_sound.onSoundComplete = mx.utils.Delegate.create(this, _onSoundComplete);
showSelected(src.id);
_isPlaying = true;
}
}
function playMusic() {
trace("RoadTines.playMusic() ");
if ((_isPlaying == false) && (_selectedTrack != undefined)) {
_sound.start(_trackPosition);
_isPlaying = true;
_graph._visible = true;
} else {
playTrack(_tracksArr[0]);
}
}
function pauseMusic() {
_graph._visible = false;
_trackPosition = _sound.position / 1000;
_sound.stop();
_isPlaying = false;
}
function nextMusic() {
if (_selectedTrack != (_tracksArr.length - 1)) {
playTrack(_tracksArr[_selectedTrack + 1]);
} else {
playTrack(_tracksArr[0]);
}
}
function disableOpen() {
_btnClose._visible = false;
_btnOpen._visible = false;
}
function openTracks() {
_btnClose._visible = true;
_btnOpen._visible = false;
new mx.transitions.Tween(_tracks, "_y", mx.transitions.easing.Strong.easeOut, _tracks._y, 11, 1, true);
}
function closeTracks() {
_btnOpen._visible = true;
_btnClose._visible = false;
new mx.transitions.Tween(_tracks, "_y", mx.transitions.easing.Strong.easeOut, _tracks._y, -204, 1, true);
}
function _onSoundComplete() {
nextMusic();
}
function _onLoadTrack(success) {
if (success) {
_sound.start();
_loadText._visible = false;
_graph._visible = true;
} else {
trace("Sound failed");
}
}
var _trackPosition = 0;
var _isPlaying = false;
}
Symbol 149 MovieClip [__Packages.thule.data.RoadTunesData] Frame 0
class thule.data.RoadTunesData
{
var onError, onDataLoaded, _webRoot, _artistArray, _songTitleArray, _fileStreamArray, _fileDownloadArray, _creditsArray, _websiteArray, _xml, _totalTracks;
function RoadTunesData () {
trace("RoadTunesData = " + this);
onError = new util.events.EventDelegate(this);
onDataLoaded = new util.events.EventDelegate(this);
if (_level0.webRoot) {
_webRoot = _level0.webRoot;
} else {
_webRoot = "../../web";
}
loadXML();
}
function get artists() {
return(_artistArray);
}
function get songs() {
return(_songTitleArray);
}
function get streams() {
return(_fileStreamArray);
}
function get downloads() {
return(_fileDownloadArray);
}
function get credits() {
return(_creditsArray);
}
function get websites() {
return(_websiteArray);
}
function loadXML() {
_xml = new XML();
_xml.ignoreWhite = true;
_xml.onLoad = mx.utils.Delegate.create(this, _onLoad);
_xml.load(_webRoot + "/tracks/musicPlaylist.xml");
}
function _onLoad(success) {
trace("load xml " + success);
if (success) {
parse();
} else {
trace("error");
}
return(success);
}
function parse() {
_totalTracks = _xml.firstChild.childNodes.length;
_artistArray = new Array();
_songTitleArray = new Array();
_fileStreamArray = new Array();
_fileDownloadArray = new Array();
_creditsArray = new Array();
_websiteArray = new Array();
var _local2 = 0;
while (_local2 < _totalTracks) {
_artistArray.push(_xml.firstChild.childNodes[_local2].childNodes[0].firstChild.nodeValue);
_songTitleArray.push(_xml.firstChild.childNodes[_local2].childNodes[1].firstChild.nodeValue);
_fileStreamArray.push(_xml.firstChild.childNodes[_local2].childNodes[2].firstChild.nodeValue);
_fileDownloadArray.push(_xml.firstChild.childNodes[_local2].childNodes[3].firstChild.nodeValue);
_creditsArray.push(_xml.firstChild.childNodes[_local2].childNodes[4].firstChild.nodeValue);
_websiteArray.push(_xml.firstChild.childNodes[_local2].childNodes[5].firstChild.nodeValue);
_local2++;
}
onDataLoaded.fire();
}
}
Symbol 150 MovieClip [__Packages.util.events.EventDelegate] Frame 0
class util.events.EventDelegate
{
var _source, __handlers;
function EventDelegate (eventSource) {
super();
_source = eventSource;
}
function fire(eventArgs) {
var _local3 = __handlers.concat();
var _local4 = _local3.length;
var _local2 = 0;
while (_local2 < _local4) {
_local3[_local2].delegate(_source, eventArgs);
_local2++;
}
}
function addHandler(scope, handler) {
if ((__handlers == undefined) || (__handlers == null)) {
__handlers = new Array();
}
removeHandler(scope, handler);
__handlers.push({scope:scope, handler:handler, delegate:mx.utils.Delegate.create(scope, handler)});
}
function removeHandler(scope, handler) {
var _local4 = __handlers.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = __handlers[_local2];
if ((_local3.scope == scope) && (_local3.handler == handler)) {
__handlers.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function removeAllHandlers() {
delete __handlers;
__handlers = new Array();
}
function toString() {
return("[com.xyleminteractive.util.events.EventDelegate]");
}
static var __type = "EventDelegate";
}
Symbol 151 MovieClip [__Packages.util.events.EventArguments] Frame 0
class util.events.EventArguments
{
function EventArguments (_data) {
super();
}
}
Symbol 152 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 153 MovieClip [__Packages.thule.view.Track] Frame 0
class thule.view.Track extends MovieClip
{
var _webRoot, _bg, onTrack, _id, _num, __get__num, _artist, __get__artist, _title, __get__title, _credit, __get__credit, _stream, _link, _download, __get__download, _website, __get__website, __get__selected;
function Track () {
super();
if (_level0.webRoot) {
_webRoot = _level0.webRoot;
} else {
_webRoot = "..";
}
_bg._visible = false;
onTrack = new util.events.EventDelegate(this);
}
function set id(n) {
_id = n;
//return(id);
}
function get id() {
return(_id);
}
function set num(s) {
_num.text = s;
//return(__get__num());
}
function set artist(s) {
_artist.htmlText = ("<b>" + s) + "</b>";
//return(__get__artist());
}
function set title(s) {
_title.htmlText = s;
//return(__get__title());
}
function set credit(s) {
_credit.text = s;
//return(__get__credit());
}
function set stream(s) {
_stream = s;
_link.onRelease = mx.utils.Delegate.create(this, playTrack);
//return(stream);
}
function get stream() {
return(_stream);
}
function set download(s) {
_download.htmlText = ((("<a href=\"" + _webRoot) + "/tracks/") + s) + "\" target=\"_blank\">Download this song</a>";
//return(__get__download());
}
function set website(s) {
_website.htmlText = ("<a href=\"" + s) + "\" target=\"_blank\">Website</a>";
//return(__get__website());
}
function set selected(b) {
trace("selected " + b);
if (b) {
_bg._visible = true;
} else {
_bg._visible = false;
}
//return(__get__selected());
}
function playTrack() {
trace("Track.playTrack " + _stream);
onTrack.fire();
}
}
Symbol 154 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 155 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 156 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 157 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 158 MovieClip [__Packages.thule.view.POTW] Frame 0
class thule.view.POTW
{
var _data, _webRoot, _potwText, _img;
function POTW () {
_data = new thule.data.POTWData();
_data.onDataLoaded.addHandler(this, onDataLoaded);
_data.onError.addHandler(this, onError);
if (_level0.webRoot) {
_webRoot = _level0.webRoot;
} else {
_webRoot = "..";
}
}
function onDataLoaded() {
var _local2 = new LoadVars();
_local2.onLoad = mx.utils.Delegate.create(this, loadImage);
_local2.load((_webRoot + "/files/your_story/") + _data.__get__thumbnail());
_potwText.text = (_data.__get__fullname() + newline) + _data.__get__loc();
}
function loadImage(success) {
if (success) {
_img.loadMovie((_webRoot + "/files/your_story/") + _data.__get__thumbnail());
} else {
trace("thumbnail not found");
_img._loadText.text = "image unavailible";
}
}
function onError() {
_img._loadText.text = "data load error";
}
}
Symbol 159 MovieClip [__Packages.thule.data.POTWData] Frame 0
class thule.data.POTWData
{
var onError, onDataLoaded, _fullname, _date, _loc, _thumbnail, _featureXML;
function POTWData () {
onError = new util.events.EventDelegate(this);
onDataLoaded = new util.events.EventDelegate(this);
loadXML();
}
function get fullname() {
return(_fullname);
}
function get date() {
return(_date);
}
function get loc() {
return(_loc);
}
function get thumbnail() {
return(_thumbnail);
}
function loadXML() {
_featureXML = new XML();
_featureXML.ignoreWhite = true;
_featureXML.onLoad = mx.utils.Delegate.create(this, _onLoad);
if (_level0.webRoot) {
_featureXML.load(_level0.webRoot + "/xml/yourStory");
} else {
_featureXML.load("http://www.thuleroadtrip.com/xml/yourStory");
}
}
function _onData(src) {
trace(">>>> " + src);
}
function _onLoad(success) {
trace("load xml " + success);
if (success) {
parse();
} else {
onError.fire();
trace("load error");
}
return(success);
}
function parse() {
var _local12 = "/table/row";
var _local10 = mx.xpath.XPathAPI.selectNodeList(_featureXML.firstChild, _local12);
var _local11 = false;
var _local7 = 0;
while (_local7 < _local10.length) {
var _local2 = _local10[_local7];
var _local9 = mx.xpath.XPathAPI.selectSingleNode(_local2, "row/feature_flag").firstChild.nodeValue;
if (_local9 == "Y") {
var _local6 = mx.xpath.XPathAPI.selectSingleNode(_local2, "row/first_name").firstChild.nodeValue;
if (_local6 == undefined) {
_local6 = "";
}
var _local5 = mx.xpath.XPathAPI.selectSingleNode(_local2, "row/last_name").firstChild.nodeValue;
if (_local5 == undefined) {
_local5 = "";
}
_fullname = (_local6 + " ") + _local5;
_date = mx.xpath.XPathAPI.selectSingleNode(_local2, "row/date").firstChild.nodeValue;
var _local3 = mx.xpath.XPathAPI.selectSingleNode(_local2, "row/city").firstChild.nodeValue;
if (_local3 == undefined) {
_local3 = "";
}
var _local4 = mx.xpath.XPathAPI.selectSingleNode(_local2, "row/state").firstChild.nodeValue;
if (_local4 == undefined) {
_local4 = "";
}
if ((_local3.length > 0) && (_local4.length > 0)) {
var _local8 = ", ";
} else {
var _local8 = "";
}
_loc = (_local3 + _local8) + _local4;
_thumbnail = mx.xpath.XPathAPI.selectSingleNode(_local2, "row/thumbnail").firstChild.nodeValue;
_local11 = true;
break;
}
_local7++;
}
if (_local11 == true) {
onDataLoaded.fire();
trace("onDataLoaded.fire()");
} else {
onError.fire();
trace("onError.fire()");
}
}
}
Symbol 160 MovieClip [__Packages.mx.xpath.XPathAPI] Frame 0
class mx.xpath.XPathAPI
{
function XPathAPI () {
}
static function getEvalString(node, path) {
var _local7 = "";
var _local4 = null;
var _local9 = getPathSet(path);
var _local3 = _local9[0].nodeName;
var _local8;
var _local2 = node;
var _local5 = false;
if ((_local3 != undefined) && ((_local3 == "*") || (node.nodeName == _local3))) {
var _local6 = 1;
while (_local6 < _local9.length) {
_local3 = _local9[_local6].nodeName;
_local8 = _local3.indexOf("@");
if (_local8 >= 0) {
_local3 = _local3.substring(_local8 + 1);
_local5 = _local2.attributes[_local3] != undefined;
_local7 = _local7 + (".attributes." + _local3);
} else {
_local5 = false;
var _local1 = 0;
while (_local1 < _local2.childNodes.length) {
_local4 = _local2.childNodes[_local1];
if (_local4.nodeName == _local3) {
_local7 = _local7 + (".childNodes." + _local1);
_local1 = _local2.childNodes.length;
_local2 = _local4;
_local5 = true;
}
_local1++;
}
}
if (!_local5) {
return("");
}
_local6++;
}
if (!_local5) {
_local7 = "";
} else if (_local8 == -1) {
_local7 = _local7 + ".firstChild.nodeValue";
}
} else {
_local7 = "";
}
return(_local7);
}
static function selectNodeList(node, path) {
var _local2 = new Array(node);
var _local5 = getPathSet(path);
var _local4 = _local5[0];
var _local6 = _local4.__get__nodeName();
var _local1 = null;
if ((_local6 != undefined) && ((_local6 == "*") || (node.nodeName == _local6))) {
if (_local4.__get__filter().length > 0) {
_local1 = new mx.xpath.FilterStack(_local4.__get__filter());
_local2 = filterNodes(_local2, _local1);
}
if (_local2.length > 0) {
var _local3 = 1;
while (_local3 < _local5.length) {
_local4 = _local5[_local3];
_local2 = getAllChildNodesByName(_local2, _local4.__get__nodeName());
if (_local4.__get__filter().length > 0) {
_local1 = new mx.xpath.FilterStack(_local4.__get__filter());
} else {
_local1 = null;
}
if ((_local1 != null) && (_local1.__get__exprs().length > 0)) {
_local2 = filterNodes(_local2, _local1);
}
_local3++;
}
}
} else {
_local2 = new Array();
}
return(_local2);
}
static function selectSingleNode(node, path) {
var _local1 = selectNodeList(node, path);
if (_local1.length > 0) {
return(_local1[0]);
}
return(null);
}
static function setNodeValue(node, path, newValue) {
var _local1 = new Array(node);
var _local9 = getPathSet(path);
var _local7 = _local9[_local9.length - 1].nodeName;
if (_local7.charAt(0) == "@") {
_local7 = _local7.substring(1, _local7.length);
_local9.pop();
} else {
_local7 = null;
}
var _local5 = _local9[0];
var _local11 = _local5.__get__nodeName();
var _local3 = null;
if ((_local11 != undefined) && ((_local11 == "*") || (node.nodeName == _local11))) {
if (_local5.__get__filter().length > 0) {
_local3 = new mx.xpath.FilterStack(_local5.__get__filter());
_local1 = filterNodes(_local1, _local3);
}
if (_local1.length > 0) {
var _local2 = 1;
while (_local2 < _local9.length) {
_local5 = _local9[_local2];
_local1 = getAllChildNodesByName(_local1, _local5.__get__nodeName());
if (_local5.__get__filter().length > 0) {
_local3 = new mx.xpath.FilterStack(_local5.__get__filter());
} else {
_local3 = null;
}
if ((_local3 != null) && (_local3.__get__exprs().length > 0)) {
_local1 = filterNodes(_local1, _local3);
}
_local2++;
}
}
} else {
_local1 = new Array();
}
var _local4 = null;
var _local6 = null;
var _local10 = new XML();
var _local2 = 0;
while (_local2 < _local1.length) {
if (_local7 != null) {
_local1[_local2].attributes[_local7] = newValue;
} else {
_local4 = _local1[_local2];
if ((_local4.firstChild == null) || (_local4.firstChild.nodeType != 3)) {
_local6 = _local10.createTextNode(newValue);
_local4.appendChild(_local6);
} else {
_local6 = _local4.firstChild;
_local6.nodeValue = newValue;
}
}
_local2++;
}
return(_local1.length);
}
static function copyStack(toStk, fromStk) {
var _local1 = 0;
while (_local1 < fromStk.length) {
toStk.splice(_local1, 0, fromStk[_local1]);
_local1++;
}
}
static function evalExpr(expr, node) {
var _local2 = true;
if (expr.__get__attr()) {
_local2 = ((expr.__get__value() != null) ? (node.attributes[expr.__get__name()] == expr.__get__value()) : (node.attributes[expr.__get__name()] != null));
} else {
var _local3 = getChildNodeByName(node, expr.__get__name());
if (_local3 != null) {
_local2 = ((expr.__get__value() != null) ? (_local3.firstChild.nodeValue == expr.__get__value()) : true);
} else {
_local2 = false;
}
}
return(_local2);
}
static function filterNodes(nodeList, stack) {
var _local13 = new Array();
var _local2;
var _local3;
var _local9;
var _local6;
var _local10;
var _local1 = true;
var _local4;
var _local5;
var _local8 = 0;
while (_local8 < nodeList.length) {
_local5 = true;
_local2 = new Array();
_local3 = new Array();
copyStack(_local2, stack.__get__exprs());
copyStack(_local3, stack.__get__ops());
_local4 = nodeList[_local8];
while ((_local2.length > 0) && (_local5)) {
if (typeof(_local2[_local2.length - 1]) == "object") {
_local9 = mx.xpath.FilterExpr(_local2.pop());
_local1 = evalExpr(_local9, _local4);
} else {
_local10 = Boolean(_local2.pop());
_local1 = _local10;
}
if (_local3.length > 0) {
var _local7 = _local2.pop();
_local6 = _local7;
switch (_local3[_local3.length - 1]) {
case "and" :
_local1 = _local1 && (evalExpr(_local6, _local4));
_local5 = _local1;
break;
case "or" :
_local1 = _local1 || (evalExpr(_local6, _local4));
_local5 = !_local1;
}
_local3.pop();
_local2.push(_local1);
}
}
if (_local1) {
_local13.push(_local4);
}
_local8++;
}
return(_local13);
}
static function getAllChildNodesByName(nodeList, name) {
var _local5 = new Array();
var _local2;
var _local3 = 0;
while (_local3 < nodeList.length) {
_local2 = nodeList[_local3].childNodes;
if (_local2 != null) {
var _local1 = 0;
while (_local1 < _local2.length) {
if ((name == "*") || (_local2[_local1].nodeName == name)) {
_local5.push(_local2[_local1]);
}
_local1++;
}
}
_local3++;
}
return(_local5);
}
static function getChildNodeByName(node, nodeName) {
var _local2;
var _local3 = node.childNodes;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local3[_local1];
if (_local2.nodeName == nodeName) {
return(_local2);
}
_local1++;
}
return(null);
}
static function getKeyValues(node, keySpec) {
var _local5 = "";
var _local3 = new mx.utils.StringTokenParser(keySpec);
var _local2 = _local3.nextToken();
var _local1;
var _local6;
while (_local2 != mx.utils.StringTokenParser.tkEOF) {
_local1 = _local3.token;
_local5 = _local5 + (" " + _local1);
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
if (_local1 == "@") {
_local2 = _local3.nextToken();
_local1 = _local3.token;
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
_local5 = _local5 + (((_local1 + "='") + node.attributes[_local1]) + "'");
}
} else if (_local1 == "/") {
_local2 = _local3.nextToken();
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
_local1 = _local3.token;
node = getChildNodeByName(node, _local1);
if (node != null) {
_local5 = _local5 + _local1;
}
}
} else if ((((_local1 != "and") && (_local1 != "or")) && (_local1 != "[")) && (_local1 != "]")) {
_local6 = getChildNodeByName(node, _local1);
if (_local6 != null) {
_local5 = _local5 + (("='" + _local6.firstChild.nodeValue) + "'");
}
}
}
if (node == null) {
trace(("Invalid keySpec specified. '" + keySpec) + "' Error.");
return("ERR");
}
_local2 = _local3.nextToken();
}
return(_local5.slice(1));
}
static function getPath(node, keySpecs) {
var _local2 = "";
var _local5 = keySpecs[node.nodeName];
if (_local5 == undefined) {
var _local8 = "";
var _local10;
for (_local10 in node.attributes) {
_local8 = _local8 + (((("@" + _local10) + "='") + node.attributes[_local10]) + "' and ");
}
var _local7 = "";
var _local1;
var _local6;
var _local4 = 0;
while (_local4 < node.childNodes.length) {
_local1 = node.childNodes[_local4];
_local6 = _local1.firstChild.nodeValue;
if (_local6 != undefined) {
_local7 = _local7 + (((_local1.nodeName + "='") + _local6) + "' and ");
}
_local4++;
}
if (_local8.length > 0) {
if (_local7.length > 0) {
_local2 = (((("/" + node.nodeName) + "[") + _local8) + _local7.substring(0, _local7.length - 4)) + "]";
} else {
_local2 = ((("/" + node.nodeName) + "[") + _local8.substring(0, _local8.length - 4)) + "]";
}
} else {
_local2 = ((("/" + node.nodeName) + "[") + _local7.substring(0, _local7.length - 4)) + "]";
}
} else {
_local2 = _local2 + (("/" + node.nodeName) + getKeyValues(node, _local5));
}
var _local1 = node.parentNode;
while (_local1.parentNode != null) {
_local5 = keySpecs[_local1.nodeName];
if (_local5 != undefined) {
_local2 = (("/" + _local1.nodeName) + getKeyValues(_local1, _local5)) + _local2;
} else {
_local2 = ("/" + _local1.nodeName) + _local2;
}
_local1 = _local1.parentNode;
}
return(_local2);
}
static function getPathSet(path) {
var _local6 = new Array();
var _local4;
var _local1;
var _local2;
var _local5;
while (path.length > 0) {
_local4 = path.lastIndexOf("/");
_local1 = path.substring(_local4 + 1);
_local2 = _local1.indexOf("[", 0);
_local5 = ((_local2 >= 0) ? (_local1.substring(_local2 + 1, _local1.length - 1)) : "");
_local1 = ((_local2 >= 0) ? (_local1.substring(0, _local2)) : (_local1));
_local6.splice(0, 0, new mx.xpath.NodePathInfo(_local1, _local5));
path = path.substring(0, _local4);
}
return(_local6);
}
}
Symbol 161 MovieClip [__Packages.mx.xpath.NodePathInfo] Frame 0
class mx.xpath.NodePathInfo
{
function NodePathInfo (nodeName, filter) {
__nodeName = nodeName;
__filter = filter;
}
function get nodeName() {
return(__nodeName);
}
function get filter() {
return(__filter);
}
var __nodeName = null;
var __filter = null;
}
Symbol 162 MovieClip [__Packages.mx.xpath.FilterStack] Frame 0
class mx.xpath.FilterStack
{
var __expr, __ops;
function FilterStack (filterVal) {
__expr = new Array();
__ops = new Array();
var _local2 = new mx.utils.StringTokenParser(filterVal);
var _local5 = _local2.nextToken();
var _local4;
var _local3 = _local2.__get__token();
while (_local5 != mx.utils.StringTokenParser.tkEOF) {
if (_local3 == "@") {
_local5 = _local2.nextToken();
_local3 = _local2.token;
_local4 = new mx.xpath.FilterExpr(true, _local3, null);
__expr.splice(0, 0, _local4);
if (_local2.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (_local2.__get__token() == "=") {
_local5 = _local2.nextToken();
_local4.__set__value(_local2.token);
}
}
} else if ((_local3 == "and") || (_local3 == "or")) {
__ops.splice(0, 0, _local3);
} else if ((_local3 != ")") && (_local3 != "(")) {
_local4 = new mx.xpath.FilterExpr(false, _local3, null);
__expr.splice(0, 0, _local4);
if (_local2.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (_local2.__get__token() == "=") {
_local5 = _local2.nextToken();
_local4.__set__value(_local2.token);
}
}
}
_local5 = _local2.nextToken();
_local3 = _local2.token;
}
}
function get exprs() {
return(__expr);
}
function get ops() {
return(__ops);
}
}
Symbol 163 MovieClip [__Packages.mx.utils.StringTokenParser] Frame 0
class mx.utils.StringTokenParser
{
var _source, _skipChars;
function StringTokenParser (source, skipChars) {
_source = source;
_skipChars = ((skipChars == undefined) ? null : (skipChars));
}
function get token() {
return(_token);
}
function getPos() {
return(_index);
}
function nextToken() {
var _local4;
var _local2;
var _local3 = _source.length;
skipBlanks();
if (_index >= _local3) {
return(tkEOF);
}
_local2 = _source.charCodeAt(_index);
if (((((_local2 >= 65) && (_local2 <= 90)) || ((_local2 >= 97) && (_local2 <= 122))) || ((_local2 >= 192) && (_local2 <= Number.POSITIVE_INFINITY))) || (_local2 == 95)) {
_local4 = _index;
_index++;
_local2 = _source.charCodeAt(_index);
while (((((((_local2 >= 65) && (_local2 <= 90)) || ((_local2 >= 97) && (_local2 <= 122))) || ((_local2 >= 48) && (_local2 <= 57))) || ((_local2 >= 192) && (_local2 <= Number.POSITIVE_INFINITY))) || (_local2 == 95)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
_token = _source.substring(_local4, _index);
return(tkSymbol);
}
if ((_local2 == 34) || (_local2 == 39)) {
_index++;
_local4 = _index;
_local2 = _source.charCodeAt(_local4);
while (((_local2 != 34) && (_local2 != 39)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
_token = _source.substring(_local4, _index);
_index++;
return(tkString);
}
if ((_local2 == 45) || ((_local2 >= 48) && (_local2 <= 57))) {
var _local5 = tkInteger;
_local4 = _index;
_index++;
_local2 = _source.charCodeAt(_index);
while (((_local2 >= 48) && (_local2 <= 57)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
if (_index < _local3) {
if (((((((_local2 >= 48) && (_local2 <= 57)) || (_local2 == 46)) || (_local2 == 43)) || (_local2 == 45)) || (_local2 == 101)) || (_local2 == 69)) {
_local5 = tkFloat;
}
while ((((((((_local2 >= 48) && (_local2 <= 57)) || (_local2 == 46)) || (_local2 == 43)) || (_local2 == 45)) || (_local2 == 101)) || (_local2 == 69)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
}
_token = _source.substring(_local4, _index);
return(_local5);
}
_token = _source.charAt(_index);
_index++;
return(tkSymbol);
}
function skipBlanks() {
if (_index < _source.length) {
var _local2 = _source.charAt(_index);
while ((_local2 == " ") || ((_skipChars != null) && (skipChar(_local2)))) {
_index++;
_local2 = _source.charAt(_index);
}
}
}
function skipChar(ch) {
var _local2 = 0;
while (_local2 < _skipChars.length) {
if (ch == _skipChars[_local2]) {
return(true);
}
_local2++;
}
return(false);
}
static var tkEOF = -1;
static var tkSymbol = 0;
static var tkString = 1;
static var tkInteger = 2;
static var tkFloat = 3;
var _index = 0;
var _token = "";
}
Symbol 164 MovieClip [__Packages.mx.xpath.FilterExpr] Frame 0
class mx.xpath.FilterExpr
{
function FilterExpr (attrInit, nameInit, valueInit) {
__attr = attrInit;
__name = nameInit;
__value = valueInit;
}
function get attr() {
return(__attr);
}
function set attr(newVal) {
__attr = newVal;
//return(attr);
}
function get name() {
return(__name);
}
function set name(newVal) {
__name = newVal;
//return(name);
}
function get value() {
return(__value);
}
function set value(newVal) {
__value = newVal;
//return(value);
}
var __attr = false;
var __value = null;
var __name = null;
}
Symbol 165 MovieClip [__Packages.util.base.ClipBase] Frame 0
class util.base.ClipBase extends MovieClip
{
var onInitialized, bounds_mc, bounds, __x, _x, __y, _y, __width, _width, __height, _height, _parent, initComponents, methodTable, onEnterFrame;
function ClipBase () {
super();
onInitialized = new util.events.EventDelegate(this);
if (bounds_mc != undefined) {
bounds = bounds_mc;
}
bounds_mc._visible = false;
}
function get x() {
return(((__x == undefined) ? (_x) : (__x)));
}
function set x(_value) {
__x = _value;
setPosition(__x, __y);
//return(x);
}
function get y() {
return(((__y == undefined) ? (_y) : (__y)));
}
function set y(_value) {
__y = _value;
setPosition(__x, __y);
//return(y);
}
function get width() {
var _local2;
if ((bounds._width != null) && (bounds._width != undefined)) {
_local2 = bounds._width;
} else {
_local2 = ((__width == undefined) ? (_width) : (__width));
}
return(_local2);
}
function set width(_value) {
__width = _value;
setSize(__width, __height);
//return(width);
}
function get height() {
var _local2;
if ((bounds._height != null) && (bounds._height != undefined)) {
_local2 = bounds._height;
} else {
_local2 = ((__height == undefined) ? (_height) : (__height));
}
return(_local2);
}
function set height(_value) {
__height = _value;
setSize(__width, __height);
//return(height);
}
function get globalX() {
var _local2 = globalize(_x, _y);
return(_local2.x);
}
function set globalX(_value) {
var _local2 = localize(_value, _y);
x = (_local2.x);
//return(globalX);
}
function get globalY() {
var _local2 = globalize(_x, _y);
return(_local2.y);
}
function set globalY(_value) {
var _local2 = localize(_x, _value);
y = (_local2.y);
//return(globalY);
}
function get right() {
return(x + width);
}
function get bottom() {
return(y + height);
}
function set bottom(value) {
y = (value - height);
//return(bottom);
}
function init() {
}
function globalize(x, y) {
var _local2 = {x:x, y:y};
_parent.localToGlobal(_local2);
return(_local2);
}
function localize(x, y) {
var _local2 = {x:x, y:y};
_parent.globalToLocal(_local2);
return(_local2);
}
function setBoundsSize(w, h) {
if ((bounds == null) || (bounds == undefined)) {
bounds = new Object();
}
bounds._width = w;
bounds._height = h;
}
function isInitialized() {
return(true);
}
function setSize(w, h) {
__width = w;
__height = h;
size();
}
function size() {
_width = __width;
_height = __height;
}
function setPosition(xpos, ypos) {
_x = xpos;
_y = ypos;
}
function onLoad() {
init();
initComponents();
onInitialized.fire();
}
function destroy() {
}
function toString() {
return("[util.base.ClipBase]");
}
function invalidateProperties() {
doLater(this, "commitProperties");
}
function commitProperties() {
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function cancelAllDoLaters() {
delete onEnterFrame;
methodTable = new Array();
}
function doLaterDispatcher() {
delete onEnterFrame;
if (invalidateDrawFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function invalidateDraw(Void) {
invalidateDrawFlag = true;
onEnterFrame = doLaterDispatcher;
}
function redraw(bAlways) {
if (invalidateDrawFlag || (bAlways)) {
invalidateDrawFlag = false;
draw();
}
}
function draw(Void) {
}
static var __type = "ClipBase";
var invalidateDrawFlag = false;
}
Symbol 166 MovieClip [__Packages.util.animation.FrameBeacon] Frame 0
class util.animation.FrameBeacon
{
function FrameBeacon () {
}
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");
};
}
return(true);
}
}
Symbol 167 MovieClip [__Packages.util.animation.SuperTween] Frame 0
class util.animation.SuperTween
{
var obj, prop, begin, useSeconds, extraArgs, prevTime, _time, looping, _duration, onMotionLooped, onMotionFinished, isPlaying, _fps, prevPos, _pos, onMotionChanged, onMotionStarted, onMotionResumed, onMotionStopped, _intervalID, _startTime;
function SuperTween (obj, prop, func, duration, useSeconds, extraArgs) {
super();
initDelegates();
util.animation.FrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
begin = new Object();
for (var _local5 in this.prop) {
begin[_local5] = obj[_local5];
}
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (useSeconds) {
FPS = (62);
}
if (func) {
this.func = func;
}
if (extraArgs) {
this.extraArgs = extraArgs;
}
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
onMotionLooped.fire();
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
onMotionFinished.fire();
}
} 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 get position() {
return(getPosition());
}
function setPosition(p) {
prevPos = _pos;
_pos = p;
for (var _local2 in prop) {
obj[_local2] = _pos[_local2];
}
onMotionChanged.fire();
updateAfterEvent();
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
var _local5 = new Object();
for (var _local7 in prop) {
var _local4 = prop[_local7] - begin[_local7];
var _local3 = [t, begin[_local7], _local4, _duration];
var _local2 = 0;
while (_local2 < extraArgs.length) {
_local3.push(extraArgs[_local2]);
_local2++;
}
_local5[_local7] = func.apply(null, _local3);
}
return(_local5);
}
function initDelegates() {
onMotionStarted = new util.events.EventDelegate(this);
onMotionChanged = new util.events.EventDelegate(this);
onMotionLooped = new util.events.EventDelegate(this);
onMotionResumed = new util.events.EventDelegate(this);
onMotionStopped = new util.events.EventDelegate(this);
onMotionFinished = new util.events.EventDelegate(this);
}
function continueTo(prop, duration) {
begin = position;
this.prop = prop;
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (isPlaying) {
return(undefined);
}
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();
onMotionStarted.fire();
}
function stop() {
stopEnterFrame();
onMotionStopped.fire();
}
function resume() {
fixTime();
startEnterFrame();
onMotionResumed.fire();
}
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("[SuperTween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var __initBeacon = util.animation.FrameBeacon.init();
static var __type = "SuperTween";
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 168 MovieClip [__Packages.util.base.ContainerBase] Frame 0
class util.base.ContainerBase extends util.base.ClipBase
{
var __children, __onLoadFired, __initId, initComponents, onInitialized;
function ContainerBase () {
super();
__children = new Array();
__onLoadFired = false;
}
function onLoad() {
__initId = setInterval(this, "__initInterval", 10);
initComponents();
}
function __initInterval() {
__onLoadFired = true;
if (isInitialized()) {
init();
onInitialized.fire();
clearInterval(__initId);
}
}
function addChild(child, func) {
__children.push({child:child, func:func});
}
function init() {
}
function isInitialized() {
var _local5 = __onLoadFired;
var _local6 = __children.length;
var _local2 = 0;
while (_local2 < _local6) {
var _local3 = __children[_local2].child;
var _local4 = __children[_local2].func;
if (_local4 != null) {
if ((!_local3[_local4]) && (!_local3[_local4]())) {
_local5 = false;
break;
}
} else if (!_local3.isInitialized()) {
_local5 = false;
break;
}
_local2++;
}
return(_local5);
}
static var __type = "ContainerBase";
}
Symbol 169 MovieClip [__Packages.thule.view.RoadTripView] Frame 0
class thule.view.RoadTripView extends util.base.ContainerBase
{
var _contentMC, _section, _nav, _loadingTxt, _loadBar, _btnOpenSweepstakes, _sweepstakes, _btnCloseSweepstakes, _btnOpenPOTW, _photoOfTheWeek, _btnClosePOTW, _webRoot, _roadtunes, _footer, _dice, _thuleLogo, _rtLogo, _callout, _x;
function RoadTripView () {
super();
trace(this);
Stage.addListener(this);
setPosition();
}
function get contentMC() {
return(_contentMC);
}
function get section() {
return(_section);
}
function set section(sect) {
_section = sect;
//return(section);
}
function init() {
_nav._btnDistOver._visible = false;
_nav._btnBlogOver._visible = false;
_nav._btnRTOver._visible = false;
_nav._btnResourcesOver._visible = false;
_loadingTxt._visible = false;
_loadBar._visible = false;
_btnOpenSweepstakes = _sweepstakes._btnOpen;
_btnOpenSweepstakes.onRelease = mx.utils.Delegate.create(this, openSweepstakes);
_btnCloseSweepstakes = _sweepstakes._btnClose;
_btnCloseSweepstakes.onRelease = mx.utils.Delegate.create(this, closeSweepstakes);
_btnOpenPOTW = _photoOfTheWeek._btnOpen;
_btnOpenPOTW.onRelease = mx.utils.Delegate.create(this, openPOTW);
_btnClosePOTW = _photoOfTheWeek._btnClose;
_btnClosePOTW.onRelease = mx.utils.Delegate.create(this, closePOTW);
_webRoot = thule.Main.getInstance().webRoot;
if ((_level0.section && (_level0.subSection)) && (_level0.subSubSection)) {
_section = (((_level0.section + ".") + _level0.subSection) + ".") + _level0.subSubSection;
} else if (_level0.section && (_level0.subSection)) {
_section = (_level0.section + ".") + _level0.subSection;
} else if (_level0.section) {
_section = _level0.section + ".0";
} else {
_section = "0.0";
}
if (_section == "htmlNav.0") {
_roadtunes.disableOpen();
}
animateIn();
}
function animateIn() {
new mx.transitions.Tween(_footer, "_alpha", mx.transitions.easing.Strong.easeOut, 0, _footer._alpha, 1, true);
new mx.transitions.Tween(_dice, "_y", mx.transitions.easing.Elastic.easeOut, -300, _dice._y, 1, true);
new mx.transitions.Tween(_thuleLogo, "_y", mx.transitions.easing.Elastic.easeOut, -200, _thuleLogo._y, 1, true);
new mx.transitions.Tween(_rtLogo, "_y", mx.transitions.easing.Elastic.easeOut, -100, _rtLogo._y, 1, true);
new util.TimeOut(this, "animateContinued", 500);
loadSection(_section);
setPosition();
}
function animateContinued() {
new mx.transitions.Tween(_nav, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 1, true);
new mx.transitions.Tween(_roadtunes, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 1, true);
}
function loadSection(sect) {
_section = sect;
if ((((((_section == "1.0") || (_section == "1.1")) || (_section == "1.2")) || (_section == "1.3")) || (_section == "1.4")) || (_section == "1.5")) {
_nav._btnDistOver._visible = true;
} else {
_nav._btnDistOver._visible = false;
}
if (_section == "4.0") {
_nav._btnResourcesOver._visible = true;
} else {
_nav._btnResourcesOver._visible = false;
}
if (_section == "htmlNav.0") {
_nav._btnRTOver._visible = true;
} else {
_nav._btnRTOver._visible = false;
}
animateOut();
positionElements();
}
function animateOut() {
new mx.transitions.Tween(_contentMC, "_alpha", mx.transitions.easing.Strong.easeOut, _contentMC._alpha, 0, 0.3, true);
new util.TimeOut(this, "loadSect", 200);
}
function loadSect() {
var _this = this;
var _local2 = new Object();
_local2.onLoadStart = function (target_mc) {
this._loadingTxt._visible = true;
_this._loadBar._visible = true;
_this._loadingTxt.text = "loading 0%";
_this._loadBar._xscale = 0;
};
_local2.onLoadProgress = function (target, bytesLoaded, bytesTotal) {
var _local1 = Math.round((bytesLoaded / bytesTotal) * 100);
_this._loadingTxt.text = ("loading " + _local1) + "%";
_this._loadBar._xscale = _local1;
};
_local2.onLoadComplete = function (target_mc) {
_this._loadingTxt.text = "loading 100%";
_this._loadBar._xscale = 100;
};
_local2.onLoadInit = function (target_mc) {
_this._loadingTxt._visible = false;
_this._loadBar._visible = false;
};
var _local3 = new MovieClipLoader();
_local3.addListener(_local2);
if (_webRoot != undefined) {
_local3.loadClip(((_webRoot + "/flash/sections/section_") + _section) + ".swf", _contentMC);
} else {
_local3.loadClip(("sections/section_" + _section) + ".swf", _contentMC);
}
new mx.transitions.Tween(_contentMC, "_alpha", mx.transitions.easing.Strong.easeOut, _contentMC._alpha, 100, 0.3, true);
}
function positionElements() {
if (_section == "0.0") {
openPOTW();
openSweepstakes();
new mx.transitions.Tween(_callout, "_y", mx.transitions.easing.Strong.easeOut, _callout._y, 311, 1.25, true);
} else {
closePOTW();
closeSweepstakes();
new mx.transitions.Tween(_callout, "_y", mx.transitions.easing.Strong.easeOut, _callout._y, 500, 1, true);
}
}
function openPOTW() {
_btnClosePOTW._visible = true;
_btnOpenPOTW._visible = false;
new mx.transitions.Tween(_photoOfTheWeek, "_y", mx.transitions.easing.Strong.easeOut, _photoOfTheWeek._y, 311, 0.75, true);
}
function openSweepstakes() {
_btnCloseSweepstakes._visible = true;
_btnOpenSweepstakes._visible = false;
new mx.transitions.Tween(_sweepstakes, "_y", mx.transitions.easing.Strong.easeOut, _sweepstakes._y, 311, 1, true);
}
function closePOTW() {
_btnOpenPOTW._visible = true;
_btnClosePOTW._visible = false;
new mx.transitions.Tween(_photoOfTheWeek, "_y", mx.transitions.easing.Strong.easeOut, _photoOfTheWeek._y, 450, 1, true);
}
function closeSweepstakes() {
_btnOpenSweepstakes._visible = true;
_btnCloseSweepstakes._visible = false;
new mx.transitions.Tween(_sweepstakes, "_y", mx.transitions.easing.Strong.easeOut, _sweepstakes._y, 450, 1, true);
}
function onResize() {
setPosition();
}
function setPosition() {
_x = Math.round((Stage.width / 2) - 475);
}
static function create(container) {
trace(container);
var _local1 = container.attachMovie("View", "_view", container.getNextHighestDepth());
if (_local1 == null) {
throw new Error("attachMovie Error: RoadTripView is null, check linkage id");
}
return(thule.view.RoadTripView(_local1));
}
}
Symbol 170 MovieClip [__Packages.thule.Main] Frame 0
class thule.Main
{
var _container, _view, _webRoot;
function Main (mc) {
_container = mc.createEmptyMovieClip("_container_mc", mc.getNextHighestDepth());
init();
}
function get mainView() {
return(_view);
}
function get webRoot() {
return(_webRoot);
}
function init() {
trace(_container);
if (_level0.webRoot) {
_webRoot = _level0.webRoot;
}
_view = thule.view.RoadTripView.create(_container);
}
static function getInstance(mc) {
if (_instance == null) {
_instance = new thule.Main(mc);
}
return(_instance);
}
function toString() {
return("[thule.Main]");
}
static var _instance = null;
}
Symbol 171 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
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 172 MovieClip [__Packages.util.TimeOut] Frame 0
class util.TimeOut
{
var __isActive, __interval;
function TimeOut () {
__isActive = true;
__instances.push(this);
__interval = setInterval(this, "init", ((typeof(arguments[1]) == "number") ? (arguments[1]) : (arguments[2])), arguments);
}
function init(a) {
clearInterval(a.i);
if (typeof(a[1]) != "string") {
var _local4 = a[0];
a.splice(0, 2);
_local4.apply(_local4, a);
} else {
var _local3 = a[0];
var _local4 = a[1];
a.splice(0, 3);
_local3[_local4].apply(_local3, a);
}
abort();
}
function abort() {
__isActive = false;
return(removeInstance(this));
}
function isActive() {
return(__isActive);
}
function removeInstance(o) {
clearInterval(__interval);
var _local4 = __instances.length;
var _local2 = 0;
while (_local2 < _local4) {
if (__instances[_local2] == o) {
__instances.splice(_local2, 1);
return(true);
}
_local2++;
}
return(false);
}
static var __instances = new Array();
}
Symbol 173 MovieClip [__Packages.thule.view.Dice] Frame 0
class thule.view.Dice extends MovieClip
{
var _dice1, _dice2;
function Dice () {
super();
trace(this);
_dice1.useHandCursor = false;
_dice2.useHandCursor = false;
_dice1.onRollOver = roll1;
_dice2.onRollOver = roll2;
}
function roll1() {
new mx.transitions.Tween(this, "_y", mx.transitions.easing.Elastic.easeOut, -15, -5, 2, true);
new mx.transitions.Tween(this, "_x", mx.transitions.easing.Elastic.easeOut, -8, 0, 2, true);
}
function roll2() {
new mx.transitions.Tween(this, "_y", mx.transitions.easing.Elastic.easeOut, -12, -5, 2, true);
new mx.transitions.Tween(this, "_x", mx.transitions.easing.Elastic.easeOut, 20, 29, 2, true);
}
}
Symbol 17 Button
on (release) {
if (_level0.section == "htmlNav") {
getURL (_level0.webRoot + "?section=1");
} else {
_parent.loadSection("1.0");
}
}
Symbol 21 Button
on (release) {
getURL ("http://thuleroadtrip.blogspot.com/", "_blank");
}
Symbol 25 Button
on (release) {
if (_level0.webRoot) {
_webRoot = _level0.webRoot;
} else {
_webRoot = "..";
}
getURL (_webRoot + "/your_stories");
}
Symbol 29 Button
on (release) {
if (_level0.section == "htmlNav") {
getURL (_level0.webRoot + "?section=4");
} else {
_parent.loadSection("4.0");
}
}
Symbol 35 Button
on (release) {
trace(_parent);
_parent.loadSection("0.0");
}
Symbol 39 Button
on (release) {
getURL ("http://thuleracks.com/thule/privacy.asp", "_blank");
}
Symbol 47 MovieClip [Dice] Frame 1
#initclip 31
Object.registerClass("Dice", thule.view.Dice);
#endinitclip
Symbol 53 Button
on (release) {
_parent.loadSection("0.0");
}
Symbol 60 Button
on (release) {
if (_level0.webRoot) {
var _webRoot = _level0.webRoot;
} else {
var _webRoot = "http://www.thuleroadtrip.com";
}
getURL (_webRoot + "/tracks/allTracks.zip", "_blank");
}
Symbol 66 Button
on (press) {
newscroll = newscroll + 50;
}
Symbol 67 Button
on (press) {
newscroll = newscroll - 50;
}
Symbol 70 Button
on (press) {
startDrag (drag_mc, false, vLEFT, vTOP, vRIGHT, vBottom);
dragmode = 1;
}
on (release, releaseOutside) {
newscroll = -drag_mc._y;
scrollpos = -drag_mc._y;
dragmode = 0;
stopDrag();
}
Symbol 71 MovieClip Frame 1
function DoDatShit() {
if (dragmode == 1) {
easeDrag();
stopper();
} else {
easeOut();
stopper();
}
}
function easeOut() {
scrollpos = -(drag_mc._y - dragStart);
ratio = ((_content._height + (_content._height / 8)) - mask_mc._height) / (mask_mc._height - drag_mc._height);
newPos = scrollpos * ratio;
difY = (newPos - _content._y) + 17;
_content._y = Math.round(_content._y + (difY / speed));
dif = (scrollpos - dragStart) - newscroll;
drag_mc._y = Math.round(drag_mc._y + (dif / speed));
}
function easeDrag() {
scrollpos = -(drag_mc._y - dragStart);
ratio = ((_content._height + (_content._height / 8)) - mask_mc._height) / (mask_mc._height - drag_mc._height);
newPos = scrollpos * ratio;
difY = (newPos - _content._y) + 17;
_content._y = Math.round(_content._y + (difY / speed));
}
function stopper() {
if (drag_mc._y > sliderDragBottom) {
drag_mc._y = sliderDragBottom;
} else if (drag_mc._y <= dragStart) {
drag_mc._y = dragStart;
newscroll = drag_mc._y;
} else {
drag_mc._y = drag_mc._y;
}
}
stop();
speed = 10;
dragmode = 0;
trackHeight = track_mc._height;
dragHeight = drag_mc._height;
dragStart = drag_mc._y;
contentHeight = _content._height + 100;
maskHeight = mask_mc._height;
contentBaseTop = _content._y;
contentOverflowHeight = contentHeight - maskHeight;
MaxUpArrow = -contentOverflowHeight;
sliderDragDistance = trackHeight - dragHeight;
sliderDragTop = drag_mc._y;
sliderDragBottom = sliderDragTop + sliderDragDistance;
vTOP = drag_mc._y;
vRIGHT = drag_mc._x;
vLEFT = drag_mc._x;
vBottom = (track_mc._height - drag_mc._height) + drag_mc._y;
setInterval(DoDatShit, 20);
newscroll = drag_mc._y;
Symbol 89 MovieClip Frame 1
function analyzer(spectrum) {
var _local5 = 0;
var _local6 = spectrum[_local5].n;
var _local2 = 0;
while (_local2 < tot_bars) {
var _local3 = this.attachMovie("one_bar", "bar" + _local2, _local2 + 1);
_local3._x = (_local2 * (_local3._width + spacing)) + margin;
_local3.r = spectrum[_local5];
_local3.onEnterFrame = function () {
var _local4 = Math.round((Math.random() * (this.r.high - this.r.low)) + this.r.low);
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = this.attachMovie("one_bar", "bar" + _local2, _local2 + 1);
_local3._y = _local3._y - (_local2 * (_local3._height + spacing));
_local3.onEnterFrame = function () {
this._alpha = this._alpha - 50;
if (this._alpha == 0) {
this.removeMovieClip();
}
};
_local2++;
}
};
_local6--;
if (_local6 == 0) {
_local5++;
_local6 = spectrum[_local5].n;
}
_local2++;
}
}
function turnOff() {
var _local4 = 0;
while (_local4 < tot_bars) {
var _local3 = this["bar" + _local4];
delete _local3.onEnterFrame;
var _local2 = 1;
while (_local2 < max_height) {
var _local5 = _local3["bar" + _local2].removeMovieClip();
_local2--;
}
_local4++;
}
}
spacing = 2;
margin = 2;
tot_bars = 8;
max_height = 10;
rock_spectrum = [{low:1, high:6, n:2}, {low:3, high:5, n:8}, {low:5, high:7, n:3}, {low:7, high:7, n:3}, {low:4, high:5, n:3}, {low:0, high:5, n:2}];
analyzer(rock_spectrum);
Symbol 92 MovieClip [RoadTunes] Frame 1
#initclip 27
Object.registerClass("RoadTunes", thule.view.RoadTunes);
#endinitclip
_head.useHandCursor = false;
Instance of Symbol 73 MovieClip "_head" in Symbol 92 MovieClip [RoadTunes] Frame 1
on (rollOver) {
}
Symbol 109 Button
on (release) {
getURL (("javascript:launchWindow('" + _level0.webRoot) + "/Sweepstakes','Sweepstakes','width=650, height=500, top=250, left=400, scrollbars=yes, scrolling=yes, toolbars=no, status=no'); void(0);");
}
Symbol 124 Button
on (release) {
if (_level0.webRoot) {
_webroot = _level0.webRoot;
} else {
_webroot = "..";
}
getURL (_webroot + "/your_stories");
}
Symbol 125 MovieClip [POTW] Frame 1
#initclip 28
Object.registerClass("POTW", thule.view.POTW);
#endinitclip
Symbol 133 Button
on (release) {
_level0._container_mc._view.loadSection("1.1");
}
Symbol 136 MovieClip [View] Frame 1
#initclip 29
Object.registerClass("View", thule.view.RoadTripView);
#endinitclip
Instance of Symbol 54 MovieClip "_thuleLogo" in Symbol 136 MovieClip [View] Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Symbol 147 MovieClip [track] Frame 1
#initclip 30
Object.registerClass("track", thule.view.Track);
#endinitclip