flash as 2.0调用外部movie 实现代码
这是一个简单的代码哦,是用flash as 2.0调用外部movie 实现代码哦,并且有一种缓冲效果,下面看看代码吧。
line.onEnterFrame = function ()
{
if (this._currentframe != this._totalframes)
{
this.nextFrame();
}
else
{
container.loadMovie("team.swf");
this.btn1.onRelease = function ()
{
container.loadMovie("team.swf");
};
this.btn1.onRollOver = function ()
{
this.gotoAndPlay(2);
};
this.btn1.onRollOut = function ()
{
this.gotoAndPlay(1);
};
this.btn2.onRelease = function ()
{
container.loadMovie("yuyuekongjian.swf");
};
this.btn2.onRollOver = function ()
{
this.gotoAndPlay(2);
};
this.btn2.onRollOut = function ()
{
this.gotoAndPlay(1);
};
btn_close.onRelease = function ()
{
container.removeMovieClip();
};
delete this.onEnterFrame;
} // end else if
};
补充:flash教程,Action