GreenSock TweenMax
Hi All,
Thinking about using/getting into GreenSocks TweenMax, just wonder if it's worth a study or not ;)
Any users experience good or bad would be most welcomed.
Kind Regards,
Boxing Boom
Adobe > ActionScript 3
Posted on: 09/26/2008 06:45:23 AM
View Complete Forum Thread with Replies
Sponsored Links:
Is It Possible To Integerate Other Equations With GreenSock's TweenLite?
Hi all,
After searching all over the place. I've decided to use Green Sock's TweenLite Engine for my project, however to my knowledge, i only able to use flash's stock equations at the moment (transitions/motion?).
I'm jus wondering if there is a way to integrate the other equations with TweenLite? like the equations available from the Tweener/Caurina's Engine?
hope this is not too stupid a question.
please advice =(
View Replies !
View Related
Help With TweenMax
I would like to go to a certain frame in my timeline after the last tween has finished!
what would the code look like
i kno it most likely will have a "onComplete"
somewhere in it most likely
ActionScript Code:
import gs.TweenMax;
//what elsee?? =[
using A.S 2.0 by the way
View Replies !
View Related
Anyone Using TweenMax?
I can't figure out how scaleX works.
For testing I have a MC that's 400px wide. When I apply this:
Code:
TweenMax.to(days,1,{scaleX:.1});
it gets larger.
When I apply this:
Code:
TweenMax.to(days,1,{scaleX:.2});
it expands off the screen.
When I apply this:
Code:
TweenMax.to(days,1,{scaleX:.01});
it shrinks to about 1/10 of the size.
how is this supposed to work?
View Replies !
View Related
Help With TweenMax OnComplete
I would like to go to a certain frame in my timeline after the last tween has finished!
what would the code look like
i kno it most likely will have a "onComplete"
somewhere in it most likely
HTML Code:
import gs.TweenMax;
//what elsee?? =[
View Replies !
View Related
TweenMax Not Looping
I have (what should be) a really simple little piece of code inside a moviclip, trying to get it to fade in and out in a loop. Here's the code (within the movieclip):
ActionScript Code:
import gs.TweenMax;this._alpha = 100;alphaDown = function() { trace("alpha down"); TweenMax.to(this, 0.5, {_alpha:50, onComplete:alphaUp});};alphaUp = function() { trace("alpha up"); TweenMax.to(this, 0.5, {_alpha:100, onComplete:alphaDown});};alphaDown();
The movieclip fades down to 50 alpha, but won't fade back up. In the output, I see a correct alternation between "alpha down" and "alpha up" every 0.5 seconds, but the clip itself isn't actually changing its alpha. Any ideas what I'm doing wrong?
View Replies !
View Related
Change Class To Use TweenMax
I have scroller class file that used tweener
I want to change it to use TweenMax as I am already using that.
I thought it looked easy, but does not work.
The only tween references are these 2 lines
the scroller class has
Code:
import caurina.transitions.*;//on line 14
Tweener.addTween(target, {y:-sPos, time:timing, transition:trans});//on line 169
//I changed it to
import gs.TweenMax;//on line 14
TweenMax.addTween(target, {y:-sPos, time:timing, transition:trans});//on line 169
The scroller.as is in the same directory as the movie fla
below that is the caurina folder, I placed the gs folder with tweenMax in the same location.
I get these 2 errors
Srollbar.as Line 14 - 1172: Definition gs.TweenMax could not be found.
Srollbar.as Line 169 - 1120: Access of undefined property Tweener.
If I am completely off track, I am just guessing, I am no expert, let me know
I have uploaded the scroller.as file if anyone wants to take a look
thanks
mark
View Replies !
View Related
About TweenMax And Easing Equations
Hi guys, im a former user of FuseKit, for the time being as i like more the performance of TweenMax over Fusekit, but i got used to the flexibility of Penner Easing Equations, is there a way to use them on TweenMax?
I tried fl.motion.easing.* seems to have all of the penner equations Expo, Sine, etc.
So, is there a way to use them with TweenMax?
maybe im not writting the syntax correctly i dont know here is my piece of practice code
Code:
import gs.*;
import mx.transitions.easing.*;
import fl.motion.easing.*;
function moveSq() {
TweenMax.to(sqr,.5,{_x:random(550), _y:random(400), ease:Bounce.easeOut});
}
myint = setInterval(moveSq, 1000);
this code above works just fine, but is there a way to replace Bounce.easeOut by "easeInOutElastic" or something along the line?
Thank you for reading, hoping to get any feedback from you guys
Nosh
View Replies !
View Related
TweenMax TimeScale Issue
ok so i have an object that tweens 700 pixels across the screen with TweenMax, at any given moment, i would like to have the ability to slow that objects speed down by half speed, but also have to ability to resume it to the regular speed,
right now i use this
TweenMax.to(ship,3{y:700,timeScale:1,overwrite:tru e,onComplete:removeTween,onCompleteParams:[ship]})
to slow the ship down, i apply the same tween over the object but with timeScale set to .5, i know this is doomed for failure, is there some way to alter just the timeScale variable only rather apply a new tween?
View Replies !
View Related
TweenMax, Change Tween Already In Progress
Ok so I have a cloud that is generated and tweened across the stage using the following code...
PHP Code:
function cloudMaker():void{
cloud = new CloudSketch();
cloud.x = stage.stageWidth;
cloudHolder.addChild(cloud);
cloudTravel = new TweenMax(cloud, 100, {x: -1000});
}
cloudMaker();
I also have a timer that produces a new cloud every 15 seconds, the code looks like this...
PHP Code:
var cloudTimer:Timer = new Timer(15000);
cloudTimer.addEventListener(TimerEvent.TIMER, newCloud);
cloudTimer.start();
function newCloud(TimerEvent):void{
cloudMaker();
}
Theres a button on the stage that when clicked speeds up the tween of the clouds on the stage and also produces clouds more rapidly to give the effect that you are passing by them very quickly. After a certain amount of time the "killTravel" function is called which sets the cloud speed back to normal and the amount produced, the code looks like this...
PHP Code:
main.goButton.addEventListener(MouseEvent.MOUSE_DOWN, travel);
function travel(go:Event):void{
cloudTimer.stop();
cloudTravel = new TweenMax(cloud, 2, {x: -1000});
var blur:BlurFilter = new BlurFilter();
blur.blurX = 20;
blur.quality = BitmapFilterQuality.HIGH;
cloud.filters = [blur];
var travelTimer:Timer = new Timer(400);
travelTimer.addEventListener(TimerEvent.TIMER, cloudCrazy);
travelTimer.start();
function cloudCrazy(TimerEvent):void{
cloud = new CloudSketch();
cloud.x = stage.stageWidth;
cloudTravel = new TweenMax(cloud, 2, {x: -1000});
cloudHolder.addChild(cloud);
cloud.filters = [blur];
}
function killTravel(TweenEvent):void{
cloudTravel = new TweenMax(cloud, 100, {x: -1000});
cloudTimer.start();
travelTimer.stop();
blur = new BlurFilter();
blur.blurX = 0;
blur.blurY = 0;
blur.quality = BitmapFilterQuality.HIGH;
cloud.filters = [blur];
}
}
When the button is pushed all clouds currently on the stage speed up and do exactly what they are supposed to except for the cloud that came before the "cloudTimer" was called. Any help? You can download the .fla here including the TweenMax class.
View Replies !
View Related
TweenMax Released - TweenLite On Steroids
(Similar message posted in the AS2 forum, but wanted to let you ActionScript.org AS3 folks know too...)
The latest addition to the TweenLite family, TweenMax, was just released. It builds on top of TweenLite and TweenFilterLite and adds features like two kinds of bezier tweening (regular bezier and bezierThrough which allows you to define points through which the bezier should travel), pause/resume, sequencing, and LOTS more.
TweenMax can do everything TweenLite and TweenFilterLite can do, plus more. Same syntax. 8Kb. AS2 and AS3 flavors.
I put an interactive sample of the bezier tweening on the blog, so you can play with it a bit and see how the bezierThrough and normal bezier stuff works, and it writes sample code for you, so you can see exactly how your changes affect the code.
www.TweenMax.com
There's a comparison chart there that shows which features are part of which class. Oh, and there's also a new speed test for bezier tweens.
Enjoy!
View Replies !
View Related
TweenMax Released -- TweenLite On Steroids
Just wanted to let the Kirupa family know that the latest addition to the TweenLite family, TweenMax, was just released. It builds on top of TweenLite and TweenFilterLite and adds features like two kinds of bezier tweening (regular bezier and bezierThrough which allows you to define points through which the bezier should travel), pause/resume, easier sequencing, and LOTS more.
TweenMax can do everything TweenLite and TweenFilterLite can do, plus more. Same syntax. 8Kb.
I put an interactive sample of the bezier tweening on the blog, so you can play with it a bit and see how the bezierThrough and normal bezier stuff works, and it writes sample code for you, so you can see exactly how your changes affect the code.
www.TweenMax.com
There's a comparison chart there that shows which features are part of which class. Oh, and there's also a new speed test for bezier tweens.
Enjoy!
View Replies !
View Related
Help Needed On Making A TweenMax Slideshow
I wanna create a slideshow like:
http://www.htc.com/www/product.aspx
Where each product slide off the page and came in another with a next and previous button
But I am stuck with this actionscript 3.0:
stop()
import gs.TweenMax;
import gs.easing.*;
TweenMax.from(pix01_mc, 1, {blurFilter{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
TweenMax.from(pix02_mc, 1, {blurFilter{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
TweenMax.from(pix03_mc, 1, {blurFilter{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
TweenMax.from(pix04_mc, 1, {blurFilter{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
TweenMax.from(pix05_mc, 1, {blurFilter{blurX:50}, x:900, ease:Expo.easeOut, delay:1});
function onNextClick(evt:MouseEvent):void {
nextFrame();
}
next_btn.addEventListener(MouseEvent.CLICK, onNextClick);
function onPrevClick(evt:MouseEvent):void {
prevFrame();
}
prev_btn.addEventListener(MouseEvent.CLICK, onPrevClick);
Im kinda new at this Adobe Flash.
It will be greatly appreciated if anyone can advice.
Thanks.
View Replies !
View Related
TweenMax Released -- TweenLite On Steroids
Just wanted to let the UltraShock family know that the latest addition to the TweenLite family, TweenMax, was just released. It builds on top of TweenLite and TweenFilterLite and adds features like two kinds of bezier tweening (regular bezier and bezierThrough which allows you to define points through which the bezier should travel), pause/resume, sequencing, and LOTS more.
TweenMax can do everything TweenLite and TweenFilterLite can do, plus more. Same syntax. 8Kb. All this for the low, low price of: free :-)
I put an interactive sample of the bezier tweening on the blog, so you can play with it a bit and see how the bezierThrough and normal bezier stuff works, and it writes sample code for you, so you can see exactly how your changes affect the code.
www.TweenMax.com
There's a comparison chart there that shows which features are part of which class. Oh, and there's also a new speed test for bezier tweens.
Enjoy!
PS I hope you don't mind me posting this here. I noticed some threads about problems with Adobe's Tween class and many developers have told me that once they switched to TweenLite/TweenMax, their problems went away (and they gained a lot of speed). Hopefully the class family will help some folks.
View Replies !
View Related
TweenMax.killAllTweens Leaving Tweens Visible In GetAllTweens
I've posted on the greensock forums as well, but haven't had a response yet... any knowledge of this, I'd appreciate it:
After calling TweenMax.killAllTweens(), I still see tweens via TweenMax.getAllTweens(); I then proceed to loop through array and a) check the active property of each (all return false) and b) try to remove each Tween via TweenMax.removeTween(t) - but getAllTweens(); continues to return and array of tweens? I believe I'm racking up some memory usage due to these tweens not being removed killed - thoughts?
Thought I'd add to this - if utilizing the adobe debug players, and if you have ThunderBolt - you can see the traces of my attempt to clean up the tweens here:
1) use the arrow buttons to quickly toggle through 01,02,03 - this will allow tweens to build up fairly quickly
2) click the force GC button - that triggers killAllTweens and unloads all imagery (the only objects with tweens); - you'll see the trace
3) click the force GC button again - at this point, I'm looping through getAllTweens array and checking active and attempting removeTween(t) on each - you'll see traces here too
http://dev.etainia.com/fp_progress/
View Replies !
View Related
Major Problem With Movieclip Attachment And Tweener Or TweenMax - TweenLite
Hello, I have a strange issue in flash player 10. I have done a simple slider class that is clickable and in flash player 9 works great but when I test it in flash player 10, the list just dissapears. The example uses elements from an xml but the problem happens even if I attach a simple array of shapes instead of text. I have attached the example with the bug. Please check it and tell me if there is a workaround available. I've included also Tweenlite for testing purposes and if you uncomment the line 95-96 of the com.stelioschatzopoulos.masks.SimpleSlider.as you can see the problem with both examples.
95-96
//Tweener.addTween(masked, {x:xPhotoPosition, y:yPhotoPosition, time:1});
TweenLite.to(masked, 1,{x:xPhotoPosition, y:yPhotoPosition});
You can see the problem online
http://www.forestonfire.com/research...der/index.html
and you can also download the complete source from the attached code or from
http://www.forestonfire.com/research...derproblem.zip
I asked already Jack Doyle (tweenlite creator) and told me that this has nothing to do with his tween class.
Thank you in advance!
View Replies !
View Related
Major Problem With Movieclip Attachment And Tweener Or TweenMax - TweenLite
Hello, I have a strange issue in flash player 10. I have done a simple slider class that is clickable and in flash player 9 works great but when I test it in flash player 10, the list just dissapears. The example uses elements from an xml but the problem happens even if I attach a simple array of shapes instead of text. I have attached the example with the bug. Please check it and tell me if there is a workaround available. I've included also Tweenlite for testing purposes and if you uncomment the line 95-96 of the com.stelioschatzopoulos.masks.SimpleSlider.as you can see the problem with both examples.
95-96
//Tweener.addTween(masked, {x:xPhotoPosition, y:yPhotoPosition, time:1});
TweenLite.to(masked, 1,{x:xPhotoPosition, y:yPhotoPosition});
You can see the problem online
http://www.forestonfire.com/research/flash/simpleslider/index.html
and you can also download the complete source from the attached code or from
http://www.forestonfire.com/research/flash/simpleslider/sliderproblem.zip
I asked already Jack Doyle (tweenlite creator) and told me that this has nothing to do with his tween class.
Thank you in advance!
View Replies !
View Related
Major Problem With Movieclip Attachment Aind Tweener Or TweenMax - TweenLite
Hello, I have a strange issue in flash player 10. I have done a simple slider class that is clickable and in flash player 9 works great but when I test it in flash player 10, the list just dissapears. The example uses elements from an xml but the problem happens even if I attach a simple array of shapes instead of text. I have attached the example with the bug. Please check it and tell me if there is a workaround available. I've included also Tweenlite for testing purposes and if you uncomment the line 95-96 of the com.stelioschatzopoulos.masks.SimpleSlider.as you can see the problem with both examples
95-96
//Tweener.addTween(masked, {x:xPhotoPosition, y:yPhotoPosition, time:1});
TweenLite.to(masked, 1,{x:xPhotoPosition, y:yPhotoPosition});
You can see the problem online
http://www.forestonfire.com/research...der/index.html
and you can also download the complete source from the attached code or from
http://www.forestonfire.com/research...derproblem.zip
I asked already Jack Doyle and told me that this has nothing to do with his tween class.
Thank you in advance!
View Replies !
View Related
|