What do you think about this? About modifying the MovieClip.as -it cant
be of good practice?

It isn't. Usually you shouldn't even think about it.

However, I believe both of these tweens work without major problems or warnings under AS2. The only problem I know is mctween can't tween sound instances anymore (because sound isn't a dynamic object) but movieclip and textfield tweens work the same...


We would rather have the tween engine as a seperat class (static members
only) which we can import.
And still have all great functionalities that the two really great
tween-engines out there (zeh's and fernandos)

While I still think - from a practical point of view - that using whatever.tween() is much easier to work with (write and read), in AS2+, the best solution would be to have a static class that does the whole thing, like you suggested. My mctween and Laco's tween can compile and run fairly well in AS2 (specially because movieclip is a dynamic class), but they *do* exploit the compiler's ability to still use prototypes even though it shouldn't.

So again, if you're looking for 'the best' solution while still obeying the sacred rules of the OOP religion, the best bet is having a new static class (also because it could later be ported to AS3 without too much pain).

In that vein:

1. You could use MM's built in tweening classes. I know, there's a lot to be desired there, but with some wrapping with a new class, it could fit your needs and still be straightforward to use.

2. Moses Gunesch has been reworking Laco's tween prototypes into a new system that's exactly that: a new static class. It's still under development, but you can find more information and eearly versions here:

http://www.mosessupposes.com/Fuse/index.html


There's probably other options too, but I'm not aware of them.


Personally, I'm rewriting my own to use a static class, as in

ZTweener.addTween(mymovie, {_x: 100, time:1});

I'm not using MC Tween anymore. But it's still in a very early version so I can't distribute it - it's pretty rough. And coincidentally, this syntax I'm using is VERY similar to the one Moses has come up with on Fuse Kit, so I'd say trying Fuse Kit is your best choice right now.



- zeh
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to