Limit Area of zoom and swipe in Gesture script

hi , i want to simulate zoom ( magnifier ) some text info in my android app
use these script to enable swipe and Zoom Gesture to my text ( that i put in movieclip with instance name : textzoom)
import flash.ui.Multitouch;
import flash.ui.MultitouchInputMode;
import flash.events.TransformGestureEvent;
import flash.events.GestureEvent;
var origX:Number;
var origY:Number;
Multitouch.inputMode = MultitouchInputMode.GESTURE;
origX = textzoom.x;
origY = textzoom.y;
textzoom.addEventListener(TransformGestureEvent.GESTURE_ZOOM, onZoom);
function onZoom(e:TransformGestureEvent):void {
    if (textzoom.scaleX > 0.5 && textzoom.scaleX < 3) {
        textzoom.scaleX *= e.scaleX;
        textzoom.scaleY = textzoom.scaleX;
    } else if (textzoom.scaleX < 0.5) {
        textzoom.scaleX = 0.51;
        textzoom.scaleY = textzoom.scaleX;
    } else if (textzoom.scaleX > 3) {
        textzoom.scaleX =2.99;
        textzoom.scaleY = textzoom.scaleX;
    //trace (e.scaleX );
stage.addEventListener(TransformGestureEvent.GESTURE_SWIPE , onSwipe);
function onSwipe (e:TransformGestureEvent):void{
if (e.offsetX == 1) {
//User swiped towards right
textzoom.x += 100;
if (e.offsetX == -1) {
//User swiped towards left
textzoom.x -= 100;
if (e.offsetY == 1) {
//User swiped towards bottom
textzoom.y += 100;
if (e.offsetY == -1) {
//User swiped towards top
textzoom.y -= 100;
Multitouch.inputMode = MultitouchInputMode.GESTURE;
stage.addEventListener(GestureEvent.GESTURE_TWO_FINGER_TAP, twoFingerTapHandler);
function twoFingerTapHandler(event:GestureEvent):void
        textzoom.scaleX =1;
        textzoom.scaleY = textzoom.scaleX;
        textzoom.x = origX;
        textzoom.y = origY;
now i can use zoom and swipe for read text in bigger size ( make easier to read ) , but now there is two problem :
1. when i zoom the text grows in stage and will cover all my screen and other part , and i don't want this , i just want the zoom function effect on the textzoom movieclip area .
2.the swipe function will continue till the text goes out of stage and disappeared !! how can i stop swipe function before textzoom movieclip goes out of stage completely ? so user can detect and see the corner of text and swipe them back
I upload two image to explain it better cause my english is not very good.
i really need to solve this , please help me , thanks

I would really like to know this too.
If you look at the help file:
http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-74dba.h tml#WSfd1234e1c4b69f30ea53e41001031ab64-74daa
(I hope that's a functional URL) It says that the old drag-zoom thing should still work. But I still get the "scrub" style zooming. None of the pref settings seem to affect it. Help!

Similar Messages

  • Preview zoom and page advance gestures unresponsive

    hi everyone, i have a late-2013 13" macbook pro retina, which came preloaded with mavericks. as the title suggests, preview at times is unresponsive to the trackpad gestures to pinch zoom and advance pdf pages. the current page just moves around in the window on its own without zooming or advancing.
    has anyone else had this issue?

    Same here -MBP 15", mid-2009- : 2-finger gesture for zoom doesn't work at all in Preview, neither in PDF nor in graphic (JPG, TIF, etc.) files.
    Any solution, any advice?
    Saluditos,
    Ferrán.
    Edit: I just found another thread describing the same problem, and one of the aswers made me try something: disable zoom gestures in Settings, reboot and then re-enable them back again. Problem solved.

  • Please include pinch&zoom and the virtual mouse in the next release

    Hello development team,
    Could you please reinclude the pinch & zoom and the other gestures from iTap?
    Same for the virtual mouse function, we got some apps that don't scale well on small screens so the virtual mouse was a very handy feature.
    Regards,

    Hi,
    Thanks for the feedback, I will help to submit the customer wish in our internal portal.
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Are you serious that photoshop does not support touch zoom and rotate??!!

    I just spent thousands of dollars on a new cintiq 22hd touch and now people are telling me that touch zoom and rotate are not supported in photoshop when running it with a windows platform (only works with MACS)???!!! are you serious???!!! I just tested this out and its TRUE!!!  You can pan with touch but not zoom or rotate.  The zoom and rotate functions work in all my other programs BUT NOT PHOTOSHOP.  I even have the latest version of photoshop (CC), latest patch and all and nope! no multitouch support! 
    I dont know who im more pissed with WACOM or ADOBE.   Wacom's touch advertising was supposed to be their selling point! if you cant even use it with the most popular graphics program...err what's the point???  And Adobe should have provided support like what...AGES AGO...the touch tablets and cintiqs have been out for almost a year now! 
    HOW IS IT POSSIBLE THAT WE LIVE IN 2013 and the best graphic hardware IS NOT COMPATIBLE with THE BEST GRAPHIC SOFTWARE on an OS (windows) that like over 50% of the population use??!!
    UNBELIEVABLE!

    I do not have a cintiq however I down loaded the user manuals for the DTH-2242 and DTK-2241 and the Cintiq 22HD> the first two Interactive pen displays seem to support multi Touch where the Cintiq 22HD only seem to support touch strips.
    The ones with multitouch support show this in the user manuals. On windows standard gestures are always on and there is no TAB. I would not like that.

  • I recently updated my iPad to iOS 8 and still checking on the settings. When I happened to swipe on my screen fro too long, it zoomed and I can no longer see what's on it. I can not even unlock it. What shall I do?

    I recently updated my iPad to iOS 8 and still checking on the settings. When I happened to swipe on my screen for too long, it zoomed and I can no longer see what's on it. I can not even unlock it. I can not use my iPad anymore. What shall I do?

    Try double tapping with three fingers and see if that reduces the screen image. If it does, unlock the iPad and go to Settings>General>Accessibility>zoom>Off. If double tapping with three fingers doesn't work, try triple tapping the home button instead.

  • MacBook Pro Photoshop CS4 not smooth zooming and fine lines are broken

    I got a new MBP 15" about a month ago and am also running Win XP via bootcamp. On the Windows side Photoshop CS4 will not smooth zoom and if I zoom out, fine lines are broken apart and only partially show. When I go into the performance preferences enable opengl is checked and under advanced, advanced drawing is checked, but the use for image display is grayed out no matter what I do.
    On the Mac side it works fine using either the 9400 or 9600 chipsets so considering Windows uses the 9600M GT which is the discrete one, it should work.
    There's no driver updates here on Apple.com and Nvidia.com says there is an update available, but when it tries to install it says the hardware isn't supported... even though on the screen before it says it is.
    Any suggestions would be much appreciated

    Anybody have any suggestions?

  • Tabs for Point & Click, Scroll & Zoom, and More Gestures do not show.

    Hi all
    Had to reformat my drive and install a fresh copy of lion but I can not see the  tabs for Point & Click, Scroll & Zoom, and More Gestures in my preferences all I get is
    Anyone have any ideas ?

    Never mind. I found the answer. There is a selection in the Trackpad titled "When using gestures to scroll or navigate, move content in the direction of finger movement" that is what controls the setting.
    I actually found the answer after I posted the question. I tried all kinds of combinations in the new ask a question psuedo-search feature of the support site and nothing showed up. After you post, the site offers questions similiar to the one just posted. It was one of those that solved the problem. I guess I didn't get enough keywords correct for the right answer to show up. I just wish Apple would let you do a standard search instead of trying to be helpful. So far, I've not found any answers I was looking for with the new search tool. All answers have been found on different sites using Google. Grrrr. </rant>

  • What can't we resize our pictures to fit as our wallpapers on the ios 7 system? nice photos are being zoomed in and cut off and theres no way to fix it, this need to be changes asap! back to the way it was on ios 6

    what can't we resize our pictures to fit as our wallpapers on the ios 7 system? nice photos are being zoomed in and cut off and theres no way to fix it, this need to be changes asap! back to the way it was on ios 6.... FIX FIX FIX!!!!!!!!

    Hello keraalovee,
    Setting Reduce Motion in your Accessibility settings (Settings -> Accessibility -> Reduce Motion) can help alleviate this behavior.
    iOS 7: How to reduce screen motion
    http://support.apple.com/kb/HT5595
    Cheers,
    Allen

  • After the recent update the entire browser, including menus, icons, and everything on the web page, are too small. Fonts are smaller, pics are smaller, zoom settings will not remain universal. Minimum font size will make text readable, but all pics are to

    The new update has screwed up my browser settings, I cannot get them fixed and Im pissed because my computer is an eye-sore to read until this is fixed! EVERYTHING in the browser is smaller, fonts, menus, icons, web page content, pictures, tables, etc. I have set the minimum font in the settings and the text is just to a point where it is easily readable at the maximum size setting, but all the menus and icons are still tiny and hard to read. The last version I had installed worked fine with no add-ons needed. Everything fit the screen fine and was easily readable without modification. I want this version off my PC and I want the last version I had back on but I dont know what version it was!!!!!!! ARARGGGG
    In fact, this stupid troubleshooting window that I am in filling out this form doesnt fit the page right at all, and edges of the text are cut off, so Im not even sure what some of these boxes are asking for!!

    See [[Toolbars and page content appear too large after upgrading to Firefox 3]]
    *Try to adjust the DPI setting, see http://kb.mozillazine.org/layout.css.dpi
    *Try to set the pref layout.css.devPixelsPerPx to 2 on the about:config page.
    To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
    If you see a warning then you can confirm that you want to access that page.
    If you need to increase (or decrease) the font size on websites then look at:
    Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    NoSquint - https://addons.mozilla.org/firefox/addon/2592

  • Can Touch Events and Swipe Events exist in the same frame and/or movie?

    After having fully tested a file with touch events I decided to add both a touch event and swipe event to a frame.
    I started by importing the following statements:
    Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
    Multitouch.inputMode = MultitouchInputMode.GESTURE;
    I then added th appropriate code but only touch events worked. I fiddled so more and only the gesture events worked. So before I move any further, I'm wondering if I'm wasting my time trying to get them to work together.
    So my questions are:
    Can Touch Events and Swipe Events exist together in the same frame?
    Can Touch Events and Swipe Events exist scene?
    A reference to more information about this would be helpful, if you know of any.

    I am aware of the latest releases of the components along with the plug-ins.
    This note is applicable to your scenario but you might face some issues related to organization rule wizard, custom user group creation and EAM DB log collection, as mentioned at the bottom of the note. No matter on what SP level you are with GRCFND_A at 10.1, you would face these issues.
    And so far, i don't think there is any more update from SAP on co-existence of plugins of 5.3 and 10.1
    Ameet

  • My iPhone 5 is locked in zoom and I cannot put in passcode to open

    my iPhone 5 is locked on zoom and i cannot put in passcode to open to change zoom

    Hello there, beverlyfromthewoodlands.
    It sounds like you may have inadvertently activate the Zoom Accessibility feature on your iOS device. The following link from the online iOS 8 iPhone User Guide explains how to turn the feature off or deactivate it:
    Zoom - iPhone
    http://help.apple.com/iphone/8/#/iph3e2e367e
    Zoom
    Many apps let you zoom in or out on specific items. For example, you can double-tap or pinch to look closer in Photos or expand webpage columns in Safari. But, there’s also a general Zoom feature that lets you magnify the screen no matter what you’re doing. You can zoom the entire screen (Full Screen Zoom) or zoom part of the screen in a resizable window and leave the rest of the screen unmagnified (Window Zoom). And, you can use Zoom together with VoiceOver.
    Turn Zoom on or off. Go to Settings > General > Accessibility > Zoom. Or, use the Accessibility Shortcut. See Accessibility Shortcut.
    Zoom in or out. With Zoom turned on, double-tap the screen with three fingers.
    Adjust the magnification. Double-tap with three fingers, then drag up or down. The tap-and-drag gesture is similar to a double-tap, except you don’t lift your fingers on the second tap—instead, drag your fingers on the screen. You can also triple-tap with three fingers, then drag the Zoom Level slider in the controls that appear. To limit the maximum magnification, go to Settings > General > Accessibility > Zoom > Maximum Zoom Level.
    You should be able to perform these steps before being required to enter your password.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • (Mountain Lion) suddenly the screen turns black, and I have to use the switch to turn it on. And, the screen turns to zoom, and the only way to turn to normal is to close the window and start all over again?

    (Mountain Lion) suddenly the screen turns black, and I have to use the on/off switch to turn it on. And, the screen turns to zoom, and the only way to return to normal is to close the window and start all over again?

    Does the screen go black while you are using the machine? ...or after it has sat idle for a bit?
    If it happens while you're using the machine, check to see if a hot corner has been set for sleep. You can do that here: System Preferences > Desktop & Screen Saver > Screen Saver and click the button labelled "Hot Corners..." in the lower right.
    If it happens after a bit of idle time, that's normal sleep behavior. The delay can be adjusyed here: System Preferences > Energy Saver.
    In either case, pressing any key on the keyboard should bring it out of sleep.
    Re zooming -
    If this happens while in Safari, and you are using an Apple Magic Mouse, a default setting applicable to it is that a soft double-tap on the mouse will zoom the Safari window. A second double-tap will bring it back.
    If it is the entire screen that is zooming, Control plus scroll gesture on the mouse will zoom the whole screen. Repeat with the opposite scroll gesture to bring it back.

  • I am have problems with firefox 5& 6. It does not display correctly. I have tried the no squint and the internal zoom. Some pages load ok, others like yahoomail, load tiny unless I zoom and then other pages have problems. Why? What else can I be doing?

    I am frustrated. With the no squint, which has a mind of its own, then some pages are fine, in others the type is too big or too small for the frames. If I use the default Firefox zoom that is no better. I have to set things for like 130 percent and am constantly having to click on the zoom and change things. I never had that with previous versions? Why can't Firefox just go back to displaying text in the correct frames at a decent size?

    I have played with all the options in no squint and the default zoom thing. My email list in yahoo remains tiny tiny, other things do not. If I enlarge that, then other things are too big. I never had this problem with older versions of firefox. I never had used any zoom features, it all sized itself correctly.
    To troubleshoot, I tried to open the same things with chrome, and it had much less of a problem sizing the type etc.
    I am kind of at my wits end here.

  • I've been using Aperture now for the past 7 months and really happy with it, however in the past two days any photos I download are heavily pixelated and blurry. When I download the same shots to any other program they are fine.

    Hi,
    I've been using Aperture now for several months without any issues except for the last couple of days...when I now download my shots from the memory card the photos are heavily pixelated and blurry but when loaded to iPhoto they are fine.
    Can someone tell me what the problem could be and how to fix it.

    Is Aperture doing any processing?  ("Window→Show Activity" -- anything there?)
    Are the Images pixilated/degraded when shown in the Viewer as well as in the Browser?  (Double-click an Image to open it in the Viewer.)
    How 'bout at 100%? (In the Viewer, press "z" to zoom to 100%.  The "z" key toggles the zoom.)
    Does generating a new Preview remove the pixilation?  (Select an Image in the Browser, hold down "{Option}" and click "Photos→Generate Preview".)

  • How do I add 'zoom' and 'minimize' to my toolbar?

    I am using Firefox 3.5.13 on a Mac OS 10.5.8.
    I would like to add "zoom"and minimize to my Firefox toolbar. The only options available to add that I see are:
    Separator
    Flexible space
    space
    home
    print
    activity indicator
    downloads
    etc, etc.
    No zoom or minimize. I do not want to have to use keyboard commands for this. Please advise.
    THANK YOU!

    Go to this link
    http://support.mozilla.com/en-US/kb/Page%20Zoom
    Since you don't want to use keyboard short cuts, go to he second or third choice.

Maybe you are looking for