悬赏100 Flash代码问题!!影片中的某个脚本导致Adobe flash player 10速度降低。。
因为做的网站上要加个flash,我下载了一个,用硕思转了下swf,然后用flash8编辑修改,保存,发布,将原来的swf文件改名,把新发布的swf改成原来就有的那个swf...
因为做的网站上要加个flash,我下载了一个,用硕思转了下swf,然后用flash8编辑修改,保存,发布,将原来的swf文件改名,把新发布的swf改成原来就有的那个swf文件的名字,刷新下页面,结果报错:“影片中的某个脚本导致Adobe flash player 10速度降低如果继续运行电脑将有一段时间没有响应是否要终止此脚本”,
点击“是”,大概几秒后,页面跳出,但是无内容呈现。
如果打开硕思生成的flash源文件,不做任何修改,直接发布swf文件,修改名称后,页面还是同样报错。导出flash版本调低了也没有用。
百度上有人说代码出现死循环,但我没有看出有什么问题,请哪位高手帮看一下!!代码如下:
// [onClipEvent of sprite 7 in frame 53]
onClipEvent (load)
{
}
// [onClipEvent of sprite 8 in frame 53]
onClipEvent (load)
{
_root.MovieControllPath = this;
}
// [Action in Frame 1]
Stage.scaleMode = "noscale";
// [Action in Frame 65]
this.bt_control.onRollOver = function ()
{
};
this.bt_control.onRollOut = function ()
{
};
this.bt_control.onRelease = function ()
{
var _l1 = this;
if (_l1._currentframe == 1)
{
_l1.nextFrame();
_root.MovieControl = false;
}
else
{
_l1.prevFrame();
_root.MovieControl = true;
} // end if
ns.pause();
};
// [Action in Frame 66]
this.stop();
var netConn = new NetConnection();
netConn.connect(null);
var ns = new NetStream(netConn);
ns.onStatus = function (infoObject)
{
var _l1 = infoObject;
status.text = status.text + "Status (NetStream)\r";
status.text = status.text + ("Level: " + _l1.level + "\n");
status.text = status.text + ("Code: " + _l1.code + "\n");
if (_l1.code == "NetStream.Play.Stop")
{
if (_root.SoundControl == true)
{
_root.Sound_on();
} // end if
} // end if
};
my_video.attachVideo(ns);
my_video._visible = false;
ns.setBufferTime(5);
ns.onMetaData = function (infoObject)
{
var _l2 = infoObject;
var _l3 = _global;
while (_l2 != null)
{
var _l1 = _l2;
trace(_l1 + " = " + _l2[_l1]);
} // end while
_l3.Movie_duration = _l2.duration;
_l3.Movie_width = _l2.width;
_l3.Movie_height = _l2.height;
PlayerSet();
};
PlayerSet = function ()
{
var _l1 = this;
_l1.mc_control.setMovieController(_global.Movie_duration, ns, _l1.my_video._width - 30);
_l1.my_video._visible = true;
};
_global.nss = ns;
ns.play("gate_mv.flv");
stop();
// [Action in Frame 133]
stop(); 展开
点击“是”,大概几秒后,页面跳出,但是无内容呈现。
如果打开硕思生成的flash源文件,不做任何修改,直接发布swf文件,修改名称后,页面还是同样报错。导出flash版本调低了也没有用。
百度上有人说代码出现死循环,但我没有看出有什么问题,请哪位高手帮看一下!!代码如下:
// [onClipEvent of sprite 7 in frame 53]
onClipEvent (load)
{
}
// [onClipEvent of sprite 8 in frame 53]
onClipEvent (load)
{
_root.MovieControllPath = this;
}
// [Action in Frame 1]
Stage.scaleMode = "noscale";
// [Action in Frame 65]
this.bt_control.onRollOver = function ()
{
};
this.bt_control.onRollOut = function ()
{
};
this.bt_control.onRelease = function ()
{
var _l1 = this;
if (_l1._currentframe == 1)
{
_l1.nextFrame();
_root.MovieControl = false;
}
else
{
_l1.prevFrame();
_root.MovieControl = true;
} // end if
ns.pause();
};
// [Action in Frame 66]
this.stop();
var netConn = new NetConnection();
netConn.connect(null);
var ns = new NetStream(netConn);
ns.onStatus = function (infoObject)
{
var _l1 = infoObject;
status.text = status.text + "Status (NetStream)\r";
status.text = status.text + ("Level: " + _l1.level + "\n");
status.text = status.text + ("Code: " + _l1.code + "\n");
if (_l1.code == "NetStream.Play.Stop")
{
if (_root.SoundControl == true)
{
_root.Sound_on();
} // end if
} // end if
};
my_video.attachVideo(ns);
my_video._visible = false;
ns.setBufferTime(5);
ns.onMetaData = function (infoObject)
{
var _l2 = infoObject;
var _l3 = _global;
while (_l2 != null)
{
var _l1 = _l2;
trace(_l1 + " = " + _l2[_l1]);
} // end while
_l3.Movie_duration = _l2.duration;
_l3.Movie_width = _l2.width;
_l3.Movie_height = _l2.height;
PlayerSet();
};
PlayerSet = function ()
{
var _l1 = this;
_l1.mc_control.setMovieController(_global.Movie_duration, ns, _l1.my_video._width - 30);
_l1.my_video._visible = true;
};
_global.nss = ns;
ns.play("gate_mv.flv");
stop();
// [Action in Frame 133]
stop(); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询