tween

Flex tween classes

I've been told several times or I've read in various places (can't remember where exactly right now) not to use Tween classes from the Flex SDK but to use instead other animation libraries like Tweener, TweenMax, GTween, ... What's wrong with using Flex tweens? Is it a performance issue? If I want to do states transitions, should I mak...

Does setting properties in AS3 prevent timeline tweens?

If I have a movieclip that has a class assigned to it and I change a property of that movieclip in code, it seems that the property can no longer be tweened on the timeline. For example, if my class sets this.x = 100, and later on the timeline I tween the position of the object, that timeline tween will not occur. Changing either scale...

tweenlite as2 oncomplete

Hi, I seem to be having trouble with TweenLite in AS2. I've created a class which I call on the main timeline. Within the class I've loaded images and once they are loaded I want to fade between them. I am calling (inside my class) the following code when the images have finished loading: TweenLite.to(_root["loadedimg1"], 1, {_alpha: ...

Tweening a Rounded Rectangle in Actionscript 3

I would like to tween between a short rounded rectangle and a tall rounded rectangle. (I only want deal with the height - no other parameters). I am programming with actionscript 3. My tweening engine is TweenLite. I have been tweening a sprite that contains a rounded rectangle. The tweened sprite produces distortion. I suppose tha...

Tweener fade with alpha

I'm having troubles with getting my textfield to fade from alpha 0 to alpha 1 with Tweener. Everything else works fine, so I suspect it has something to do with applying my textformats on the textfield? This is my code private function swapText(e:Event):void { applyTextFormats(); addChild(_textContainer); var textfromx:int = _xm...

group rollover effects with actionscript3

I've got the following issue with a actionscript3 project. I have a group of buttons setup via a class sitting in a holder sprite. When I rollover one of these buttons I loop through all the buttons in the holder and run tweenlite to tween the alpha to .4 except when the name matches the currently active button. When I rollout I reset...

Tween a value in iPhone objective-C

Is it possible to tween a variable (let's say a float from 0.0 to 2.0 over a period of time) in objective-C? Something like what TweenMax would do in flash. I guess the class methods of UIView don't do that. Is it doable maybe with CoreAnimation? Or would someone have to use NSTimer? Thanks ...

FLash: Error when trying to use setChildIndex and TweenLite to create a button rollOver effect

Hi again everyone :) So today I'm trying to basically create a simple glow effect on button rollOver. I may be over complicating things, but the way I'm going about this is by having 2 movieClips(default state and over state). First I add the default state to the stage, next I add the rollOver state to the stage, but at a depth of 0 a...

TweenMax change in-progress bezier

Is it possible to change smoothly transition between one bezier based animation and another using TweenMax ? Before the first is complete I would like to create a new curve for the object to follow. t = new TweenMax(movieClip, speed, {bezierThrough:[{x:84, y:207}, {x:300, y:345}], orientToBezier:false, ease:Sine.easeOut, onComplete:w...

Actionscript 3.0 Tween Question

I am currently working on a website for a construction company and I am trying to build a very simple flash intro. I have two images in the falsh intro: a tractor and a picture of clouds in the background. I am trying to have the clouds appear to float by in the background. It is a very wide image that I am trying to loop through very s...

Flash AS3: Tween MC to MC on Frame to Frame

I am trying to build a four frame animation in Flash CS3. The background images (each being set to MovieClips) change on each frame, and I want to put a fade out/in transition on each of the MC's. I can't seem to get this working properly though. Here is the code I have: if (currentFrame == 1) { var alphaTweenOut1:Tween = new Tween ...

TweenLite AS3 moving on x-axis issue

I'm trying to create a simple animation effect with TweenLite AS3, having a movieclip ("selectedFrame"), shift on the x-axis on the stage every few seconds. Other TweenLite effects (using the 'alpha' function) are working fine, but for some reason I can't get this simple shift to work. Here is the block of code I'm trying to move the MC...

OpenGL ES on Iphone: simple 2D animation (interpolation/tween)

Hi everyone, I'm working on an app that basically revolves around 2D shapes (mostly simple polygons) being dynamically drawn and animated. I'm looking for a way to easily time my animations. It's basically just moving a vertex to a specified point in a specified time, so just interpolating floats, with all the usual easing parameters. ...

gotoAndStop oncomlete with TweenMax

Hello all I'm trying to get onComplete (frame 5 in this case) to skip to a given frame after a series of animations. Here is what i have written so far. Shouldn't this work? stop(); import gs.TweenMax; import gs.plugins.*; TweenPlugin.activate([DropShadowFilterPlugin]); import fl.motion.easing.*; TweenMax.from (redSquare_mc, 1, {x:...

Add/Tween/Remove - Multiple instances of the same MC (Tweenlite)

I'm trying to create a simple loop that adds a random number of stars, fades them out and removes them. The script I've come up with does everything but remove them, and perhaps I need a less on adding children to a stage. Here's what I come up with import flash.display.*; import com.greensock.*; import com.greensock.easing.*; // tim...

How to tween (with ease out) a movie clip using only Action Script 2.0

I would like to tween a movieclip (with ease out) using purely action script 2.0. Does anyone know where to find any resources on this or could point me in the right direction? Thanks! ...

Swfobject and MooTools: Dynamic movie height

Greetings. I am developing an animated homepage for a Flash-HTML hybrid website, and for the sake of standards, my solution is proving difficult. I am not a Javascript pro, so any help is appreciated! Here is the run-down: For Flash users, HTML page loads a variable-height AS3 Flash movie that will start at 556 pixels high, and after...

What is equivalent to FuseKit or Tweenlite (for Flash) in Java?

I've seen another post on stackoverflow but was not really satisfied with the responses. I'm use to tweening using code in Flash. See FuseKit and Tweenlite. Are there java equivalents? This processing library is the closest that I've found. ...

tinting a MC with tweener

Hi I would like to tint a movieclip with the tweener class. This is how I tint the mc without the tween: var c:Color=new Color(); c.setTint(0xff0000, 0.8); clouds.transform.colorTransform=c; it works but I would like to give it a smooth transition that's why I would use tweener. Anyone have an idea? ...

Smoothing flash animation

I've got a MovieClip containing several child clips (images and text). I'm trying to scale this parent clip very slowly - from 102% down to 98% - this works, however the child movie clips are all scaling a bit jerkily - like they're trying to stick to pixels or something. What's the cure for this? The scaling is done by using a motion ...