Adding a button with zoom function

Hello,
I am working on a product catalog and for this purpose we have used a professional photographer to shoot product photos. The photos are really nice and they can be zoomed in to see every detail clearly. The photos have been inserted into the pdf catalog but because of the limited space they are not very detailed.
Is it possible to add a button or link with zoom function? For example, an icon such as a magnifier or just the word zoom so when a user clicks it, it will zoom in the pre set area to a pre set level and center it.
Sounds quite fancy right? Maybe i'm thinking the impossible... but it's worth a try here :)
Regards,
Rudi

ok. i got it! :))
i have made some changes myself. When the mouse enters button1, button2 becomes visible and button1 becomes hidden (otherwise it is overlapping button2). I have set this in the actions of button1. I would also add the following function: when visible button2 is clicked it hides button2 (this you have already shown and works) and makes button1 visible again. I guess making button1 visible again has to be done with a Javascript in the actions of button2 under mouse up.
I have no knowledge of programming. Can you tell me how to do this?
After i openen the pdf file and used this function and close the pdf file it asks to save the pdf file. How can i prevent this to show up? I dont want this to happen to my customers.
Is it possible to see the exact dimensions of the button? Then i could create both buttons so that they fit in my catalog exactly as i want them, and then check the dimensions and scale my photos to it. Although it seems that Acrobat does something with the photo size already as the photo in button2 is 34mb while the pdf file is only 200kb.
thanks.
rudi
BTW this is really a well thought out solution and i think not many people are aware of this because i have never seen it before

Similar Messages

  • Two button with single function

    I want to create two buttons for single function and one button for one function. For example, I click button1, the screen will show "clicked1"
    If I clicked button2, the screen will show "clicked2". If I click button1 and then click button2, it will show "two button are clicked". However, it does not work in two button with single function. What is the problem? Here is the code.
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var button1:MovieClip=new Button1();
    button1.x=200;
    button1.y=200;
    addChild(button1);
    var button2:MovieClip=new Button2();
    button2.x=300;
    button2.y=250;
    addChild(button2);
    button1.addEventListener(MouseEvent.CLICK, onClick);
    button2.addEventListener(MouseEvent.CLICK, onClick2);
    var isClicked:Boolean;
    var isClicked1:Boolean;
    function onClick(evt:MouseEvent):void{
              isClicked=true;
              trace("clicked1");
    function onClick2(evt:MouseEvent):void{
              isClicked1=true;
              trace("clicked2");
    if (isClicked&&isClicked1){
              trace("two buttons are clicked");

    It works but I want the screen only shows the "isClicked" only when I click button1. But now when I click button1, "isClicked" and "two buttons are clicked" show at the same time.
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var button1:MovieClip=new Button1();
    button1.x=200;
    button1.y=200;
    addChild(button1);
    var button2:MovieClip=new Button2();
    button2.x=300;
    button2.y=250;
    addChild(button2);
    var isClicked:Boolean;
    var isClicked1:Boolean;
    button1.addEventListener(MouseEvent.CLICK, onClick);
    button2.addEventListener(MouseEvent.CLICK, onClick2);
    button1.addEventListener(MouseEvent.CLICK, onClick3);
    button2.addEventListener(MouseEvent.CLICK, onClick3);
    function onClick(evt:MouseEvent):void{
              isClicked=true;
              trace("clicked1");
    function onClick2(evt:MouseEvent):void{
              isClicked1=true;
              trace("clicked2");
    function onClick3(evt:MouseEvent):void{
              trace("two buttons are clicked");

  • Button with dual functionality

    Is there a way to create a button that has a rollover caption?
    I want the user to be able to rollover the button and text to show up over the button, kinda like a tool tip, and the text to disappear when the user rolls off the button.... but the button need to function as a button (need to navigate to a differnt slide).
    I hope this maks sense.
    Thanks in advance!

    Hi there
    Sure thing. Insert a standard button. Then click the Options tab.
    Enable the Hint caption.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Help with zoom function

    I have some mouse commands to scroll a screen horizontally... need some help adding in a zoom feature where moving the mouse up will zoom in, moving out will zoom out.  Here is the code I have so far:
    import mx.transitions.easing.*;
    import mx.transitions.Tween;
    import flash.filters.DropShadowFilter;
    import mx.events.EventDispatcher;
    //constants
    var CENTER_STAGE:Number = Stage.width/2;
    var SCROLL_HIT_AREA_POSITION:Number = Stage.width/2;//distance from edges of screen that should trigger scrolling
    var RIGHT_SCROLL_HIT_AREA:Number = SCROLL_HIT_AREA_POSITION;
    var LEFT_SCROLL_HIT_AREA:Number = Stage.width - SCROLL_HIT_AREA_POSITION;
    var RIGHT_SCROLL_EDGE:Number = 100;//x pos at which front scene should stop scrolling left
    var LEFT_SCROLL_EDGE:Number = -200;//x pos at which front scene should stop scrolling right
    var scrollableArea:Number = RIGHT_SCROLL_EDGE - LEFT_SCROLL_EDGE;//hill1._width - Stage.width;
    //var SCROLL_CENTER_POINT:Number = scrollableArea/2;
    var SCROLL_DECELERATE_POSITION:Number = 75;//how far from the edges of the scene does the scrolling slow down
    var DEFAULT_FRICTION:Number = 1;
    var SPEED:Number = 50;
    //variables
    var friction:Number;
    var distFromEdge:Number;
    //var swfContainer:MovieClip;
    //var localRoot:MovieClip = this;
    //var localParent:MovieClip = this._parent;
    // determine the correct path to the photos
    var dispatchEvent:Function;
    EventDispatcher.initialize(this);
    setBitmapCaching(true);
    this.onEnterFrame = testForScroll;
    // determine whether to scroll or not and by how much, based on mouse position and position of the scene
    function testForScroll():Void{
        var xMouse:Number = this._xmouse;// where is the mouse on the x axis?
        var yMouse:Number = this._ymouse;// where is the mouse on the x axis?
        var mouseOnStage:Boolean = xMouse > 0 && yMouse > 0; //before someone scrolls into the swf stage area, the mousex and mouse y values are 0, 0 so we need to make sure they are positive values or the scene will begin scrolling to the right immediately
        var mouseInScrollArea:Boolean = xMouse > LEFT_SCROLL_HIT_AREA || xMouse < RIGHT_SCROLL_HIT_AREA;//is the mouse close enough to edge of screen to trigger scrolling
        if(mouseOnStage && mouseInScrollArea){//only execute if mouse is over the scroll trigger area   
            var xScrollPos:Number = pintMC.cowMC._x;//x position of the main movieClip
            var xDirection:Number = (xMouse - CENTER_STAGE)/Math.abs(xMouse - CENTER_STAGE);//what direction is the scene moving   
            var nearLeftEdge:Boolean = xScrollPos > (scrollableArea - 100);
            var nearRightEdge:Boolean = xScrollPos < (RIGHT_SCROLL_EDGE + 100);
            if(nearLeftEdge && xDirection == -1){
                distFromEdge = scrollableArea - xScrollPos;
                friction = (scrollableArea - xScrollPos)/SCROLL_DECELERATE_POSITION;
            }else if(nearRightEdge && xDirection == 1){
                distFromEdge = xScrollPos - RIGHT_SCROLL_EDGE;
                friction = distFromEdge/SCROLL_DECELERATE_POSITION;
            }else{
                friction = DEFAULT_FRICTION;
            //determine how far to move the scene
            var acc:Number = (xMouse - CENTER_STAGE) * (1/SPEED) * friction;
            //will next movement make scene scroll past one of it's edges
            var reachedEdge:Boolean = (xScrollPos - acc) < RIGHT_SCROLL_EDGE || (xScrollPos - acc) > LeftScrollEdge;
            if(!reachedEdge){// only scroll if not going to pass edge
                scrollScene(acc);
    // move the various scenes at relative speeds
    function scrollScene(acc:Number){
        pintMC.cowMC._x -= acc;
        pintMC.flutterbyMC._x -= acc;
        pintMC.grassMC._x -= acc;
        pintMC.cloudMC._x -= (acc/2);
        pintMC.barnMC._x -= (acc/3);
        pintMC.bgMC._x -= (acc/5);
    // in order to optimize performance, we create a bitmap of each moving scene. This eliminates the enormous number of vector redraws Flash must perform if vectors are intersecting.
    function setBitmapCaching(cache:Boolean):Void{
        pintMC.cowMC.cacheAsBitmap = cache;
        pintMC.flutterbyMC.cacheAsBitmap = cache;
        pintMC.grassMC.cacheAsBitmap = cache;
        pintMC.cloudMC.cacheAsBitmap = cache;
        pintMC.barnMC.cacheAsBitmap = cache;
        pintMC.bgMC.cacheAsBitmap = cache;
    Thanks for any help

    You mac doesn't support those preferences.  It only supports tap, double-tap, drag and scrolling.

  • Button with 2 functions

    HI there
    I have a button which triggers different object states. They are basically a series of "+"buttons that show more info. When one is pressed, it naturally closes any other open info box and shows its own.
    the added fucntion we need is if the button is tapped a second time (while it's state is active), it needs to then hide it's state so no states are showing.
    is this possiblE?
    thanks!
    Steve

    Yes, you can do this by copying each button to the MSO state in the same place as the original button and pointing that copied button to the invisible state. When the state is selected, the copied button then pops on top of the parent button. Here are the basic steps:
    1. Create your MSO with three states: Base, State B, and State C.
    2. Create two buttons next to the MSO. One points jumps to State B, the other points to State C.
    3. In the Object States panel, select State B. Select the first button, copy it, and paste in place. With the pasted button still selected, Shift-click to select the MSO, and then click the Add button (not the New button) to add the button to State B. Then edit the button to jump to the Base state.
    4. Do the same thing with the other button.
    5. Test.

  • Adding Print Button With Java Script to Print of Different Pages Differently

    Hi,
    I am in the process of making a form and most of it is done and now I want to be able to print off two of the pages but to different printers, I have one that needs to be printed off on a regular A4 printer and another that needs to go to a label printer. I have both of the names for the printers and I have tried something but it just doesnt do anything at all (this is suggested by adobe I think?)
    var pp = this.getPRintParam();
    var printamount = this.getValue("Quantity_Boxes");
    pp.printerName = "Zebra Technologies ZTC GK420t";
    pp.firstPage = 3;
    pp.lastPage = 3;
    pp.NumCopies = 2*printamount;
    this.print();
    I tried it without the first and last page and nothing happens, I am useing a shared printer which works when I do cmd + P which the full printer name is Zebra Technologies ZTC GK420t @ User's iMac. (I have also tried putting the full name in aswell)
    This is just to test one page so far but is there any way that one button will be able to print off 2 different pages to 2 different printers?
    If someone knows how this would be a great help!
    Thanks,
    Bruce

    Thanks for that, I have it working now but it shows the dialog box with no settings changed should i use:
    pp.interactive = pp.constants.interactionLevel.automatic ?
    Thanks,
    Bruce
    EDIT:
    It printed but only the first page but it printed on the right amount quantity was 2*3 wich was the result of the Quantity_Box value
    I want it to print page 3 through the Zebra Printer and have page 2 printed to a different printer, is this possible through one button?

  • Actionlistener - for multiple buttons with similar functionality

    Hi, all:
    I'm working on a calculator program and want to know how to go about making a generic ActionListener for all the functions (i.e. +,-,*,/) so that I don't have to write separate inner classes for each function (i.e. + button, - button, etc.).
    I think this generic class should be created within a method that takes parameters. The parameters are then used within the inner class.
    What I need to know specifically is whether it's possible to pass a string operator symbol (e.g. "+" or "-") as a parameter in the following context:
    class buttonListener implements ActionListener
    public void actionPerformed(ActionEvent e)
    intField1Val + intFieldVal2;
    in this case, the "+" would be the parameter that would change depending on the values provided to the method.
    Can this be done??
    I'd also appreciate any other feedback you can give m,e on this problem (i.e. how to set up the method...basic structure??)
    Thanks!!

    Hi there,
    One way to do this is as follows:
    Button plus = new Button("+");
    Button minus = new Button("-");
    public void actionPerformed(ActionEvent e) {
    String componentHit = e.getActionCommand();
    if (componentHit == "+") {
    doAddMeth(); // implemented elsewhere
    else
    if (componentHit == "-") {
    doSubMeth(); // implemented elsewhere
    ~Bill

  • Problem with Zoom Function on iMovie on IPad2

    I have been trying to make a slideshow.
    When I select photos from Camera Roll only part of them appears in the Timeline and Viewer windows, even after I cancel the Ken Burns Effect.
    When I try to increase the visible area of the photo by pinching in the Viewer window it simply bounces back.
    Pinching in the Timeline window doesn't seem to work at all.

    Rh certainly did get tested on an iPad and other mobile devices but using the correct format for those devices. In Rh10 you would have to create a Multiscreen Layout. In Rh11 you could create a Responsive Layout which is much easier and designed to work on any device, PC, Android, iPad etc.
    See the RoboHelp Tour on my site and look in the sample projects that ship with Rh.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Printing problem when adding a button to print the whole page

    Hello,
    I added a button with printing option = Apply to self, Print = page.
    The result is that it prints only the i-view in which the button is located. I want the whole page to be printed. The page is composed of several i-views and I also use layers.
    Has someone an idea ?
    Thanks a lot,
    Thomas

    Hi Thomas,
    I received exact the same problem case during our visual composer developments. On SPS 14 the print functionality worked as expected with the print option u201Cprint pageu201D. After the implementation of SPS 16 we had to use u201Cprint screenu201D.
    Hopes this helps.
    Best regards
    RB

  • DPS: pinch and zoom function not working on all pages within folio (v30 tools using the pdf setting). What would cause some pages to pinch and zoom fluidly, while other pages appear a bit sticky? Could it be a button on the wrong layer?

    What would cause some pages in the same folio to pinch and zoom fluidly, while other pages appear a bit sticky? Could it be a button on the wrong layer that's not allowing the pinch and zoom to work?
    I do have a "go to state" button that enlarges graphic to full page on the page. Could this be cancelling the pinch and zoom functionality? Would a box with text wrap ON affect the ability to pich and zoom? What else may be causing this?

    What would cause some pages in the same folio to pinch and zoom fluidly, while other pages appear a bit sticky? Could it be a button on the wrong layer that's not allowing the pinch and zoom to work?
    I do have a "go to state" button that enlarges graphic to full page on the page. Could this be cancelling the pinch and zoom functionality? Would a box with text wrap ON affect the ability to pich and zoom? What else may be causing this?

  • Pioneer 8400 DVD receiver player, as iPhone ios6 update now when connecting the new iPhone with ios6 via blutooth (firmware prob) to my car DVD 8400 unit, when playing music such as on my phone or Pandora the track button does not function or work at all

    pioneer 8400 DVD receiver player, as iPhone ios6 update now when connecting the new iPhone with ios6 to my car DVD 8400 unit, when playing music such as on my phone or Pandora the track button does not function or work at all not even if i press skip track forward or back on the unit it doesn't function everything works except that. on listening to radio or anything else related not pairing thru Bluetooth unit works fine, seems there to be Bluetooth update that is not making iPhone and unit not compatible at all. does pioneer need fix this problem with update firmware or thru apple need help. my iPhone was working fine before with previous ios 5 before.

    Dear Valued Pioneer Customer:
    We would like to inform you of the availability of an optional Bluetooth® firmware update (HW05-SW01.27.20) that enables Bluetooth AVRCP control and metadata display from a compatible Pioneer CD or DVD Receiver when used with an iPhone® 5 or iOS 6 device.  If you do not own an iPhone 5 or iOS 6 device, there is no need to install this update.
    This firmware update may be used only with the following 2012 Pioneer products:
    CD Receivers
    DVD Receivers
    DEH-P8400BH
    DEH-P9400BH
    DEH-80PRS
    AVH-P2400BT
    AVH-P3400BH
    AVH-P4400BH
    AVH-P8400BH
    In order to perform this update, the following items are needed:
    A Pioneer CD or DVD Receiver above with built-in Bluetooth
    Laptop with built-in Bluetooth running Windows® 7
    Bluetooth firmware update (HW05-SW01.27.20)
    How to Obtain the Free Firmware Update
    1. Download the INSTRUCTIONS for the optional Bluetooth firmware update (HW05_SW01.27.20).
    2. Download the UPDATE FILE to a computer and transfer the file to a compatible 2012 Pioneer CD or DVD Receiver via a Bluetooth-enabled Windows 7 laptop.
    You can also arrange for Pioneer to update your 2012 Pioneer CD or DVD Receiver by calling Pioneer Customer Service toll free at 800-421-1404 during regular business hours (M-F 10AM-7:30PM Eastern Time, except on holidays). If this firmware update is performed by Pioneer, there is a charge of $60.00 (this charge includes return shipping of the updated unit within the U.S.). Charges for removal/reinstallation of the unit and shipment to Pioneer are the customer’s responsibility.
    How to Determine if the Firware Update has Already been Installed
    CD Receivers:
    • With the unit turned off (press and hold the source button until the CD Receiver turns off), press and hold the center of the volume knob to bring up the Settings menu → rotate the volume knob until "BT Version Info" is displayed and then press the center of the volume knob → The firmware version should show HW05-SW01.27.20.
    DVD Receivers:
    • With the unit turned off (press the home button and select ‘OFF’ from the source icons), press the home button → Press the “System” icon at the bottom of the screen → Select the “Bluetooth Version Info” option → The firmware version should show HW05-SW01.27.20.
    If the Bluetooth firmware version shows HW05-SW01.27.20, no further action is necessary.
    Questions
    If you have any questions, please contact the Pioneer Customer Service Center toll free at 1-800-421-1404, Monday through Friday, 10:00 a.m. to 7:30 p.m. (Eastern Time), except on holidays.
    Sincerely,
    Pioneer Electronics (USA) Inc.

  • Move button to the next page with his function.

    Hello, is the any way to move a button to the another page with his functions?
    I can't creat a new button, because I need all the function that contains the button original. I use it now, but it is not ok for to change te page because it has not the paramater location.... :
            var newAddRect=[addRect[0], addRect[1] + delta -1, addRect[2],addRect[3] + delta -1];
            btnAdd.rect = newAddRect;
    I saw the propierty: button.page, but is only for read.
    I know about the propierty Action of the button, and I know that I could assign the code... but I descarted because it's will generate a recursive code....
    Can I use in the button.Action the call a trusted function ?
    Thank you!
    Regards.

    Thank yoy try67 !
    I am trying this way, now I am creating a new button, and I am trying to put, all the code of the original button in one function.
    And, when I am creating de new button  btn:
    var btn = this.addField(name, type, page, newAddRect)
    btn.setAcion("MouseUp","myFunction()");
    this not works...
    the function is in one file in:
    C:\Documents and Settings\user\Datos de programa\Adobe\Acrobat\9.0\JavaScripts\myFile.js
    and the contains of the function is a simple alert.....
    Any idea...¿?
    Thank you!
    Regards,
    Xavi Marín.

  • Rollover button css styled with php function: possible?

    Hi,
    I created a working rollover button css styled, with normal href links, using this html:
    <p class="button"><a href="link"><click here><span>Text</span></a></p>
    But I would like to know how I can create a "contact us" button with following php function included:
    <?=createMailto('[email protected]')?>

    Well, I wrote the button code as mentioned in my first post, but the button does not call the email php function. When I replace the link in a href="link" with the php function, I can't get it to work.
    I have to use href to get the button to display, and to change state on hover; but I don't know how to get the php function to work. Using this function as a plain function call within a regular <p> tag works.

  • Since Mavericks, the scroll-with-modifier-key-to-zoom functionality often fails, and I have to deselect it and reselect it in the accessibility pref-pane to get it working again.

    Since Mavericks, the scroll-with-modifier-key-to-zoom functionality often fails, and I have to deselect it and reselect it in the accessibility pref-pane to get it working again.

    Take it to your local Apple Store or AASP, it's covered by a 1 year hardware warranty. If you have AppleCare then give them a call but I'm pretty sure they will advise the same. If you have not purchased AppleCare yet please do, this will extend the warranty to 3 years however it MUST be purchased within the first  year of ownership. Let it go 366 days and you are out of luck. AppleCare will also include telephone support too.
    Good luck.

  • My time capsule was working and then I added another Macbook pro. TC stopped appearing in Airport Utilities. I have tried resetting TC, I have turned if off and held reset button with pen for 10 secs. I just cannot work out what else to do?

    My time capsule was working and then I added another Macbook pro. TC stopped appearing in Airport Utilities. I have tried resetting TC, I have turned if off and held reset button with pen for >10 secs. I just cannot work out what else to do? I have turned router off and on. Amber light is flashing.

    The ethernet says self assigned IP 169.254.67.6
    Then the ethernet is not getting an IP from the TC.. there is no connection.
    I am not sure where you mean when you say the green LED should be on. Do you mean the TC?
    Thanks
    In order to help troubleshoot ethernet connections all routers use connectivity leds.. even APPLE.. it has one big LED on the front.. and 4 tiny leds beside each ethernet port. That light has to come on for ethernet to be active.. if you plug an ethernet cable into the port and the light doesn't come on.. then there is no connection.. either the other end isn't plugged in.. or the cable is bad.. or the ethernet port is bad.. something is wrong.
    To get access to the TC you need this led to be green.. is it?
    If it is green and the WAN is also green.. then I want you to unplug the WAN connection.. the blue wire in the picture.. the port slightly separated from the 3 LAN port.. computer plugged just into LAN port.. no airport turned on.. and press the reset again for 10sec until front led flashes rapidly.. then try and bring up the airport utility again.. assuming the ethernet led is green.
    How old and what model is the TC?
    The A number from the rubber mat will tell us the model.

Maybe you are looking for