home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FCE Gold Plus
/
GOLD.iso
/
pc
/
fscommand
/
linux
/
main.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-09-06
|
4KB
|
136 lines
function isMacOS()
{
return __L0C_blnMacPlatform;
}
function getDocFolderUri()
{
return __L0C_strDocFolderUri;
}
function onCommandLine(strCommandLine)
{
var _loc1_ = strCommandLine;
_level0.gotoAndPlay("oncmd");
if(_loc1_ != "" && _loc1_ != undefined && _loc1_ != null)
{
__L0C_strDocUri = toURI(_loc1_);
__L0C_strDocFolderUri = __L0C_strDocUri.substring(0,__L0C_strDocUri.lastIndexOf(__L0C_strPathSeparator));
__L0C_arrDocFolders = __L0C_strDocFolderUri.split(__L0C_strPathSeparator);
__L0C_objXml.load(__L0C_strDocUri);
}
else
{
_level0.gotoAndPlay("nocmd");
trace("Not a valid document path > " + _loc1_);
}
}
function initialize()
{
}
function onDocumentLoad(objXML)
{
var obj = objXML.getChild(0,"swf");
var _loc3_ = objXML.getChild(0,"content_title").firstChild.nodeValue;
_level0.setTitle(_loc3_);
var _loc1_ = obj.firstChild.nodeValue;
_loc1_ = getAbsolutePath(_loc1_);
if(_loc1_ != "" && _loc1_ != undefined && _loc1_ != null)
{
var _loc2_ = new MovieClipLoader();
_loc2_.addListener(this);
_loc2_.loadClip(_loc1_,_level0.__L0C_mcLoader);
}
}
function onLoadInit(mc)
{
var _loc1_ = mc;
var _loc3_ = (554 - _loc1_._height) / 600 * 100;
var iWidth = (800 - _loc1_._width) / 800 * 100;
var _loc2_ = 100 + _loc3_;
if(_loc3_ > iWidth)
{
_loc2_ = 100 + iWidth;
}
_loc1_._xscale = _loc1_._yscale = _loc2_;
_loc1_._x = (800 - _loc1_._width) / 2;
_loc1_._y = (554 - _loc1_._height) / 2;
}
function setTitle(strTitle)
{
var _loc1_ = new Object();
var _loc2_ = new com.dagc.DirectorFacade("_actionHandler");
_loc2_.setMovieTitle(_loc1_,strTitle);
}
function getParamArray(strParam, arrParam)
{
var _loc2_ = strParam.split(",");
var _loc1_ = 0;
while(_loc1_ < _loc2_.length)
{
arrParam[_loc1_ / 2] = {val:_loc2_[_loc1_],type:_loc2_[_loc1_ + 1]};
_loc1_ += 2;
}
if(strParam == "")
{
arrParam = new Array();
}
}
function getAbsolutePath(strPath)
{
if(strPath.charAt(0) == "/")
{
strPath = strPath.substring(1,strPath.length);
}
var arrAbsPath = new Array();
strPath = strPath.split("/").join(__L0C_strPathSeparator);
var _loc3_ = strPath.split(__L0C_strPathSeparator);
var iLen = _loc3_.length;
var _loc2_ = 0;
var _loc1_ = 0;
while(_loc1_ < iLen)
{
if(_loc3_[_loc1_] != "..")
{
break;
}
_loc2_ = _loc2_ + 1;
_loc1_ = _loc1_ + 1;
}
var iLenDoc = __L0C_arrDocFolders.length;
if(iLenDoc > _loc2_ + 1)
{
__L0C_arrDocFolders.splice(iLenDoc - (_loc2_ + 1),_loc2_);
_loc3_.splice(0,_loc2_);
arrAbsPath = __L0C_arrDocFolders.concat(_loc3_);
}
return arrAbsPath.join(__L0C_strPathSeparator);
}
function toURI(strUNC)
{
var _loc1_ = strUNC;
var strDelimitor = !__L0C_blnMacPlatform ? "\\" : ":";
_loc1_ = _loc1_.split("\"").join("");
return _loc1_;
}
stop();
var __L0C_strDocUri = "";
var __L0C_strDocFolderUri = "";
var __L0C_arrDocFolders = [];
var __L0C_objXml = new XML();
var __L0C_blnMacPlatform = System.capabilities.os.toLowerCase().indexOf("mac") > -1;
var __L0C_strPathSeparator = !__L0C_blnMacPlatform ? "\\" : ":";
__L0C_objXml.ignoreWhite = true;
__L0C_objXml.onLoad = function(blnSuccess)
{
if(blnSuccess)
{
_level0.onDocumentLoad(this.firstChild);
}
else
{
trace("Could not load document > " + _level0.__l0_objRetVal.retVal);
}
};
com.controller.UICoordinator.getInstance().init("path.xml");
Button.prototype._focusrect = false;
Button.prototype.tabEnabled = false;