FLASH-在AS3中使用Caurina Tweener Class特效库
虫神曰:
这篇文章写得很详细滴,非常不错,推荐阅读哈,即使英文不懂的人,单单看调用的代码就明白怎么使用这个效果库了。
如果你要了解关于这个类的项目更多信息,请访问官方网站:http://code.google.com/p/tweener/
重点提示: caurina目录必需与您的FLASH项目同一个目录。
我们需要像下面代码一般引用这个类:
import caurina.transitions.Tweener;
现在让我们看看最基本的变化应用:
Tweener.addTween(circle, {x:390, time:1, transition:”linear”});
参数说明:
* circle – 效果要应用的对象
* x:390 – 这个参数是原对象的属性值
* time –效果应用延时几秒
* transition – 变化特效库的特效类型,具体其他的类型,请看参考手册
* 其他参数请参考效果库手册
1.创建自定义错误页(Create a custom error page)
2.禁止目录浏览(Prevent directory browsing)
3.设置每个目录的启动文档(Set the default page of each directory)
4.设置301重定向(Set up a 301 redirect)
5.使用GZIP压缩输出文件(Compress file output with GZIP)
6.重定向到一个加密的HTTPS的链接(Redirect to a secure https connection)
7.禁止脚本引擎运行(Block script execution)
8.强制下载的文件出现另存为对话框(Force a file to download with a “Save As” prompt)
9.上传功能的限制设置(Restrict file upload limits for PHP)
10.允许文件缓存功能(Enable File Caching)
11.保护你的网站,防止盗链(Protect your site from hotlinking)
12.掩饰你的文件类型(Disguise your file types)
