Acecool / tweener

Automatically exported from code.google.com/p/tweener
0 stars 0 forks source link

Extra centerpoint property #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
First of all: Great Work !

I have a request which I think would make Tweener even better ...

It would be very useful if a tween would have an extra transformationPoint
parameter.
When you create a lot of displayobjects or textfields by code ( with their
transformation at 0,0 ) and applying a tweened scale for example, you have
to manually adjust the x and y values if you want it to scale from it's
center. 
The same applies to rotations around a specific point ( eg around the
center of another displayobject or the center of the stage ).

Maybe with an x and y value like this :
mc.width = mc.height = 100;
Tweener.addTween(mc, {_scale:1.2, time:1, transformationPointX:50,
transformationPointY:50});

or a string like this :

Tweener.addTween(mc, {_scale:1.2, time:1, transformationPoint:"center"});

If implemented in Tweener, a greater form of creativity would be possible,
besides easier coding.

Regards,
Youssef Aberkane

Original issue reported on code.google.com by zozef...@gmail.com on 6 Aug 2007 at 2:25

GoogleCodeExporter commented 9 years ago
Thanks Youssef, we'll look into it.

Original comment by zisfor...@gmail.com on 6 Aug 2007 at 2:30

GoogleCodeExporter commented 9 years ago
This could be cool feature.

Original comment by darko...@gmail.com on 17 Nov 2007 at 12:34

GoogleCodeExporter commented 9 years ago
Good idea, it would make life easier again.

Original comment by blo...@gmail.com on 10 Dec 2007 at 10:38

GoogleCodeExporter commented 9 years ago
Very useful

Original comment by lindmark...@gmail.com on 8 Feb 2008 at 3:22

GoogleCodeExporter commented 9 years ago
Yes, very useful, indeed.
I wrote a little bit about this topic on my blog:
http://gasi.ch/blog/2008/02/05/zooming-in-flash-flex/

Regards,
Daniel

Original comment by daniel.gasienica on 10 Feb 2008 at 7:15

GoogleCodeExporter commented 9 years ago
That would be amazing. Would make a big difference :)

Original comment by alex.rad...@gmail.com on 9 Apr 2008 at 1:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You took the words out of my mouth. Really a critical missing parameter.

Original comment by gavin.m....@gmail.com on 29 Aug 2008 at 5:52

GoogleCodeExporter commented 9 years ago
mm, would save having to do something like

caurina.transitions.Tweener.addTween(mymovie, {
    _xscale: 0,
    _yscale: 0,
    _x: mymovie._x + mymovie._width/2,
    _y: mymovie._y + mymovie._height/2,
    time: 3, 
    transition: 'easeInExpo'
});

Original comment by a...@108.net.au on 26 Sep 2008 at 1:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi,

I've been following the changelog for the last year and I noticed that 
development is
still going steadily forward regarding bugfixes and code optimizations. That's 
really
good, and above all, necessary.

I do understand that these items have a high priority but please do not forget 
about
creativity.

It seems to me that Tweener is paying more attention to remarks of high level
programmers who found something that could have been programmed in a cleaner 
way,
more than the regular users who don't fully understand the class but wish to 
use it
for what - I presume - it was written in the first place.
I'm really convinced that a - preferably dynamic - center point is more 
important for
users than removing unused variables from the code. 

We users could do very well with that extra center point property built in,
especially if it were dynamic too. Imagine being able to define an object 
animated by
hand as the center point ( parent ) for another object animated by Tweener. 
Tweener then evaluates the state ( position, scale, color, transparency, ... ) 
of the
parent object in realtime and adjust the Tweened object accordingly. 
An example: ainmating the solar system would be a piece of cake with only one 
line of
code for each planet revolving the center object, our sun. It would then also be
possible to easily animate a part of the Milky Way where the sun itself revolves
another point in space with a only a few more lines of code.

Really, I love Tweener and I have deep respect for people who devote their 
selves for
the greater good. Respect, guys,  but we always want/need more ... ;)

Grz,
ucf 

PS:
Sequences.Sequences.Sequences.Sequences.Sequences.Sequences.Sequences.Sequences.
Sequences.Sequences.

Original comment by zozef...@gmail.com on 8 Dec 2008 at 2:19