RE: [Flashcoders] Zooming
If you're a Club GreenSock member, the transformAroundPoint can make this pretty simple to integrate into a tween. For example: var center:Point = new Point(275, 200); TweenLite.to(mc, 1, {transformAroundPoint:{point:center, scaleX:3, scaleY:3}}); That would scale mc's scaleX/scaleY to 3 and use the center point as though it's where your object's registration point is. You can affect rotation too if you want. There's an interactive example of transformAroundPoint in the Plugin Explorer at http://www.TweenLite.com Alternatively, you could wrap your object in a Sprite and offset its position internally so that the Sprite's registration point is where things should scale from on your image, and then tween the scaleX/scaleY of the Sprite. Or do the math to figure out where your image's registration point would end up after scaling it from wherever the focal point is and tween the x/y/scaleX/scaleY together. Or use the camera suggestions others have offered. Sorry, hope that didn't overwhelm you with options :) Jack -Original Message- From: Lehr, Theodore [mailto:ted_l...@federal.dell.com] Sent: Monday, September 13, 2010 11:14 AM To: Flash Coders List Subject: [Flashcoders] Zooming Is there anyway to zoom into a mc and make sure a certain point on an object (just an image converted to a mc in this instance) is always in the center? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Zooming
good stuff - thanks! From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jack Doyle [j...@greensock.com] Sent: Tuesday, September 14, 2010 12:14 PM To: 'Flash Coders List' Subject: RE: [Flashcoders] Zooming If you're a Club GreenSock member, the transformAroundPoint can make this pretty simple to integrate into a tween. For example: var center:Point = new Point(275, 200); TweenLite.to(mc, 1, {transformAroundPoint:{point:center, scaleX:3, scaleY:3}}); That would scale mc's scaleX/scaleY to 3 and use the center point as though it's where your object's registration point is. You can affect rotation too if you want. There's an interactive example of transformAroundPoint in the Plugin Explorer at http://www.TweenLite.com Alternatively, you could wrap your object in a Sprite and offset its position internally so that the Sprite's registration point is where things should scale from on your image, and then tween the scaleX/scaleY of the Sprite. Or do the math to figure out where your image's registration point would end up after scaling it from wherever the focal point is and tween the x/y/scaleX/scaleY together. Or use the camera suggestions others have offered. Sorry, hope that didn't overwhelm you with options :) Jack -Original Message- From: Lehr, Theodore [mailto:ted_l...@federal.dell.com] Sent: Monday, September 13, 2010 11:14 AM To: Flash Coders List Subject: [Flashcoders] Zooming Is there anyway to zoom into a mc and make sure a certain point on an object (just an image converted to a mc in this instance) is always in the center? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Zooming
Is there anyway to zoom into a mc and make sure a certain point on an object (just an image converted to a mc in this instance) is always in the center? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Zooming
Lehr, Theodore skriver: Is there anyway to zoom into a mc and make sure a certain point on an object (just an image converted to a mc in this instance) is always in the center? Yes, with geometry. I recommend using a virtual camera, since it will take out a bunch of complicated (but far from advanced) math. Then you just need to center the camera on the spot using simple geometry. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Zooming
On 13/09/2010 17:26, Henrik Andersson wrote: Lehr, Theodore skriver: Is there anyway to zoom into a mc and make sure a certain point on an object (just an image converted to a mc in this instance) is always in the center? Yes, with geometry. I recommend using a virtual camera, since it will take out a bunch of complicated (but far from advanced) math. Then you just need to center the camera on the spot using simple geometry. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders You should be able to find a nice virtual camera class on Bitey castle guys website. http://www.biteycastle.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Zooming
Glen Pike skriver: You should be able to find a nice virtual camera class on Bitey castle guys website. http://www.biteycastle.com/ I prefer my own one, you can stick a camera in a camera with it and it's simpler. But that one isn't half bad either. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] zooming application
If it were me, rather than reinvent the wheel (this is a common need) and if I had a budget, I'd go for Zoomify Enterprise: http://www.zoomify.com/enterprise/ Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] zooming application
Or, if you want a free one: http://www.marcosweskamp.com/components/tokcomponents/zoompane_demo.html Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Mike Britton Sent: Friday, December 02, 2005 9:37 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] zooming application If it were me, rather than reinvent the wheel (this is a common need) and if I had a budget, I'd go for Zoomify Enterprise: http://www.zoomify.com/enterprise/ Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] zooming application
Dear all, I have such a problem to make a zoom application.I`m really blank with the calculation.My application is to present a world map. In the interface there are two map, the big one and the other is the small one.The small one used to navigate a zoom of the big one. In the small map i have a slider to set the scale of the zoom in percent. and User can drag the view to the place they want in the small map. I can say that the small map is the navigation tool for the big map in the background. So the navigation have slider(to set the scale of big map) and a movie clip(to place the view in the big map to the right point). Does anyone have a reference to help me?? Or anyone have another suggestion for my application to make it easy to zoom and to view the right point after zoomed the map? I`m sorry if my english is not good. I`m Indonesian thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders