ios - Zooming frame graphics in Flash CS5 -


i developing flash cs5 ios app. on 1 of frames drawing many rectangles in particular pattern. use two-finger zoom , gestures zoom these rectangles on frame keep general pattern of these rectangles same. once zoomed in, user need pan around enlarged graphics.

i know create event handler when zoom in adds width , height each of rectangles have worry increasing x , y positions of each of rectangles keep same distance between each 1 , forth.

i there easier way this?

thanks

if you're drawing rectangles vectors, should able use scale property think, otherwise might need redraw bitmap rectangles based on new scale.

to use zoom gesture must first set inputmode touch:

multitouch.inputmode = multitouchinputmode.gesture; 

and you'll need listen transformgestureevent.zoom , use event's scalex,scaley:

yourrectangles.addeventlistener(transformgestureevent.zoom,onzoom);  function onzoom(event:transformgestureevent):void{ trace(event.scalex,event.scaley); } 

hth


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -