Alpha Fader can be downloaded here >>

可以在这里下载Alpha Fader >>

Example of Coded Example that took a couple of seconds to create!

编码示例的示例花了几秒钟时间创建!

One of the most common tasks done in Flash via ActionScript is the opacity fade, and when used cleverly can add a nice touch to your Flash projects.

通过ActionScript在Flash中完成的最常见的任务之一是不透明度淡入淡出,如果巧妙地使用它,可以为Flash项目增添一丝亮丽的色彩。

I tend to use opacity fades quite a lot via ActionScript, and get pretty bored of typing in the names of Movie Clips, and adding the control code. Call me lazy? Nope, I just want to move on to bigger parts of a project, and those valuable seconds saved here and there really add up in the full run of a project.

我倾向于通过ActionScript大量使用不透明度淡入淡出,并且对键入影片剪辑的名称以及添加控制代码感到非常无聊。 叫我偷懒? 不,我只想继续进行项目的更大部分,而那些宝贵的时间在这里和那里保存下来的时间确实会在整个项目中累加起来。

I created this panel, to alleviate my pain, and it does quite a good job, simply select either a single or group of Movie Clips from the stage (doesn’t matter if they are named instances or not as the code will take care of unnamed instances), and play with the following parameters

我创建了这个面板,以减轻痛苦,而且效果很好,只需从舞台中选择一个或一组影片剪辑即可(它们是否命名为实例都没有关系,因为代码将处理这些实例)未命名实例),并使用以下参数进行播放

Event Handler Checkboxes: The type of interaction with the Movie Clip Start Opacity: The starting opacity for the effect End Opacity: The ending opacity for the effect Fade In Speed: Speed of fading in Fade Out Speed: Speed of fading out

事件处理程序复选框:与影片剪辑的交互类型起始不透明度:效果的起始不透明度结束不透明度:效果的终止不透明度渐入速度:渐隐的速度渐隐的速度:渐隐的速度

Once you are happy with your settings, clicking the ‘Generate Code’ button, copies the externalized .as file that we use to hold the Movie Clip prototype code into your working directory for the FLA that you are working with, and add the necessary code to the currently selected frame.

对设置满意后,请单击“生成代码”按钮,将用于保存Movie Clip原型代码的外部化.as文件复制到您正在使用的FLA的工作目录中,并添加必要的代码到当前选定的帧。

Using this methodology, and the extension, it took about 2-3 seconds to turn this lump of Movie Clips into nicely fading Movie Clips…

使用这种方法和扩展,大约花了2-3秒的时间才能将这组影片剪辑转换为褪色的影片剪辑…

…removing the headache of adding this lump of code to the frame as its all done automatically.

…省去了将这些大量代码自动添加到框架中的麻烦。

#include "alpha.as" Symbol3.onRollOver = function(){ this.alpha(5,100); } Symbol3.onRollOut = function(){ this.alpha(5,10); }

#include "alpha.as" Symbol3.onRollOver = function(){ this.alpha(5,100); } Symbol3.onRollOut = function(){ this.alpha(5,10); }

Symbol6.onRollOver = function(){ this.alpha(5,100); } Symbol6.onRollOut = function(){ this.alpha(5,10); }

Symbol6.onRollOver = function(){this.alpha(5,100); } Symbol6.onRollOut = function(){this.alpha(5,10); }

Symbol9.onRollOver = function(){ this.alpha(5,100); } Symbol9.onRollOut = function(){ this.alpha(5,10); }

Symbol9.onRollOver = function(){this.alpha(5,100); } Symbol9.onRollOut = function(){this.alpha(5,10); }

Symbol12.onRollOver = function(){ this.alpha(5,100); } Symbol12.onRollOut = function(){ this.alpha(5,10); }

Symbol12.onRollOver = function(){this.alpha(5,100); } Symbol12.onRollOut = function(){this.alpha(5,10); }

Symbol2.onRollOver = function(){ this.alpha(5,100); } Symbol2.onRollOut = function(){ this.alpha(5,10); }

Symbol2.onRollOver = function(){this.alpha(5,100); } Symbol2.onRollOut = function(){this.alpha(5,10); }

Symbol5.onRollOver = function(){ this.alpha(5,100); } Symbol5.onRollOut = function(){ this.alpha(5,10); }

Symbol5.onRollOver = function(){this.alpha(5,100); } Symbol5.onRollOut = function(){this.alpha(5,10); }

Symbol8.onRollOver = function(){ this.alpha(5,100); } Symbol8.onRollOut = function(){ this.alpha(5,10); }

Symbol8.onRollOver = function(){this.alpha(5,100); } Symbol8.onRollOut = function(){this.alpha(5,10); }

Symbol11.onRollOver = function(){ this.alpha(5,100); } Symbol11.onRollOut = function(){ this.alpha(5,10); }

Symbol11.onRollOver = function(){this.alpha(5,100); } Symbol11.onRollOut = function(){this.alpha(5,10); }

Symbol10.onRollOver = function(){ this.alpha(5,100); } Symbol10.onRollOut = function(){ this.alpha(5,10); }

Symbol10.onRollOver = function(){this.alpha(5,100); } Symbol10.onRollOut = function(){this.alpha(5,10); }

Symbol7.onRollOver = function(){ this.alpha(5,100); } Symbol7.onRollOut = function(){ this.alpha(5,10); }

Symbol7.onRollOver = function(){this.alpha(5,100); } Symbol7.onRollOut = function(){this.alpha(5,10); }

Symbol4.onRollOver = function(){ this.alpha(5,100); } Symbol4.onRollOut = function(){ this.alpha(5,10); }

Symbol4.onRollOver = function(){this.alpha(5,100); } Symbol4.onRollOut = function(){this.alpha(5,10); }

Symbol1.onRollOver = function(){ this.alpha(5,100); } Symbol1.onRollOut = function(){ this.alpha(5,10); }

Symbol1.onRollOver = function(){this.alpha(5,100); } Symbol1.onRollOut = function(){this.alpha(5,10); }

Symbol3._alpha = 10;

Symbol3._alpha = 10;

Symbol6._alpha = 10;

Symbol6._alpha = 10;

Symbol9._alpha = 10;

Symbol9._alpha = 10;

Symbol12._alpha = 10;

Symbol12._alpha = 10;

Symbol2._alpha = 10;

Symbol2._alpha = 10;

Symbol5._alpha = 10;

Symbol5._alpha = 10;

Symbol8._alpha = 10;

Symbol8._alpha = 10;

Symbol11._alpha = 10;

Symbol11._alpha = 10;

Symbol10._alpha = 10;

Symbol10._alpha = 10;

Symbol7._alpha = 10;

Symbol7._alpha = 10;

Symbol4._alpha = 10;

Symbol4._alpha = 10;

Symbol1._alpha = 10;

Symbol1._alpha = 10;

Alpha Fader can be downloaded here >> , and I hope you find it useful!

可以在这里>>下载Alpha Fader ,希望您发现它有用!

翻译自: https://www.sitepoint.com/alpha-fader-for-flash-mx-2004/

Flash MX 2004的Alpha Fader相关推荐

  1. 用Flash MX 2004自制调色版和配色组件(一)

    王咏刚,2005年4月 最近一段时间,因为工作上涉及了许多在Flash中搭配颜色的应用,我自己就仿照着ColorImpact等配色软件的样子,用Flash MX 2004的定制组件功能,做了一个简单的 ...

  2. flash mx拖拽实例_集成Flash MX 2004和Director MX 2004

    flash mx拖拽实例 There are no two ways about it: Flash MX 2004 is a powerful development environment for ...

  3. Flash MX 2004 编程(AS2.0)教程(一)

    第1章入门 ActionScript是一种编程语言,Flash专用.ActionScript的语法类似Javascript或者Java,如果你以前接触过这两种语言,你会发现ActionScript非常 ...

  4. 适用于Flash MX 2004的SitePoint Flash Blog面板

    Note: Extension Updated 04/08/2004 to include a link to a summary of all the blogs 注意:扩展名已于2004年4月8日 ...

  5. 博大考神autocad2004职称计算机,博大考神职称计算机Flash MX 2004动画制作

    博大考神职称计算机Flash MX 2004动画制作 来源:博大考神职称计算机手把手加题库版下载 发布时间:2013-04-26 浏览: 温馨提示:您正在下载博大考神,购买后可使用全部功能: 现在购买 ...

  6. Macromedia Flash MX 2004 V7.01 简体中文版下载地址及例视频教程(swf版)

    Macromedia Flash MX 2004 V7.01 简体中文版 软件大小:48.65 MB 软件语言:简体中文 软件类别:国外软件 / 动画制作 运行环境:XP, 2000, NT, Win ...

  7. Flash MX 2004 中的文本遮罩

    动态文本和部分静态文本(使用设备字体)在Flash Player r6.0.47.0以前的版本中是不能遮罩的,新版本部分解决了这个问题.如图: 需要注意的是:1.时间线上的mask不起作用,还是老样子 ...

  8. 大概看了一下《Flash MX 2004 -- 数据库应用开发 - 基于.NET架构》,感觉有点迷惘了!...

    整本书都是围绕flash调用.dll与aspx页面,.NET开发的页面一下从主角被扔到了配角的地位... 难道就没方法通过页面,经过Flash remoting去控制Flash吗? 而且,非常不公平的 ...

  9. Flash MX 2004 编程(AS2.0)教程(十一)

    2.3.2.2图片的自动切换 1.回到主场景中,将上一步制作好的影片剪辑拖放到场景中并将其命名为picture_mc,调整其长度为45帧. 2.添加一个动态文本,命名为message_txt,我们将用 ...

  10. flash mx拖拽实例_在Flash MX中制作射击游戏

    flash mx拖拽实例 Have you ever fancied venting your frustration virtually on targets of your choice, bui ...

最新文章

  1. Python自省(反射) 与 inspect 模块
  2. A - Super Jumping! Jumping! Jumping!
  3. 7.18自学c++笔记
  4. JS中SetTimeOut和SetInterval方法的区别?
  5. 统计图的连通块的个数的两种方法
  6. C++初始化参数列表对成员函数初始化
  7. 05-python中的异常
  8. Window10 C盘清理经验
  9. aircrack安装并破解wifi
  10. python爬虫:爬取链家深圳全部二手房的详细信息
  11. 数据库专辑--SQL分类汇总(group by...with rollup),增加“总计”字段
  12. [渝粤教育] 西南科技大学 英语(A)1 在线考试复习资料
  13. TSP问题(贪心法)最近邻点和最短连接
  14. linux连接小米随身wifi密码忘记了,小米路由器无线密码(wifi密码)忘记了怎么办?...
  15. Maven学习(一)---Maven简介
  16. ROS的 sudo rosdep init 的报错终极解决方案
  17. Aspose.Slides使用教程:使用 C++ 在 PowerPoint 演示文稿中添加幻灯片切换
  18. leetcode75 颜色分类
  19. 西瓜大战java_让“西瓜大战”来得更加猛烈些
  20. 菜鸟教程 + Java基础课程 + part2

热门文章

  1. Android和风SDK,Android 和风天气SDK获取天气
  2. 组合最优化——凸集凸函数
  3. oracle从11.0.2.4.0打PSU 11.0.2.4.8
  4. Visio 导出图片时字符间距错乱
  5. 军事训练飞机的全球与中国市场2022-2028年:技术、参与者、趋势、市场规模及占有率研究报告
  6. Excise_Oop1
  7. mysql opened tables_open_table与opened_table --2
  8. Python 标准库之 Math 数学函数
  9. win10下如何装win7
  10. Laravel-Vue开发初探二:Inertia拾遗