Tweening transition of Brightness in ActionScript with Tweener
来源:互联网 发布:南水北调 知乎 编辑:程序博客网 时间:2024/06/10 07:08
The trial is designed for e-Notice project. And the target is to transit the brightness of a MovieClip, it is now can be done with Tweener pretty simply.
Here is a download link for Tweener from its Google Project home page:
http://code.google.com/p/tweener/downloads/list
This is the link of document for brightness:
http://hosted.zeh.com.br/tweener/docs/en-us/properties/ColorShortcuts.html
Snapshot:
Here are the AS code on the timeline:
import flash.display.Loader;import flash.net.URLRequest;import flash.events.Event;import flash.events.MouseEvent;import caurina.transitions.Tweener;import caurina.transitions.properties.ColorShortcuts;import caurina.transitions.Equations;var ldr:Loader;var rqt:URLRequest;var lnk:String = "assets/3.jpg";init();function init():void{ColorShortcuts.init();ldr = new Loader();rqt = new URLRequest(lnk);ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoaded);ldr.load(rqt);}function imgLoaded(e:Event):void{imgHolder.addChild(Loader(e.target.loader));transBtnessBtn.addEventListener(MouseEvent.CLICK, onTrans);}function onTrans(me:MouseEvent):void{Tweener.addTween( imgHolder, {time:1.8, _brightness:-2.5,transition:Equations.easeOutBack} ); }
Link For Fla file:
transition_brightness
reference
http://www.websector.de/blog/2007/08/28/tweener-as3-extension-for-color-properties-_brightness-_contrast-and-_saturation/
http://www.flycan.com.tw/board/modules/newbb/viewtopic.php?topic_id=1210
- Tweening transition of Brightness in ActionScript with Tweener
- picture_info demo of transition in css
- Drop-in replacement for UINavigationController with custom transition animations
- Using ActionScript in Flex
- RegExp in ActionScript 3.0
- summary with him in half of year
- Changing the contrast and brightness of an image!
- Use Retation Sensor to control the brightness of LED lights
- HBase-Regions in Transition 问题
- tweener 简介
- 认识Tweener
- Tweener 語法實習
- Use Try/Catch in ActionScript
- Calling RemoteObject components in ActionScript
- Compiling ActionScript In The Enterprise
- create module in actionscript project
- Constructor Overloading in Actionscript 3.0
- Autoresize of columns in MSHFlexGrid with multiple bands
- DWG文件生成函数的实现
- 为什么程序员不愿意写文档
- C++类四个默认函数---构造函数、析构函数、拷贝函数、赋值函数
- Java学习网站博客(转载)
- android 2.3 StrictMode 使用
- Tweening transition of Brightness in ActionScript with Tweener
- activemq的web管理界面
- Axis调用webservice查看天气情况(固定地区)
- android开发环境问题
- ExpandableListView的下拉图标替换
- Varnish解决带参数的URL可能造成多份缓存的问题
- strtok()--SelectItem--HitTest
- VC编写vista或win7下需要管理员权限运行的程序
- VMWare进入BIOS