On 19-apr-2006, at 19:04, [EMAIL PROTECTED] Ammor wrote:
Hello,
I’ am getting crazy achieving some kind of zoom effect on my MC !!!
If you just create any MC on the stage like a rectangle 300*500 px
and put
the code below in an empty frame, it will work…
But what i want to do is like setting new coordinates on the scaled
MC so
that it takes the _xmouse/_ymouse click as the new center.
I mean : when the user clicks, it scales 150 percent but reposition
it self
according to the mouse click as if it was the area zoomed into ;-)
Sorry, I hope I was understood !!!
Any kind ideas ?
I found Tweens working perfectly for this type of job.
on(press) {
import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(this, "_x", mx.transitions.easing.Regular.easeOut,
this._x, _root._xmouse, 2, true);
new Tween(this, "_y", mx.transitions.easing.Regular.easeOut,
this._y, _root._ymouse, 2, true);
new Tween(this, "_xscale", mx.transitions.easing.Regular.easeOut,
this._xscale, this._xscale+10, 2, true);
new Tween(this, "_yscale", mx.transitions.easing.Regular.easeOut,
this._yscale, this._yscale+10, 2, true);
}
--
Julian 'Julik' Tarkhanov
me at julik.nl
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com