//Sprite 1
// Frame 0
// Action tag #0
if (!_load01B32F38)
{
_load01B32F38 = 1;
tellTarget("..")
{
Stage.scaleMode = "noScale";
Stage.align = "";
Stage.showMenu = false;
Stage.movieH = 410;
Stage.movieW = 744;
Stage.gsb = new Object();
Stage.gsb.setFrame = function ()
{
tellTarget(..._target)
{
if (this.resizeTimer)
{
clearInterval(this.resizeTimer);
this.resizeTimer = null;
}
Stage.Top = (Stage.height - Stage.movieH) / 2;
Stage.Left = (Stage.width - Stage.moview) / 2;
if (!(iframes instanceof Array))
{
return;
}
i = 0;
if (i >= iframes.length)
{
return;
}
eval(eval(iframes[i])._target).iframeResize();
}
}
;
Stage.gsb.onResize = function ()
{
tellTarget(..._target)
{
if (Stage.Top)
{
if (this.resizeTimer)
{
clearInterval(this.resizeTimer);
}
this.resizeTimer = setInterval(this, "setFrame", 10);
return;
}
if (!Stage.width)
{
return;
}
this.setFrame();
return;
}
}
;
Stage.gsb.resizeTimer = setInterval(Stage.gsb, "onResize", 500);
Stage.addListener(Stage.gsb);
_global.iframeLevel = 1;
getURL("levelSeed.swf", "_level" + iframeLevel);
_global.iframes = new Array();
_global.iframeInitialize = function (obj)
{
tellTarget(..._target)
{
i = iframeFind(obj._name);
if (i != -1)
{
iframeRemove(i);
}
iframeLevel.nextDepth = iframeLevel.nextDepth + 1;
var iframe = iframeLevel.createEmptyMovieClip(obj._name, iframeLevel.nextDepth);
iframe.iframeBounds = obj.getBounds(_root);
iframe._x = iframe.iframeBounds.xMin;
iframe._y = iframe.iframeBounds.yMin;
iframe.iframeVisible = true;
iframes.push(iframe);
iframe.beginFill(16777215, 0);
iframe.lineTo(0, obj._height);
iframe.lineTo(obj._width, obj._height);
iframe.lineTo(obj._width, 0);
iframe.lineTo(0, 0);
iframe.endFill();
iframe.iframeActive = false;
iframe.iframeWidth = obj.iframeWidth;
iframe.iframeHeight = obj.iframeHeight;
iframe.iframeX = obj.iframeX;
iframe.iframeY = obj.iframeY;
iframe.iframeResize = function ()
{
if (this.iframeActive ? !this.iframeVisible : true)
{
return;
}
this.iframeBounds = this.getBounds(_root);
getURL("fscommand:iframeCommand", "setHW," + this._name + "," + this.iframeHeight() + "," + this.iframeWidth());
getURL("fscommand:iframeCommand", "setTL," + this._name + "," + this.iframeY() + "," + this.iframeX());
}
;
if (typeof obj.iframeURL != "string")
{
iframe.iframeURL = "error.html";
return;
}
iframe.iframeURL = obj.iframeURL;
iframeLoad(iframe._name, iframe.iframeURL);
}
}
;
_global.iframeHide = function (name)
{
tellTarget(..._target)
{
i = iframeFind(name);
if (i == -1)
{
return;
}
if (iframes[i].iframeActive ? !iframes[i].iframeVisible : true)
{
return;
}
getURL("fscommand:iframeCommand", "setTL," + iframes[i]._name + "," + iframes[i].iframeY() + "," + (-100 - iframes[i].iframeWidth()));
iframes[i].iframeVisible = false;
}
}
;
_global.iframeShow = function (name)
{
tellTarget(..._target)
{
i = iframeFind(name);
if (i == -1)
{
return;
}
if (iframes[i].iframeActive ? iframes[i].iframeVisible : true)
{
return;
}
iframes[i].iframeVisible = true;
iframes[i].iframeResize();
}
}
;
_global.iframeDelete = function (name)
{
tellTarget(..._target)
{
i = iframeFind(name);
if (i == -1)
{
return;
}
if (!iframes[i].iframeActive)
{
return;
}
getURL("fscommand:iframeCommand", "delete," + iframes[i]._name);
iframes[i].iframeActive = false;
}
}
;
_global.iframeLoad = function (name, url, visible)
{
tellTarget(..._target)
{
i = iframeFind(name);
if (i == -1)
{
return;
}
iframes[i].iframeBounds = iframes[i].getBounds(_root);
if (url != undefined)
{
iframes[i].iframeURL = url;
}
iframes[i].iframeActive = true;
getURL("fscommand:iframeCommand", "setContent," + iframes[i]._name + "," + iframes[i].iframeURL);
getURL("fscommand:iframeCommand", "setHW," + iframes[i]._name + "," + iframes[i].iframeHeight() + "," + iframes[i].iframeWidth());
if (!(visible == undefined ? false : visible != true))
{
iframes[i].iframeVisible = true;
getURL("fscommand:iframeCommand", "setTL," + iframes[i]._name + "," + iframes[i].iframeY() + "," + iframes[i].iframeX());
return;
}
iframes[i].iframeVisible = false;
getURL("fscommand:iframeCommand", "setTL," + iframes[i]._name + "," + iframes[i].iframeY() + "," + (-100 - iframes[i].iframeWidth()));
}
}
;
_global.iframeFind = function (name)
{
tellTarget(..._target)
{
i = 0;
if (i < iframes.length)
{
for (;;)
{
i = i + 1;
if (i >= iframes.length)
{
break;
}
if (iframes[i]._name == name)
{
return i;
}
}
}
return -1;
}
}
;
_global.iframeRemove = function (n)
{
tellTarget(..._target)
{
iframes[n].iframeDelete();
removeMovieClip(iframes[n]);
iframes.slpice(n, 1);
}
}
;
}
}
stop();