我的 flashplayer 在时间轴中显示 NaH:NaH,我该如何修复它?
我在 Flash 视频播放器动作脚本中添加了一个脚本,以便当 Flash 视频结束时它应该转到第一帧。它工作正常!但存在一个问题,即当视频播放完毕后转到第一帧时,会在视频后面显示无效的“NaH:NaH”。
这是在将脚本(视频完成后转到第一帧的脚本)运行到现有动作脚本后发生的。 我需要将时间线显示为“00:00”
任何人都可以修改代码并告诉代码背后的问题是什么......?
下面给出的脚本
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
gotoAndPlay(0);
};
flv.addEventListener("complete", listenerObject);
“flv”代表视频播放区域
请帮助我
谢谢
保罗
I've added a script in my flash video players actionscript for when flash video ends it should goes to the first frame. Its working FINE! but theres a problem that an invalid "NaH:NaH" is showing after the video when it is goes to the first frame after finished playing.
This is happening after running the script(script for going to the first frame after video finished) to the existing action script..
I need to show the timeline as "00:00"
Can anyone plz modify the code and tell what is the issue behind the code...?
The script is given below
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
gotoAndPlay(0);
};
flv.addEventListener("complete", listenerObject);
"flv" represents video playing area
Please Help Me
Thanks
Paul
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将得到
NaN
,它代表“不是数字”。您需要确保在数学计算中使用的变量实际上是数字(不是null
、undefined
、Strings
或其他数据类型)。you're getting
NaN
which stands for 'Not a Number'. you need to make sure variables you are using in your mathematical calculations are, in fact, Numbers (notnull
,undefined
,Strings
, or other data types).