“最佳"的动作代码SWF的高质量播放-没有效果 [英] actionscript code for "BEST" quality playback for swf - no effect

查看:102
本文介绍了“最佳"的动作代码SWF的高质量播放-没有效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的视频框在页面加载时打开并播放swf效果很好,但是质量不是很好,我可以按原样运行此脚本,但是我尝试将其修改为不使用任何按钮即可自动执行:这是我的索引页面

my videobox opens on pageload and plays a swf just fine but the quality is not great, i can get this script to work [as is] but i tried to modify it to just do it automatically with no buttons: heres my index page

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"

 http-equiv="content-type">
  <title>My page loads a video!</title>
  <script type="text/javascript" src="js/mootools.js"></script>
  <script type="text/javascript" src="js/swfobject.js"></script>
  <script type="text/javascript" src="js/videobox.js"></script>
  <link rel="stylesheet" href="css/videobox.css"

 type="text/css" media="screen">
</head>
<body scroll="no" style="background-image: url(bg.jpg);"

 onload="doOpenVideoDelayed('ani.swf', 'Video', 'vidbox 400 300 play', 1000);">
stop();
_root._quality = "BEST";
this._parent._quality = "BEST";
}


这部分在正确的位置吗? :〜我已经完全完成了代码的操作吗?:-O我是从下面的动作脚本进行了修改的

stop();
_root._quality =最佳";
this._parent._quality =最佳";
}



is this part in the right place? :~ have i completely f***ed the code? :-O i modified it from the actionscript below

stop();
_root._quality = "BEST";
this._parent._quality = "BEST";
}


stop();
_root._quality = "BEST";
low_qual_btn.onRelease = function() {
this._parent._quality = "LOW";
}
med_qual_btn.onRelease = function() {
this._parent._quality = "MEDIUM";
}
high_qual_btn.onRelease = function() {
this._parent._quality = "HIGH";
}
best_qual_btn.onRelease = function() {
this._parent._quality = "BEST";
}


来自此站点-> http://fcontheweb.com/articles/swf_quality/ [


from this site --> http://fcontheweb.com/articles/swf_quality/[^]

推荐答案

您是否尝试过使用
http://code.google.com/p/swfobject/ [ http://kb2.adobe.com/cps/127/tn_12701.html [ ^ ]

vmode可以解决您的问题,您可以将其设置为以下之一:
窗口:电影在网页上的矩形窗口中播放.
不透明:电影将其后面的所有内容隐藏起来.
透明:HTML页面的背景在影片的所有透明部分中显示.此选项会降低动画性能.

将vmode设置为透明是计算上最昂贵的选项...,而窗口(在Windows上的IE中)通常提供最佳性能

还要记住,将质量设置为最佳可提供最佳的显示质量,但不考虑播放速度.所有输出均经过抗锯齿处理,所有位图均经过平滑处理

问候
Espen Harlinn
Have you tried using
http://code.google.com/p/swfobject/[^]

Here is the doc on flash params
http://kb2.adobe.com/cps/127/tn_12701.html[^]

vmode could be the solution to your problem you can set it to one of the following:
window: movie plays in its own rectangular window on a web page.
opaque: the movie hides everything on the page behind it.
transparent: the background of the HTML page shows through all transparent portions of the movie. This option can slow animation performance.

Setting vmode to transparent is the computationally most expensive option ..., while window (in IE on Windows) usually provides the best performance

Also remember that setting quality to best provides the best display quality, but does not consider playback speed. All output is anti-aliased and all bitmaps are smoothed

Regards
Espen Harlinn


这个小例子帮助我修复了http://www.adobe.com/designcenter/tutorials/videoencoderwizard/,现在可以正常播放.
this tut helped me fix http://www.adobe.com/designcenter/tutorials/videoencoderwizard/ now it plays perfect.


这篇关于“最佳"的动作代码SWF的高质量播放-没有效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆