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!

Similar Messages

  • On OSX 10.5.8 and I can't cut & paste or click and drag, HELP!

    Hi all,
    Please help! I can no longer click and drag icons or cut and paste.  I'm running OSX 10.5.8 on an '07 macbook, and I really do not want to loose everything, is there a solution???  At the same time I have had a little trouble with the net and downloading files.
    Is there a fix??  I'm desparate

    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 the 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 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.)

  • Track pad wont click and drag help?

    this may not be the right place but for some reason my track pad just randomly quit working when it comes to click and drag. i updated the software because i read one correct this issue but its still happening. can anyone help? do i need to take it to a mac store?

    That is unfortunate! However, here is some international contact information:
    http://www.apple.com/support/contact/phone_contacts.html
    I see that your location is on the list. It's possible that you could contact Apple directly and be referred to an Apple Authorized Service Provider who could diagnose what is wrong.
    In the meantime, you could always make a good backup and then reinstall the OS from disc and see if this cures the problem.
    If you really feel this is software rather than hardware, it might be worth posting your question in the Snow Leopard forum where all the software experts are. It may be a simple matter of trashing a .plist or something like that.
    Good luck!

  • Zoom and Drag

    In [this thread|https://forums.oracle.com/forums/thread.jspa?messageID=10034311#10034311] I asked about how to clip an image when you zoom in on it, so that you don't take a big memory and processing hit. But having an answer to this question, I'm left with the issue - which I'm sure has been solved by others - of how to allow the user to move the image (as you do when you drag across a Web-based map so that you can bring the object you want to look at into the center of the view.) My code had allowed the user to do this when it had the flaw of keeping the whole image in memory. But now that the image is clipped, the user can't do this anymore. I suppose that in order to solve this, you have to create that part of the image the user is dragging into view. There must be established ways of doing this. I'd appreciate any tips.

    I've not done this for a couple of years now, but look at BufferedImage and Graphics api's. getSubImage is a nice little method that will give you part of the main image--you are strill actually looking at the main image, but just part of it. Also drawImage is what you want to use into a new Graphics context for viewing that part of the image. If you want to do anything to that subimage and not have it in effect on the main image, you'll need to create a new Image (If I recall correctly that subimage and image both have the same graphics contexts--they point to the same area).

  • I am facing problem zooming and in slide as i think there is some general setting got changed help to rectify.

    i am facing problem zooming and in slide as i think there is some general setting got changed help to rectify.

    If the screen appears zoomed in then try double-tapping the screen with 3 fingers (with zoom 'on' you need to use 3 fingers to drag around the screen), and then go into Settings > General > Accessibility and turn Zoom 'off', and possibly also change what Triple-Click Home is set to.

  • Is there any way I can get "click and drag" zoom in CS5?

    As a long-time Photoshop user, it is making me crazy that "click and drag" zoom no longer works.  I hate the "fly-in" zoom.   I've turned off Animated Zoom (and all the other zoom options) but nothing helps.  Is there a solution for this?

    Look at the options for the zoom tool, and turn off the checkbox for scrubby zoom.

  • How do I import or move multiple selected photos to an existing album in iPhoto 9.6? In previous versions I could select and drag multiple photos into an album. Now I can only move one photo at a time. Help!

    How do I import or move multiple selected photos to an existing album in iPhoto 9.6? In previous versions I could select and drag multiple photos into an album. Now I can only move one photo at a time. Help!

    Try this general troubleshooting procedure:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete the contents the following folder: User/Library/Containers/com.apple.iPhoto
    3 - reboot, launch iPhoto and try again.
    NOTE: For Mavericks and Yosemite,  go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
    where you can check the Show Library Folder checkbox.

  • How do I reorder songs in a playlist in the new itunes??? I can no longer just click and drag. When I click, it doesn't move!!!! Need help ASAP- trying to prepare for an aerobics class and need songs in a specific order!

    How do I reorder songs in a playlist in the new itunes??? I can no longer just click and drag. When I click, it doesn't move!!!! Need help ASAP- trying to prepare for an aerobics class and need songs in a specific order!

    Vera,
    Use View > View Options, and set 'Sort By" to "Manual Order."
    Then you will be able to drag-n-drop songs up and down the list.

  • Transparent Background Actual Pixels and Clicking and Dragging Zoom

    So I had to reinstall Photoshop for a number a reasons, and because of this I lost all of my settings.
    There's two settings I lost and don't remember what I did to turn them on.
    1. The Transparent Background is actual pixel size.
    I don't like zooming in and seeing the transparent background not change. I liked it when it was 12x12 pixels per transparent box. What setting do I have check or change to get that back to normal?
    Example: http://puu.sh/9zjjb/1d48b7ebd5.png
    2. Clicking and Dragging Zoom.
    When I now click and drag, I gives me an area I want to zoom in. I don't like this at all. I'm not animating in flash, I'm just drawing. I liked it better when I clicked and dragged up, down, left or right to zoom in on the area I clicked on. What setting is that to enable that?
    Example: http://puu.sh/9zj8O/ec329b1d6f.png
    I'm using Photoshop Cs6.
    If someone can tell me how to fix both of these problems I'm having, that would be grand.

    The way you're seeing it work now (with the checkerboard size remaining the same on the screen no matter what the zoom) is the expected way with the Graphics Processor Advanced settings set to Drawing Mode Normal or Advanced.  If you want it to work the way it did before, go into your Preferences - Performance dialog, click the [Advanced Settings...] button, and choose Basic drawing mode.
    Regarding the Zoom...  Select the Zoom Tool, and look in the Options bar (up near the top of the Photoshop main window).  Change the [ ] Scrubby Zoom checkbox.
    -Noel

  • When i switch on my macbook its icon first appears smallers then gets bigger and the place where we enter the password.......that page looks like over zoomed. Please help tell what to do????

    when i switch on my macbook its icon first appears smallers then gets bigger and the place where we enter the password.......that page looks like over zoomed. Please help tell what to do????

      Reset PRAM.   http://support.apple.com/kb/PH18761

  • My husband's only way to communicate is with ipad.  He now has double-vision.  The icons are too small.  Is Apple planning on accommodating us boomers and handicapped with a larger icons? Zooming doesn't help becuase of limited manual dexterity.  Thanks

    My husband's only way to communicate is with ipad.  He now has double-vision.  The icons are too small.  Is Apple planning on accommodating us boomers and handicapped with a larger icons? Zooming doesn't help because it's not a permanent setting and he can't change it too meet his needs because of limited manual dexterity.  I understand and appreciate the desire for consistency, couldn't they make a two or three size option setting. Small, Medium, Large and maybe Xlarge?

    Thanks.  Tried it.  The size of icons is great but now the part of the screen is missing.  For example, he likes going into his  music app, yes, it was easier for him to see and select, but once in the app he couldn't see the sides, so he couldn't select song without a double-tap to get it out of zoom.  I will see if I can arrange his pages so that all icons show.  This is a sort of work around.  Larger icons would be a better solution.  My husbands illness makes him akin to a person with ALS, so his ipad is his prized possession.

  • Help Needed in Zooming and Zooming Out Images in flex

    Hi
    I am using <mx:Zoom /> component to zoom an image!
    I am able to zoom and Zoom out the Images but when I zoomIn the Image is cropping!
    Can any one give me the link or code for best zoomin and  zoomOut for Images?
    Is there any way that I can Zoom Video in flex?
    Thanks n Regards
    Aruna

    Probably the simplest solution is to use password-based encryption (PBE). See http://java.sun.com/j2se/1.5.0/docs/guide/security/CryptoSpec.html#PBEEx
    for an example.

  • HELP !! I keep changing my zoom and I don't know how I did it. Can you help me learn how to fix it ?

    I am trying to leave IE for Firefox, but am having some problems. This issue is that I keep changing my zoom and I'm not sure how I've done it OR how to undo it.
    I also have secondary issue on bookmarks.

    See also:
    *https://support.mozilla.com/kb/how-do-i-use-zoom
    *http://kb.mozillazine.org/Zoom_text_of_web_pages

  • Drag and Drop HELP!

    OK - Here's my problem. Just moving from AS2 to AS3 and
    trying to create a drag and drop template. I need to re-use a
    single drag selection multiple times, to multiple targets and then
    graded. For example, say I was building a car by dragging parts
    over to a car frame. I need to be able to drag a copy of a tire to
    the car frame 4 times in any random order. Drag 2 doors in any
    order, or drag one item like a hood... etc, then grade to make sure
    all are in the right place.
    I have succedded in dragging a specific Drag item to a
    specific Target and give feedback as it is dropped (either "wrong",
    "correct" or "Good Job, Completed"), but having a bear of a time
    trying to figure out how to use one Drag item for multiple Targets.
    Anybody have a sample template FLA of the same concept that I
    can build from?
    Many, Many, Thanks!

    What I am trying to do is to be able to use one of each of
    the images on the left multiple times, and put them in the correct
    position on the diagram in any order and then checked after student
    drops the item on a target. (sample sent to email)
    I have 1 for 1 working (working targets have green
    highlight), but can’t figure out how for instance, drag 2
    barrels in any order, 6 red squares over in any order and 2 orange
    circles over in any random order. I am stuck on 1 drag item for one
    specific target only.
    I would like the selections to remain to the left and copies
    of them created and dragged to the targets. (currently they are
    removed from the left when dragged)

  • Help, Click and drag not working

    Hey i have a problem, my click and drag IS enabled without drag lock however i am still unable to drag, any tips or hints? im currently running OS X v 10.9.1

    I think you need to put the mouse cursor in the top of the window that you want to drag...

Maybe you are looking for

  • Cisco ASA 5505 - EasyVPN - ARD can't scan remote Networks

    Hi all, We have been installing Cisco ASA5505 to hook our systems and remote offices together.  Our first install went great, and I can scan the remote network no problem, this network is setup using the site to site VPN setup. Since then we have add

  • How best to use TWO Time Capsules, Airport Express and Apple TV?

    Hello I have the following Apple equipment and am wondering how best to plug it all together. At the moment I am not using some items at all because I do not know how to best use! 1. MacBook Pro (2012 model) 'Mac1' 2. MacBook Pro (2009 model) 'Mac2'

  • Can not connect R/3 to BW

    Hi everybody, I'm trying to connect an R3 source system to BW  in transaction RSA1. But I get the error Message no. RSAR501. "No connection to system  possible" When I try to connect using the manual(SM59) connection there is no error in both system(

  • File appear open twice in manage open files

    Im having an issue with the manage open files in Windows server 2012. The problem is that some files appear open twice by the same user. Im using server replication between 3 servers using the same OS and the same data structure. Sorry that i can't u

  • Network problem- FTP Not ejecting!!!!!!!

    I have a problem. I am connected to an FTP server, but I cannot disconnect from it. I've tried dropping it to the trash can, and trying to eject it from a finder window (the list on the left). Clicking eject, but nothing. I've logged out and back in,