home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
linuxmafia.com 2016
/
linuxmafia.com.tar
/
linuxmafia.com
/
pub
/
humour
/
trojanhorse.swf
/
scripts
/
frame_2
/
DoAction.as
< prev
Wrap
Text File
|
2007-03-20
|
7KB
|
197 lines
function showList()
{
netStream.close();
skin_mc.nextclip_mc._visible = false;
skin_mc.screenpause_mc._visible = false;
skin_mc.control_mc.dummy_btn._visible = false;
skin_mc.control_mc.playpos_mc.clip_mc._x = skin_mc.control_mc.statusbg_mc._x - skin_mc.control_mc.statusbg_mc._width;
skin_mc.control_mc.knob_mc._x = skin_mc.control_mc.statusbg_mc._x;
skin_mc.header_mc._visible = false;
skin_mc.control_mc.play_btn._visible = true;
skin_mc.control_mc.pause_btn._visible = false;
skin_mc.logo_mc.gotoAndStop(1);
skin_mc.sharenreply_mc._y = initSharebtnY;
if(playerVersion == "2" and Stage.displayState != "fullScreen")
{
clearList();
skin_mc.list_mc._visible = true;
var _loc1_ = 0;
while(_loc1_ <= maxList)
{
curClip = skin_mc.list_mc.attachMovie("list_mc","list_" + _loc1_,skin_mc.list_mc.getNextHighestDepth());
curClip._y = (curClip._height + gap) * _loc1_;
curClip._alpha = 0;
_loc1_ = _loc1_ + 1;
}
listArray = returnLists();
loadContents();
skin_mc.StageBg_mc._width = Stage.width;
skin_mc.StageBg_mc._height = Stage.height;
skin_mc.list_mc._x = (skin_mc.StageBg_mc._width - skin_mc.list_mc._width) / 2;
skin_mc.list_mc._y = (skin_mc.StageBg_mc._height + skin_mc.sharenreply_mc._height - skin_mc.control_mc._height - skin_mc.list_mc._height) / 2;
}
else
{
skin_mc.sharenreply_mc._y = skin_mc.StageBg_mc._height / 2 - skin_mc.sharenreply_mc._height;
}
showProcessing(bufferlabel,false);
}
function returnLists()
{
var _loc2_ = new Array();
var _loc1_ = 0;
while(_loc1_ <= maxList)
{
listIndex < playListArray.length ? "" : (listIndex = 0);
_loc2_.push(playListArray[listIndex++]);
_loc1_ = _loc1_ + 1;
}
return _loc2_;
}
function loadContents()
{
var _loc2_ = 0;
while(_loc2_ <= maxList)
{
var _loc4_ = new Array();
curClip = skin_mc.list_mc["list_" + _loc2_];
for(var _loc6_ in listArray[_loc2_])
{
if(playListDesc.length > 0)
{
var _loc3_ = 0;
while(_loc3_ < playListDesc.length)
{
if(_loc6_ == playListDesc[_loc3_].Name)
{
if(listArray[_loc2_][_loc6_] != "")
{
_loc4_.push(playListDesc[_loc3_].Value + listArray[_loc2_][_loc6_]);
}
}
_loc3_ = _loc3_ + 1;
}
}
else
{
_loc4_.push("Name: " + listArray[_loc2_].Name);
_loc4_.push("Rating: " + listArray[_loc2_].Rating);
_loc4_.push("Comments: " + listArray[_loc2_].Comments);
_loc4_.push("Author: " + listArray[_loc2_].Authour);
}
}
_loc4_.reverse();
skin_mc.list_mc["list_" + _loc2_].lists = new Array();
skin_mc.list_mc["list_" + _loc2_].lists = _loc4_;
skin_mc.list_mc["list_" + _loc2_].thumbs = listArray[_loc2_].Thumbnails;
skin_mc.list_mc["list_" + _loc2_].rates = listArray[_loc2_].Rating;
skin_mc.list_mc["list_" + _loc2_].targetUrl = listArray[_loc2_].url;
skin_mc.list_mc["list_" + _loc2_].targetWin = listArray[_loc2_].target;
if(themepresent)
{
var _loc5_ = 0;
while(_loc5_ < themesArray.length)
{
if(themesArray[_loc5_].name == "listholder")
{
applyRGB(skin_mc.list_mc["list_" + _loc2_].bg_mc,themesArray[_loc5_].color,themesArray[_loc5_].alpha);
}
_loc5_ = _loc5_ + 1;
}
}
skin_mc.list_mc["list_" + _loc2_].onEnterFrame = function()
{
this.showLables(this.lists);
loadThums(this.thumbs,this.clip);
delete this.onEnterFrame;
makeFadeOut(this,100,5);
};
_loc2_ = _loc2_ + 1;
}
}
function setListPosition()
{
setLabels();
skin_mc.StageBg_mc._width = Stage.width;
skin_mc.StageBg_mc._height = Stage.height;
skin_mc.list_mc._x = (skin_mc.StageBg_mc._width - skin_mc.list_mc._width) / 2;
skin_mc.list_mc._y = (skin_mc.StageBg_mc._height - skin_mc.list_mc._height - skin_mc.control_mc._height) / 2;
maxList = Math.round((skin_mc.video_mc._height + skin_mc.control_mc._height) / skin_mc.listHeight) - 3;
if(playerStatus == "finished")
{
clearList();
showList();
}
}
function clearList()
{
var _loc1_ = new classes.ag_removeMovie();
_loc1_.removeAll(skin_mc.list_mc);
}
function loadThums(thums, movi_mc)
{
var _loc2_ = thums.split(",");
movi_mc.totalImages = _loc2_.length;
movi_mc.loadedcount = 0;
var _loc1_ = 0;
while(_loc1_ < _loc2_.length)
{
curMovie = movi_mc.createEmptyMovieClip("clip" + _loc1_,movi_mc.getNextHighestDepth());
var _loc4_ = new classes.ag_loadClip(_loc2_[_loc1_],curMovie,undefined,undefined,onLoaded);
_loc1_ = _loc1_ + 1;
}
}
function onLoaded(movObj)
{
if(movObj.status == "success")
{
movObj.target_mc._width = movObj.target_mc._parent.base_mc._width;
movObj.target_mc._height = movObj.target_mc._parent.base_mc._height;
movObj.target_mc._x = movObj.target_mc._parent.base_mc._x;
movObj.target_mc._y = movObj.target_mc._parent.base_mc._y;
movObj.target_mc._parent.loadedcount = movObj.target_mc._parent.loadedcount + 1;
movObj.target_mc._visible = false;
if(movObj.target_mc._parent.loadedcount == movObj.target_mc._parent.totalImages)
{
if(movObj.target_mc._parent.totalImages != 1)
{
movObj.target_mc._parent._parent.animation.callInterval(6);
}
vid = movObj.target_mc._parent._parent._name.split("_")[1];
if(vid == maxList - 1 or vid == maxList - 1)
{
clearInterval(idVal);
showLeveler();
}
movObj.target_mc._visible = true;
movObj.target_mc._parent._parent.loading_mc._visible = false;
}
}
if(movObj.status == "error")
{
movObj.target_mc._parent.loadedcount = movObj.target_mc._parent.loadedcount + 1;
}
}
function showLeveler()
{
skin_mc.backList_mc._visible = true;
skin_mc.frontList_mc._visible = true;
skin_mc.frontList_mc.paused = false;
skin_mc.frontList_mc.showLeveler(1,mc_holder.frontList_mc);
}
var listArray = new Array();
var gap = 3;
var gap = 3;
var maxList = 3;
var listIndex = 0;
var initSharebtnY = skin_mc.sharenreply_mc._y;
skin_mc.frontList_mc.listNext_btn.onRelease = function()
{
showList();
};
skin_mc.backList_mc.listBack_btn.onRelease = function()
{
listIndex -= 2;
showList();
};