BetweenAS3 Alpha r3022 now available
BetweenAS3, fast, powerful and professional new tweening engine I’m developing (please see this page or this page), is still under development… But today, I announce “Alpha r3022″ version for early betweeners!
I don’t give assurance about quality, but many main features may works well. Please test and send feedback (bug report, request, etc) to me.
You can checkout BetweenAS3 Alpha r3022 via SVN from:
or download as ZIP or SWC from:
Did you find text “fp9″ in filename? There is good news. FlashPlayer9 version also available!!
Yesterday, version of BetweenAS3 in Wonderfl is r2505, but today, it was updated to r3022. You can enjoy new version in Wonderfl!! You can find BetweenAS3 samples in this “BetweenAS3Tutorial” tag page.
Changes from r2505 to r3022 is the following:
* [r3021] Created FlashPlayer9 version based on r3019.
* [r3018] Fix: Error occurred when stopping or playing tween in event handlers.
* [r3017] Added property for frame tween (_frame) and utility for convert frames and time (TimeUtil).
* [r3016] Added ITween.togglePause
* [r3009] [r3010] Supported physical tween. (BetweenAS3.physical)
* [r3007] Added shortcuts for BetweenAS3.tween and BetweenAS3.bezier
* BetweenAS3.to
* BetweenAS3.from
* BetweenAS3.bezierTo
* BetweenAS3.bezierFrom
* [r3005] Fix: Function specified in BetweenAS3.func will be called many times.
* [r2998] Supported bezier tween. (BetweenAS3.bezier)
* [r2996] Supported parallel and serial by passing Array parameter. (BetweenAS3.parallelTweens, BetweenAS3.serialTweens)
* Changed internal architecture and package.
* Supported inheriting event handlers when processing tweens by this change.
* [r2994] Created IUpdater interface.
* [r2694] Renamed BetweenEvent class to TweenEvent.
* [r2692] Moved ITicker interface and TickerListener class to Core package.
* [r2688] Created Core package.
* [r2688] Removed ITweenTarget interface, integrated it to ITween interface and created IObjectTween interface.
* [r2688] Created ITweenContainer (now ITweenGroup) interface.
* [r2618] Moved a delay setting to the BetweenAS3.delay method for more flexibility.
* [r2617] Changed the timing of calculating tween parameters to the first time of start playing the tween.
Now sequence of tween using related value works fine.
BetweenAS3.serial(
BetweenAS3.tween(mc, {$x: 100}),
BetweenAS3.tween(mc, {$x: 100})
);
* [r2600] Fix: Sometimes ReferenceError has occured while creating a tween.
Here is FAQ:
Q. How to do filter tween?
A. Do the following:
BetweenAS3.tween{mc, {_glowFilter: {blurX: 32, blurY: 32}}).play();
The following properties for filter are supported.
* _bevelFilter
* _blurFilter
* _colorMatrixFilter
* _convolutionFilter
* _displacementMapFilter
* _dropShadowFilter
* _glowFilter
* _gradientBevelFilter
* _gradientGlowFilter
* _shaderFilter
Q. How to do ColorTransform tween?
A. Do the following:
BetweenAS3.tween(mc, {transfrom: {colorTransfrom: {redOffset: 255}}}).play();
Q. How to do SoundTransform tween?
A. Do the following:
BetweenAS3.tween(sc, {soundTransform: {volume: 0.0}}).play();
Q. How to set delay?
A. By using BetweenAS3.delay, add delay to tween.
BetweenAS3.delay(BetweenAS3.tween(mc, {x: 100}), 1.0).play(); // Delay 1.0 sec
Q. How to do bezier tween?
A. Do the following. Pass control points in argument 4. Set Array of control points for each property.
BetweenAS3.bezier(mc, {x: 385, y: 207}, null, {x: [58.05, 145.9, 246.7, 345.55], y: [61.4, 80.65, 167.05, 209.3]}).play();
4 Comments
Hey, thanks for this project! I never even realized that tweens could perform so quickly until I saw BetweenAS3.
I really like the new release, and having a Flash 9 version is great!
I’m having trouble getting overlapping tweens to work right. The real problem is that I’m creating these tweens asynchronously, so I don’t think I can use the serial function.
Here’s an example of what I’m trying to do:
var Square:Sprite = new Sprite ();
Square.graphics.beginFill (0xFF0000);
Square.graphics.drawRect (0, 0, 100, 100);
Square.x = (stage.stageWidth – Square.width) / 2;
Square.y = (stage.stageHeight – Square.height) / 2;
Square.alpha = 0;
addChild (Square);
BetweenAS3.tween (Square, { alpha: 1 }, 2).play ();
BetweenAS3.delay (BetweenAS3.tween (Square, { alpha: 0 }, 2), 4).play ();
The square will fade in correctly, but then it will instantly disappear. I am trying to integrate this into Actuate, which lets you create overlapping tweens at different times. This example works great if I use BetweenAS3.serial, but does that work asynchronously?
Please let me know if there is a better way I could do this, or if you might know of a patch to BetweenAS3 that would let me do this.
Thank you!
Well, funny enough, my SimpleActuator actually had this same problem and I didn’t know it. The issue is that I was setting the start and change values when I created the tween and not when the delay was over, so it was tweening from an alpha of zero to an alpha of zero … that’s why it disappeared instantly.
For what it’s worth, here’s a link to my updated class. I had to include an initialized variable and wait to set the values until after the delay was complete:
http://www.eclecticdesignstudio.com/code/actuate/SimpleActuator.as
Very nice, I’m seriously thinking in change to BetweenAS3 in my next projects, i know than still under alpha, but some features already are very upper over the others libraries than i’ve used.
…
Норм …