Zoom and stage reset

Friends,
I am new to flash and AS3 development. I am writing an IPad application using CS5 and AS3  and is published for Adobe Air 2. Here are my settings:
stage align = top_left
What am i trying to do :
I want to zoom in and see the contents of the zoomed out part by sliding and once i am done with that, i should be able to go back to the original screen (with no zoom effect). I have not enabled the zoom gesture on the stage and rather i have it on only one component, say a TextField. I could successfully zoom in and move the contents to see the zoom effect, but it looks like the whole stage is moving away from the view. Although i could reset the x, y, scalex, scaley of the component that was zoomed, i couldnt reset the view of the stage. it's kind of misaligned. How can i reset the stage ?
Additoinally, how can i ensure that a component say a list or datagrid is zoomed in and out within a particular area only ( may be inside a rectangle )?
thanks,
Lenin

Can someone please help me? I don't know what am doing wrong. When i normally zoom in and then drag the zoomed area, the stage gets shifted. Then when i restore the zoomed component, i couldn't get the stage to the default view. Not sure if there's any settings to overcome this ?
to overcome this behavior,  i am now thinking of setting an area within which the zoom in/out should appear so that the stage view doesn't get shifted. I have searched the google extensively but no help. scrollRect on a movieclip is supposed to do this but that didn't help either ( may be i am wrong ). i had a movie clip and a a rectangle (0,0, movie clip width, movie clip height) and set the scrollRect of the movie clip to this rectangle and then added a big text field on to this clip. when i zoom in the text field, the text field is still out of the rectangle.
Please advise me.

Similar Messages

  • Every time I click on something on a page that I have zoomed in on the new page's zoom setting is reset.

    I like to zoom in in certain web site pages to make them easier to see/read but now that I've downloaded the newest version of Firefox every time I click on something on a page that I have zoomed in on the new page's zoom setting is reset. How can I fix this, it is so annoying!

    Zoom is domain specific.
    See this:
    https://support.mozilla.com/en-US/kb/Page+Zoom
    If you find that you are having to zoom on many websites, try the Default FullZoom Level extension and set a default zoom level:
    https://addons.mozilla.org/en-US/firefox/addon/6965

  • Zoom level keeps resetting in Acrobat X

    Can someone tell me how to set the zoom level to be constant? Everytime i open a PDF, the zoom level is reset (usually to a very low zoom level). And everytime i click a bookmark, the zoom level gets reset.
    In preferences i have the zoom level set to "fit visible" but it does absolutely nothing...

    When bookmarks are set up, they can specify a specific zoom setting, or they can inherit the previous zoom. So how they behave depends on how they are set up. You can use various preferences to override the intial zoom setting of a document, but not of "go to view" actions of bookmarks, links, bottons, etc.

  • Screen zooms and has decreased use since the iOS update.  Does anybody else have this problem?

    While I was updating the iOS, my phone shut off and I had to do a factory reset since doing so.  Since I did the update, on the upper part of the screen has decreased function, and detects my movement as zoom.  Does anybody have this going on, or have a fix?

    When you say that it detects your movement as zoom, do you mean as you move your fingers it is increasing or decreasing the zoom? If that is the case, then zoom is turned on in Accessibility. If you are able to enter Settings, go to General>Accessibility>Zoom and turn that off.

  • HT204291 I can't see the airplay icon not on my ipad or iPhone , I did all the step suggest above and also reset my network connection ( which help for 10 min and then the icon disappear again) , please someone help , I am Desperate

    HI Everyone,
    FInally I got my AppleTV  and connected it to my TV and network , sadly it took me hours until I succeed to activate airplay after finding out in some forum that I need to reset my network connections and the airplay icon will appear , happily it happend and I start looking for answers regarding the huge lag in mirroring stage ( which still huge problem that have to be solve after I will solve the airplay disappear issue) .
    after 10 min the airplay icon disappear at my IPad and iPhone and even resetting the network connection is not helping , please please please some one help !!!

    Avielofer wrote:
     BTW, it changing the wi-fi channel is necesary please explain how to do so.
    It's not necessary, but is a good troubleshooting step.  How to do so varies from brand to brand.  Look at the manufacturers website, they should have a manual available that explains how to access the settings and change it.
    Avielofer wrote:
    The ATV connected to the routher via wi-fi , but both sitting on the same shelf.
    In that case, I would strongly encourage you to connect them via a short Ethernet cable.  The proximity of the two devices could be the culprit in the video quality issues.

  • HT4061 The screen on my Iphone 5 has zoomed and it will not go small again. How can I get it back? I can not navigate on the page at all and I can not power down the phone.

    The screen on my iphone 5 has zoomed and I can not navigate on the page. How can I reset it?

    Then go to Settings/General/Accessibility and turn off Zoom.

  • Zoom and drag help

    Hi everyone
    I am making a page turning book much like this example
    http://www.merc-clothing.com/newspaper.asp
    Ok a lot like this example, the size of my double page spread
    is
    1095 by 777 and the top left position is X-550 Y-457
    I have almost completed it but the one problem is when I zoom
    in and drag the page around there is no script to tell it not to
    let the page be dragged of the screen I hope this makes sense.
    Also when you zoom back out the page doesn’t return to
    the position it was before
    would anyone know where and what to add to this script to
    stop my mc being dragged so far the next set of page are revealed
    underneath and so when you zoom back out it returns to its original
    position
    I am a complete idiot regarding actionscript so please be
    gentle
    Thanks for your time
    this is the script im using now to zoom in and drag
    zoom_drag_zoom(newsMC, 100);
    function zoom_drag_zoom(myMC, myScale)
    // 1st param = the MovieClip you want to allpy this
    functionality to.
    // 2nd param = the amount you want it scaled down by when
    zoomed out
    // if no amount is give it will default to 50%
    // Deak's zoom, drag, zoom. 2006
    // allows you to zoom in to an MC
    // onPress, drag MC onMouseDown
    // and zoom out onRelease
    // sets the scale to 50% if no scale is given.
    myScale = (!myScale) ? 50 : myScale ;
    trace("myScale:"+myScale);
    //var myMC:MovieClip = newsMC;
    //initially reduce the size of the mc
    myMC._xscale = myScale;
    myMC._yscale = myScale;
    // set variables to false
    var zoomedIn:Boolean = false;
    var dragging:Boolean = false;
    // onPress is triggered as the mouse is clicked
    myMC.onPress = function()
    // checks to see if the MC is zoomed in (not zoomed).
    if (!zoomedIn) {
    // if the MC is not zoomed then increase scale to 100%
    myMC._xscale = 200;
    myMC._yscale = 200;
    // set variable to true, to be used later
    zoomedIn = true;
    dragging = true;
    // onMouseDown is also triggered as the mouse is clicked
    // N.B. even if the onMouseDown appears after the onPress it
    will be triggered first
    myMC.onMouseDown = function()
    // checks to see if the MC is zoomed in (is zoomed).
    if (zoomedIn) {
    // add a mouse listener
    Mouse.addListener(mouseListener);
    // Mouse listener is triggered when the mouse is down and
    only if the MC has been zoomed in.
    var mouseListener
    bject = new Object();
    mouseListener.onMouseMove = function ()
    // starts the drag of the MC
    startDrag(myMC);
    // set variable to true
    dragging = true;
    // the MC is now draggable so we can remove the lsitener.
    Mouse.removeListener(mouseListener);
    // onMouseUp is trigger when the mouse button is released,
    this will always proceed an onRelease.
    myMC.onMouseUp = function()
    // This removes the listener and stops the drag, called here
    so if you click the MC but do not move the mouse it will not
    prevoke the startDrag
    Mouse.removeListener(mouseListener);
    myMC.stopDrag();
    // onMouseUp is trigger when the mouse button is released
    myMC.onRelease = function()
    // condition: if MC is zoomed and you are NOT dragging the
    MC
    if ( (zoomedIn) && (!dragging) ) {
    // reduce scale
    myMC._xscale = myScale;
    myMC._yscale = myScale;
    // reset the variables
    zoomedIn = false;
    dragging = false;
    // this is placed here at the end of the onRelease to set
    the dragging variable to false.
    // if this was placed in the onMouseUp then the MC would get
    zoomed out as "dragging" would be false.
    dragging = false;
    stop();

    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!

  • Shuffle 2g and iPod Reset Utility

    I recently was unable to get my Shuffle 2nd gen to connect to my Mac ( SnowLeopard ) and iTunes 9. It kept giving me an error.
    Running through the Support section for the Shuffle 2g I came across a link for the "iPod Reset Utility" found here.
    I downloaded and installed it. Connected my Shuffle ( note it would only work when connected directly to my Mini through one of the rear USB plug-ins ) it read and identified my Shuffle and I reset the unit.
    All is working GREAT as of now. Installing music via iTunes.

    There are several different things to consider here:
    a) Disk Utility will only see your iPS when and if it's present as a mounted volume. Yours isn't mounting, it won't be seen. The fact that it's seen in the Profiles really doesn't mean anything at all.
    b) Disk Repair won't really do anything at all to a Shuffle.
    c) Re-formatting should NOT be done in your case. The only case when it's ever called for is a few cases where Windoze users have inadvisedly followed their own OS prompts to 'help out' by formatting this new drive that's suddenly popped up on their system. Even in those cases the Reset Utility will do the same thing and, beyond that, we're back to (a) above: If your iPS can be seen by Finder and Disk Utility then it can also be seen by the Reset Utility.
    d) You need to get to the stage where you can reliably open and use the iPod Shuffle Reset Utility. You might have to d/l a fresh copy of it, you might have to Repair Permissions, you might only have to log out to a Restart. What you DO have to do is to get it so that it will open and run.
    e) Once you do that, you have to make sure that you're exactly, exactly, following the instructions for its use. Severe cases absolutely require that it be run from a clean, fresh system start with nothing else at all going on, that it be given enough time to work, and that more than one run might be required.

  • My ipod seems to have automatically zoomed and will not unzoom, any ideas?

    my ipod seems to have automatically zoomed and will not unzoom?  I am looking for a way to hopefully reset?  thank you.

    For more information see:
    iPhone and iPod touch: Home screen icons are magnified or large

  • 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!

  • I have a iPhone 5.  In usage, it says i have 2.1 gigs used because of photos and camera.  I have deleted all my photos via iPhoto and now reset the phone back to factory settings in order to try to solve this problem, to no avail. Help!

    I have a iPhone 5.  In usage, it says i have 2.1 gigs used because of photos and camera.  I have deleted all my photos via iPhoto and now reset the phone back to factory settings in order to try to solve this problem, to no avail.   Both iTunes  and the phone say that 2.1 gigs are being used, even though the phone now has nothing on it.  What is going on?

    Yeah it works fine over wifi the problem is when I try to use it over my 3G. It's really stressing me out now.

  • HT204266 My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.

    My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.

    My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.

  • 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.

  • Why does iTunes and Safari reset data everytime its closed

    I have a power mac G5 and after I updated to the highest software update available, I find that iTunes and Safari reset their data everytime I close them. I have checked all settings and tried resetting to regular software and trying again. Any ideas?

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • I bought an iphone 4 from my friend and he do not know his apple ID and we are trying to know the email attached to is apple ID so we can rest it cause he forgot them as well and the reset button in the 2 steps always says that the email is always sent !

    i bought an iphone 4 from my friend and he do not know his apple ID and we are trying to know the email attached to is apple ID so we can rest it cause he forgot them as well and the reset button in the 2 steps always says that the email is always sent ! ( even if you wrote a worng ID like ( asdasdasd ) it will say sent !! how come and now am trying to know or need a hint on that email so my freind could try to remember it !
    to those who will think that this phone is stolen , no its not and i would love to go to apple store if there is 1 in jordan so they can help us ,
    i have everything with this iphone the box the catalog its serial number , everything but the ID and the (and apple ID is everything as you know)
    so please if anyone have any suggestion to help me , and even apple it self if the can help me to get a support from them cause i tried everything to contact them by mail or any other option since as i said there is no apple store in jordan

    he knows his ID , if he did all whats in the link he can get his password back ?
    how can i make him call applecare ? is there a way to speak to them from jordan ??
    i have been trying to reach any1 in apple so they can communicate and help my friend (us) to make him remember it .
    am not asking for the password or trying to get into the phone without using it , and i can take my money back though i need to help my friend as well since now he cant use it as well.
    thanks kil

Maybe you are looking for

  • CS6: How to display image contents while dragging/resizing?

    CS6 Illustrator, Windows 7 64bit Hello all, I'm a IT tech trying to help out one of my users, so I am not proficient in Illustrator by any means. With that being said, I was wondering if there is a way to display the contents of an image while you ar

  • Error in AS02 while modifying the costcentre

    Hello Gurus, While modifying the costcentre in AS02 getting an error message stating " You cannot change the depreciation periods". Full description of the message can see below. Please advice how to resolve the issue. SYST: You cannot change the dep

  • Where is metadata stored

    Where does iTunes store the metadata of a song? The main info like "name", "album", "artist" and all that must be stored in the file itself, as they are easily copied with the file. But are the lyrics stored in the same way? And how about the CD cove

  • My iTunes Music Library.xml includes 2 location paths for files

    A while ago, I copied and consolidated my itunes-songs from internal drive c: to internal drive f: I changed the location of my "itunes library" accordingly to look at f:... - all went well and all songs were playing from the new location (I thought)

  • How to get rid of pixelisation ?

    Hi, can anyone help me please? I have a piece of art work saved as a photoshop file. When i open it in Illustrator and blow it up, it becomes pixelised. How can i get rid of the pixel look to make the lines look smooth?                      thansk in