check this, closer to what you want, i think http://www.sephiroth.it/file_detail.php?id=131
Rodrigo On 4/19/06, Clint Tredway <[EMAIL PROTECTED]> wrote: > > > Yup, I am working on a project that has a 'zoom' effect and the Tween > class is what I am using to do it. > Here is a link that was helpful to me. > http://www.kirupa.com/developer/actionscript/tween.htm > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Julian > 'Julik' Tarkhanov > Sent: Wednesday, April 19, 2006 1:44 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Zoom effect > > > 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 > _______________________________________________ > 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 > _______________________________________________ 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