//*****Main Moive
// Action script...
// [Action in Frame 1]
function hideBtn()
{
for (i = 1; i < 7; i++)
{
ico_mc["btn" + i + "_btn"].enabled = false;
} // end of for
} // End of the function
function showBtn()
{
for (i = 1; i < 7; i++)
{
ico_mc["btn" + i + "_btn"].enabled = true;
} // end of for
} // End of the function
System.security.allowDomain("www.renren.com", "www.mop.com", "www.dudu.com", "interface.renren.com");
Stage.showMenu = false;
Stage.scaleMode = "noScale";
stop();
var swfs = "http://www.renren.com/user/flash/swfs/";
local_data = SharedObject.getLocal("flashID");
if (local_data.data.myflash != undefined)
{
hideBtn();
if (local_data.data.myflash == "weather")
{
this.createEmptyMovieClip("weather_mc", 2);
_root.weather_mc.loadMovie(swfs + local_data.data.myflash + ".swf");
}
else if (local_data.data.myflash == "worldtime")
{
this.createEmptyMovieClip("time_mc", 2);
time_mc._lockroot = true;
_root.time_mc.loadMovie(swfs + local_data.data.myflash + ".swf");
}
else if (local_data.data.myflash == "calendar")
{
this.createEmptyMovieClip("cla_mc", 2);
_root.cla_mc.loadMovie(swfs + local_data.data.myflash + ".swf");
}
else if (local_data.data.myflash == "calculator")
{
this.createEmptyMovieClip("cal_mc", 2);
_root.cal_mc.loadMovie(swfs + local_data.data.myflash + ".swf");
}
else if (local_data.data.myflash == "astro")
{
this.createEmptyMovieClip("as_mc", 2);
as_mc._lockroot = true;
_root.as_mc.loadMovie(swfs + local_data.data.myflash + ".swf");
}
else if (local_data.data.myflash == "tv")
{
this.createEmptyMovieClip("wtv_mc", 2);
wtv_mc._lockroot = true;
_root.wtv_mc.loadMovie(swfs + local_data.data.myflash + ".swf");
} // end if
} // end if
this.createEmptyMovieClip("menumask_mc", 11);
with (menumask_mc)
{
_x = 10;
_y = 17;
beginFill(0, 100);
moveTo(0, 0);
lineTo(275, 0);
lineTo(275, 85);
lineTo(0, 85);
lineTo(0, 0);
endFill();
} // End of with
ico_mc.setMask("menumask_mc");
right_btn._visible = false;
arrow_right_mc._visible = false;
left_btn.onRollOver = function ()
{
dis = ico_mc._width - menumask_mc._width;
ico_mc.onEnterFrame = function ()
{
this._x = this._x - (this._x + dis * 1.200000) * 0.400000;
if (ico_mc._x < -20)
{
left_btn._visible = false;
arrow_left_mc._visible = false;
right_btn._visible = true;
arrow_right_mc._visible = true;
} // end if
};
};
right_btn.onRollOver = function ()
{
dis = ico_mc._width - menumask_mc._width;
ico_mc.onEnterFrame = function ()
{
this._x = this._x - (this._x - dis * 1.200000) * 0.400000;
if (ico_mc._x > 28)
{
left_btn._visible = true;
arrow_left_mc._visible = true;
right_btn._visible = false;
arrow_right_mc._visible = false;
} // end if
};
};
//*****botton 1
// Action script...
on (release)
{
_parent.createEmptyMovieClip("weather_mc", 2);
_parent.weather_mc.loadMovie(_parent.swfs + "weather.swf");
_parent.hideBtn();
天气_mc.gotoAndStop(1);
_parent.mask_mc.gotoAndPlay(6);
local_data = SharedObject.getLocal("flashID");
local_data.data.myflash = "weather";
local_data.flush();
}
on (rollOver, dragOver)
{
天气_mc.gotoAndPlay(2);
cir_mc.onEnterFrame = function ()
{
this._x = this._x + (btn1_btn._x - this._x) * 0.400000 - 1;
};
}
on (rollOut, dragOut)
{
天气_mc.gotoAndStop(1);
}
//****botton 2
// Action script...
on (release)
{
_parent.createEmptyMovieClip("time_mc", 2);
_parent.time_mc.loadMovie(_parent.swfs + "worldtime.swf");
trace(_parent.swfs);
_parent.time_mc._lockroot = true;
_parent.hideBtn();
时钟_mc.gotoAndStop(1);
_parent.mask_mc.gotoAndPlay(6);
local_data = SharedObject.getLocal("flashID");
local_data.data.myflash = "worldtime";
local_data.flush();
}
on (rollOver, dragOver)
{
时钟_mc.gotoAndPlay(2);
cir_mc.onEnterFrame = function ()
{
this._x = this._x - (this._x - btn2_btn._x) * 0.400000;
};
}
on (rollOut, dragOut)
{
时钟_mc.gotoAndStop(1);
}
//****botton 3
// Action script...
on (release)
{
_parent.createEmptyMovieClip("cla_mc", 2);
_parent.cla_mc.loadMovie(_parent.swfs + "calendar.swf");
_parent.hideBtn();
日历_mc.gotoAndStop(1);
_parent.mask_mc.gotoAndPlay(6);
local_data = SharedObject.getLocal("flashID");
local_data.data.myflash = "calendar";
local_data.flush();
}
on (rollOver, dragOver)
{
日历_mc.gotoAndPlay(2);
cir_mc.onEnterFrame = function ()
{
this._x = this._x - (this._x - btn3_btn._x) * 0.400000;
};
}
on (rollOut, dragOut)
{
日历_mc.gotoAndStop(1);
}
//****botton 4
// Action script...
on (release)
{
_parent.createEmptyMovieClip("cal_mc", 2);
_parent.cal_mc.loadMovie(_parent.swfs + "calculator.swf");
_parent.hideBtn();
计算器_mc.gotoAndStop(1);
_parent.mask_mc.gotoAndPlay(6);
local_data = SharedObject.getLocal("flashID");
local_data.data.myflash = "calculator";
local_data.flush();
}
on (rollOver, dragOver)
{
计算器_mc.gotoAndPlay(2);
cir_mc.onEnterFrame = function ()
{
this._x = this._x - (this._x - btn4_btn._x) * 0.400000;
};
}
on (rollOut, dragOut)
{
计算器_mc.gotoAndStop(1);
}
//****botton 5
// Action script...
on (release)
{
_parent.createEmptyMovieClip("as_mc", 2);
_parent.as_mc.loadMovie(_parent.swfs + "astro.swf");
_parent.as_mc._lockroot = true;
_parent.hideBtn();
星运_mc.gotoAndStop(1);
_parent.mask_mc.gotoAndPlay(6);
local_data = SharedObject.getLocal("flashID");
local_data.data.myflash = "astro";
local_data.flush();
}
on (rollOver, dragOver)
{
星运_mc.gotoAndPlay(2);
cir_mc.onEnterFrame = function ()
{
this._x = this._x - (this._x - btn5_btn._x) * 0.400000 - 1;
};
}
on (rollOut, dragOut)
{
星运_mc.gotoAndStop(1);
}
//****botton 6
// Action script...
on (release)
{
_parent.createEmptyMovieClip("wtv_mc", 2);
_parent.wtv_mc.loadMovie(_parent.swfs + "tv.swf");
_parent.hideBtn();
_parent.wtv_mc._lockroot = true;
节目单_mc.gotoAndStop(1);
_parent.mask_mc.gotoAndPlay(6);
local_data = SharedObject.getLocal("flashID");
local_data.data.myflash = "tv";
local_data.flush();
}
on (rollOver, dragOver)
{
节目单_mc.gotoAndPlay(2);
cir_mc.onEnterFrame = function ()
{
this._x = this._x - (this._x - btn6_btn._x) * 0.400000;
};
}
on (rollOut, dragOut)
{
节目单_mc.gotoAndStop(1);
}