Posts Tagged ‘tween’

八个我最常用的AS3开源类库

GreenSock Tween Platform

GreenSock Tween是我最常用的一个功能强大的Tween类库,详细可以见我之前的介绍。但是要注意这个类库对商业项目并不是免费使用的,可以替代的选择有很多:GTween,Tweener等等。

Bulk Loader

Bulk Loader解决的是AS3中各种不同类型文件的加载问题,实现了对各种数据类型统一的加载接口,调用非常简便。此外还具有有批量加载、优先级设置等高级功能。

Gaia Framework

Gaia是一套完整的互动网站制作框架。它定义了网站的基本数据流,采用xml进行结构配置和资源管理。各个页面之间以transitionIn,transitionInComplete,transitionOut,transitionOutComplete等步骤串联在一起。Gaia强大的自定义和事件侦听功能使用户可以很方便的更改网站逻辑。此外Gaia还整合了SWFAddress,GreenShock Tween,采用MVC,Singleton等设计模式和业界流行的最佳解决方案(Best Practice)。Gaia还提供了配套的Flash插件面板,能够很直观的帮助用户快速配置网站。
More...

GreenSock Tweening Platform v11 Beta

距离Tweenmax上次更新短短两三个月的时间,这次GreenSock又放出一个重量级的更新,就是v11(Beta)。上次讨论中说到各个Tween类库之间比较的问题,日前就有大消息放出说Gskinner要加入Tweenmax的开发,GTween并入Tweenmax应该能够扫平一切对手。还在用Tweener的同学可要好好考虑一下了。

说回这个v11,最牛的就是Timeline的两个类了。他们的前身是TweenGroup,现在已经进化的相当强大。可以想象一下,在Flash时间线上的操作几乎都能用这个类来完成。动画交叠,倒放,播放头任意指定……都是些很“舒服”的功能。

官方的名字也体现出这个类库的牛X程度:Tweening Platform,Tween平台,多么整合的名字。以后做Tween,我只用他……

TweenMax is Updated

TweenMax是功能强大的tween类引擎,最近它发布了“重大”的更新。

最大的变化来自于架构的更改:现在的TweenMax类采用流行的“Plugin”架构。可能是受到新兴的GTween的冲击,除了功能以外,现在的开发者也很注重在文件量方面的指标。采用新架构的TweenMax核心大小仅为7kb,而简化版的TweenLite更是达到了2.7kb,基本超过了GTween。用户可以根据自己的需求激活不同的Plugin,也仅仅是增加对应部分的文件量。比如只是想使用Bezier曲线的功能,就没必要请出TweenMax大哥,只需用TweenLite加Bezier插件就OK了: 

import gs.*;
import gs.plugins.*;
TweenPlugin.activate([BezierPlugin, BezierThroughPlugin]); 
TweenLite.to(mc1, 2, {bezierThrough:[{x:200, y:100}, {x:500, y:50}]});

看看下面这个官方演示就会对新架构有更直观的了解。

PluginExplorer.swf

此外新增的还有

  • frameLabel:这也是个非常实用的类。可以用帧标签来控制时间线的tween动画。
  • shortRotation:这个类是用来找最小旋转角度的。原先只用于一般的rotation,新版语法更新,现在可以用来控制三维的旋转了

官方对此次的更新是信心满满,在其放出了测试对比中也可看到TweenMax还是稳坐第一。

更多的信息去官方看吧,强烈推荐升级。

Tweener

Aimed both for designers and advanced developers, the Tweener syntax is created with simplicity of use in mind, while still allowing access to more advanced features. Because of this, it follows a 'one-line' design mentality when creating new tweenings, with no instancing required (as it's a static Class) and a set of optional parameters. Also, there are no initialization methods required by Tweener, other than the mandatory 'import' command.

Its fluid syntax allows it to be used to tween any numeric property of any object of any class, so it is not tied to specific properties of built-in Classes such as MovieClips or TextFields. This flexibility grants a wider control on how transitions are performed, and makes creating complex sequential transitions on any kind of object easier.

...

Tweener是又一个创建运动的类库,特点是“一行”调用,采用静态类设计,无需实例化,也不需要初始化。

Tweener Project Home

[tags]tween, actionscript[/tags]