Duplicating Buttons and Actions?

I am creating an Interactive PDF and will be using buttons to show and hide many of the features. I would like to replicate many of the buttons and the actions. However, when I try and copy and paste (or use option) to do this actions attached to the button would not export to the PDF. Is there anything I can do to fix this or accomplish the same thing?

If a button is not working correctly, here are the typical culprits.
1. PDF viewer. Interactive elements may not work on various PDF viewers, but in your case, you're using Reader. 
2. Corruption. An Indesign document (especially one with with many interactive elements) can become corrupt. Export to IDML, open IDML back into ID, export to PDF and test.
3. Faulty Inspection. A button can be a complex interaction of actions, events and visibility. A button can have multiple actions assigned to multiple events. The complexity is compounded with many buttons using show/hide actions. The task of determining whether all attributes are applied correctly is tedious. Make sure to toggle each event in panel and inspect each action, along with checking the visibility of other buttons.

Similar Messages

  • Dynamic Creation of Buttons and Actions HELP

    Hi there,
    I have got a problem (or maybe even two) with the dynamic Creation of buttons. The code below creates the buttons.
    My main problem is, that the parameter created for the button's action isn't propagated to the assigned event handler. I get a null, though the name of the parameter in the event handler and the name of the parameter added to the action are the same.
    Could it also be that I'm always using the same action? I.e. does wdThis.wdGetAddElementAction() always return the same action instance? If yes, how can I create individual actions for each button?
    Any help is appreciated!
    Cheers,
    Heiko
    "    for(int i=rootContainer.getChildren().length; i<wdContext.nodeFeature().size();i++)
                   IPrivateVCT_Feature.IFeatureElement featureElement = wdContext.nodeFeature().getFeatureElementAt(i);
                   IWDTray featureTray = (IWDTray) view.createElement(IWDTray.class, featureElement.getName());
                   IWDCaption header = (IWDCaption) view.createElement(IWDCaption.class, featureElement.getName()+"_Header");
                   header.setText(featureElement.getName());
                   featureTray.setHeader(header);
                   featureTray.setExpanded(false);
                   rootContainer.addChild(featureTray);
                   IWDButton button = (IWDButton) view.createElement(IWDButton.class, featureElement.getName()+"_Button_AddElement");
                   IWDAction actionAddElement = wdThis.wdGetAddElementAction();
                   actionAddElement.getActionParameters().addParameter("featureIndex", new Integer(i).toString());
                   button.setOnAction(actionAddElement);
                   button.setText("Add Element");
                   featureTray.addChild(button);

    Hi Heiko,
    You have done everything correctly....except for 1 line
    in the code...
    Replace the following line in your code:
    actionAddElement.getActionParameters().addParameter("featureIndex", new Integer(i).toString());
    Replace the above line with this code:
    button.mappingOfOnAction().addParameter("featureIndex",i);
    Actually in your code, you are not associating the parameter with the button...
    Note that addParameter(...) comes with two signatures: addParameter(String param, String value) and addParameter(String param, int value). You can use any of them based on yuor need.
    Hope it helps,
    Thanks and Regards,
    Vishnu Prasad Hegde

  • Buttons and Action Script 3 in Flash CS4

    Hi, I am new to Flash. I am working on creating a photo gallery and I am having an issue trying to figure out how to add AS3 code to link buttons to a point in a timeline.  I have 5 buttons each with an alpha transparency change that works fine and now I want to establish an action on each button that on CLICK will bring up a particular photo in my timeline. Help!  Thanks

    I can't tell you what is involved with bringing up a photo on your timeline, but to code a button to do something, first you assign it an instance name via the properties panel.  Let's say you name it btn1.
    Then, normally in layer dedicated to actionscript, in the same frame as that button you assign an event listener and an event handler to go with it...
    function btn1Handler(evt:MouseEvent):void {
         gotoAndStop("framelabel"); // or frame number
    btn1.addEventListener(MouseEvent.CLICK, btn1Handler);
    For that example it shows how to have the button make things move to a different frame in the timeline.

  • Buttons and Action script 3

    I have purchased Flash CS3 and have created a small
    animation. I would like the user to press the button in order for
    the animation to play. With the previouse version of flash I would
    drag the button onto the stage open the action script window and
    start entering the script e.g. on(release){gotoandPlay(5);}
    However with the new version I cannot write scripts for the
    buttons.... I am confused or am I missing something? Please help me
    out.

    you're missing actionscript3. and if you don't care to learn
    and use it, just use the actionscript2 publish settings and use
    actionscript2 coding in your projects.

  • Help needed regarding buttons and action listeners!

    Hey,
    Im designing an applet and im trying to create it so that when a button is pressed a new Draw object is drawn, I have read up about action listeners but im not totally sure where they need to be inserted
    Ive posted my code below so hopefully someone out there wll be able to see what im working with!
    Thank you in advance
    public class ImageWithMulti extends Applet {
        Image image;
        public void init () {
            image = getImage(getDocumentBase(),
                getParameter("Channel"));
        public void paint(Graphics g) {
            g.drawImage(image, 0, 0, this);
            drawMultiDown1
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);   //2nd number changes left sided position up or down
            drawMultiUp1
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
            drawMultiUp2
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
            drawMultiDown2
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white); 
            drawMultiUp3
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);   
           drawMultiDown3
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
           drawMultiUp4
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
           drawMultiDown4
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
           drawMultiUp5
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);

    hi,
    i've modify your code. but i've commented your some original code because i was getting error...
    please check the code...
    import java.awt.event.*;
    import java.applet.*;
    import java.awt.*;
      <applet code="ImageWithMulti.class" width=100 height=140></applet>
    public class ImageWithMulti extends Applet implements ActionListener {
        Image image;
        Button btnClick = null;
        public void init () {
            /*image = getImage(getDocumentBase(),
                getParameter("Channel"));*/
              btnClick = new Button("Click");
              add(btnClick);
              btnClick.addActionListener(this);
        public void paint(Graphics g) {
            g.drawImage(image, 0, 0, this);
           /* drawMultiDown1
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);   //2nd number changes left sided position up or down
            drawMultiUp1
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
            drawMultiUp2
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
            drawMultiDown2
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white); 
            drawMultiUp3
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);   
           drawMultiDown3
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
           drawMultiUp4
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
           drawMultiDown4
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
           drawMultiUp5
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);*/
         public void actionPerformed(ActionEvent ae){
              if(ae.getSource() == btnClick){
                   System.out.println("Hey");
    }dhaval..

  • Help!!! Button and action sequence...

    I am creating a relatively simple web site in FC, but I have run into a problem. I purchased a stock .mov file, which I converted in Flash CS5 to use as an intro to the site. In Flash, I added a button to enter the site. My resulting .swf intro works perfectly in Flash; but when I import into FC, the button no longer functions (the button states are preserved, but there is no interactivity - even when I use the "Add Interaction" panel in FC). Where did I go wrong?
    And, is there any way to access a specific frame of a file in FC?
    Thanks!
    Jane

    There is a nice converter in the CS5 suite called something like Adobe Media Converter I think. Use that tool and convert it to a flv instead. There is lots of things in Flash that I think runs in conflict if you embed a .swf with a FLVplayer from flash.

  • Logon customization adding the button and action

    HI,
    I have a com.sap.portal.runtime.par file I imported and umLogonpage.JSp I added the pictures.
    Here I have to provide the extra button like Guest user if user clicks that button the srm_guest user id and pass: 1234 for every guest user that navigates to the portal with guest user roles.
    Can any one help me in this same.

    Why another way? Just typejava.lang.Object source = ...Kind regards,
      Levi

  • Button and Action Event

    Im using this code
    ic void actionPerformed (ActionEvent e)
         //Object source = evt.getSource(); Cant use Object as it becomes ambiguous, being used by both CORBA and Java
         Object source = e.getSource();
         if (source == testButton)
              sendElement("HelloWorld");
    }which is cool but when using it in a corba application the pesky compiler throws this back.
    Supplier.java:204: reference to Object is ambiguous, both class org.omg.CORBA.Ob
    ject in org.omg.CORBA and class java.lang.Object in java.lang match
    Object source = e.getSource();
    is there another way to achieve the same but without using the Object thing ?

    Why another way? Just typejava.lang.Object source = ...Kind regards,
      Levi

  • Dynamic buttons and itemlisteners????

    I'm trying to do something that might not be possible. I would like to create some buttons and actions for those buttons on the fly. For example:
    1) read some files from a directory (these file store settings)
    2) Create buttons using the filenames as the button labels
    3) Create associated actionPerformed section related to those buttons
    I want to do this because the amount of files and there names could change all the time. Basically I want to create a button for each file, and essentially launch an application using the settings file as part of a process.
    So far I've read a filename into a string. The first problem, how do I use that filename as the name of a button?
    JButton "string value" = new JButton();
    Then, subsequently, how to you set up the action? See code snipet below.
    Hope that made some sense. Can anything like this be done?
    Thanks,
    James
    //this loads the buttons
    for (int i=0; i < main.size(); i++)
         Vector temp = new Vector();
         temp = (Vector)main.elementAt(i);
         JButton buttonName = new JButton((String)temp.elementAt(0));
         buttonName.addActionListener(this);
         northFlow.add(buttonName);
    //this is in the actionPerformed section
    for (int i=0; i < main.size(); i++)
         Vector temp = new Vector();
         temp = (Vector)main.elementAt(i);
         if (source == (String)temp.elementAt(0))
                loadProgram((String)temp.elementAt(0));

    There is a way to give a button a variable name equal to the file name but it involves extremely advanced Java programming involving creating dynamic class instances. I would strongly discourage this approach because debugging it when it doesn't work, can be a nightmare.
    There is a much easier way to do this however. Create an array of JButtons. Call it, oh say, "MyButtons". Then at the appropriate places, you can do:
    JButton[] MyButtons;
    MyButtons = new JButton[ main.size ];
    for ( int i = 0; i < main.size(); i++ ) {
       Vector temp = new Vector();
       temp = (Vector)main.elementAt(i);
       MyButtons[i] = new JButton( (String)temp.elementAt(0) );
       MyButtons.addAction...
    Incidently, you may also want to re-think your data structure. From what I understand, you have an array where each element is a vector (another array of zero or more elements). This results in code that is difficult to read and write. Consider making your own objects instead of using vectors, then you could write something like...
    for ( int i = 0; i < main.size(); i++ ) {
       if ( source == main.getProgramName() ) {
    loadProgram( main[i].getProgramName() );
    The nice thing about this approach is that you can mix and match objects within the array, or add elements to each object in any particular order and it won't break the rest of your code.
    P.S., use the square brackets to indicate arrays. For some reason, this board is converting them into angle brackets.

  • Problems adding  url link to buttons in action Script 3

    each time I added it link 1 to the button on file i get these error messages-  
    1046: Type was not found or was not a compile-time constant: link1.
    1180: Call to a possibly undefined method link1.
    Warning: 3594: exec is not a recognized method of the dynamic class RegExp. var r:Object = p.exec(s);  
    This is the code I am using:   import flash.net.navigateToURL; import flash.net.URLRequest;  var link_one:link1;  link_one = new link1(); stage.addChild(link_one);  link_one.addEventListener(MouseEvent.CLICK, buttonClickHandler);  function buttonClickHandler(event:MouseEvent):void { var url:String = "http://www.masterpiececorp.com/ARMREF.htm"; var request:URLRequest = new URLRequest(url); navigateToURL(request); }    I have no other problems with link 3 or 4, just link 1  I still cannot get my urls link to movie clips on the flash  
    Can you upload flash here? if not I have a image capture I can use to have you look at my buttons  and action script code. i have been to every forum I know and not any have been helpful at all. This is my last hope.
    Very frustrated newbie  Gina T
    Message was edited by: gtaylor0406

    The way you had your code originally would be correct...
    var link_one:link1;
    link_one = new link1();
    addChild(link_one);
    The 1046 error is indicating it doesn't recognize the link1 class.  So the first thing you need to make sure of is that you have assigned the link1 class designation to whatever symbol that is in the library.

  • How to Print a interactive report without  action button and search bar

    Hello every one....
    I am working on printing an interactive report. If there are 20 columns in that report i need to select some columns for printing. For this purpose i used actions button which is in the search bar of the interactive report. But i do not want to get that Actions button and search bar to get printed in the printing page. Can any one give a solution to sort out my problem
    Thanks
    Manoj.

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and ensure you have updated with your profile with a real handle instead of "886412".
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    I am working on printing an interactive report. If there are 20 columns in that report i need to select some columns for printing. For this purpose i used actions button which is in the search bar of the interactive report. But i do not want to get that Actions button and search bar to get printed in the printing page. Can any one give a solution to sort out my problemSee +{message:id=2475831}+
    Always search the forum thoroughly before posting a question: 98% of questions (like this one) have been answered before.

  • Using the same action sequence with multiple buttons and exclusive conditional interactions

    Hi all,
    first of all, pardon me for my english and if I post questions already answered, but I can't find anything about that.
    I'm new to flash and I decided to use Flash Catalyst to speed up the building process of a multimedia presentation for university.
    I have a menu with 10 buttons that change a text box on rollover (I converted it to a button label) and I need to reset the name of the current page on RollOut. Since the action sequence for it is the same of every button on one page, is there a faster way to apply the sequence than repeating it for every button? (I had to do it 10x10=100 times... and what if I made some mistake? )
    Another question is I want to disable the interaction of the menu button of the current page, but conditional interaction let me choose only an "if in state" condition an not a "if not in state". How can I do this? should I simply disable the button on that page?
    Thanks a lot for the help!
    Cheers from Italy

    I answered to myself by grouping buttons and disabling the button in his state.
    Thanks anyway!

  • Hi there... I need a little help with buttons and their actions using flex builder 4.5

    I run a repo company and have zero experience in the developing applications and I could use some help from anybody that is willing to give it.... Here is a basic idea of what I need...  let's say there are 3 states... state 1 has a question that says "car you read this?" and a "yes" and a "no" button... when you select either answer, you go to slide 2.  Slide 2 with have a question like "Is the sky brown?" and a "yes" and a "no" button and when either button is selected, you are taken to Slide 3.  Slide 3 needs to be some sort of a text form that is created by the user selecting the buttons and the screen would say something like "yes, i can read this.  no, the sky is not brown", or "no, I can't read this.   yes, the sky is brown" .  I know how to get the buttons to take the user to the correct new slide, but I do not know how to get the buttons to insert specific text somewhere else when any button is selected.... Can anybody help me?  Youtube is only getting me so far, and my kids are driving me nuts while I'm trying to figure this monster out...  I've gotten several slides created and some screens have several buttons, I just need to see what I need to put in the code to get it to do this type of function 

    Also where can I read up on setting my .Xdefaults and xmonad.hs file? I ripped someones from this forum, and it works nice, but I want to make my onw, but cant find any decent documentation. Thanks.
    At the moment, the best source for configs are those posted in the screenshots thread (for both Xdefaults and xmonad.hs), the xmonad config archive (and the available docs from the root page on that site), and our own thread.  Unfortunately you'll have to sort of scrounge for good docs on the xmonad.hs at the moment, since most of the information was written for the 0.4 version of xmonad.  The configuration has since been made MUCH simpler.
    Hope that helps some.

  • Create a duplicate of a button and change the text on THAT button only

    something is frustrating me w/Flash. Not sure if there is a workaround within Flash itself or not. I have a group of buttons with fancy backgrounds and text. They may have originally been imported from Ilustrator, but are now MC's. I tried to select one in the library, right click (on PC) and duplicate. This does create a new instance. I give the new instance a different name and drag onto the stage. When I change the test though it changes the text ALSO on the button which I duplicated from. Don't want this. Each button needs to have it's own unique text. Is there a way to accomplish this in Flash? I know one alternative is to try and find the Illustrator template and create a new one, but I would rather not do this if possible.
    TIA

    This could be happening for a couple of reasons. The good news is its easily fixable, and you have options.
    Option 1.
    From your explanation of the problem I am assuming you are using static text inside your MCs.
    First, find out what's really happening with your two mcs.
    make sure you aren't using 2 of the same clip (either the original or the duplicate).Not the  instance names, but the actual names of the clip as found in the Library.
    If they are different, i.e. "myclip" and "copy of myClip", then odds are there is another mc that holds your text inside them. So, go into either one of your movie clips and check for nested movie clips inside them. If there are nested clips, you need to duplicate each of those clips as well otherwise you will continue to have the text change in both.
    Option 2.
    if you are ok with a little bit of scripting, you can just go inside your mc and make your text fields "dynamic" and give it an instance name.
    then open up the actions panel, create new layer, and add the following frame script:
    //insert your instance names where necessary
    myMC.pathToMyTextField.myTextField.text = "the text for this button";
    do this for each button and it should fix your issue.
    hope this helps.
    M.

  • The itunes store wont let me download anything i click the buy button and it asks for my password but it wont download

    when i went to itunes on my computer it would start downloading the apps i purchased on my phone but would get stuck a processing file, then when i went to purchase a movie i would click the buy button and it would ask my password but then would not purchase or download. So i decided to buy the movie from my phone and then try to download on my computer from the purchased section but still wont download on my computer and it doesnt give me a reason why

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Are you putting in the address where the bank sends the monthly statement?
    Apple's servers are very picky about the format of the address. If you live in the USA, then the server is expecting the style that the US Postal Service uses. One way to do this is to use the USPS ZIP Code lookup service;
    https://tools.usps.com/go/ZipLookupAction!input.action
    Enter the address to look up the ZIP code and then copy the exact USPS output into your iTunes account information.

Maybe you are looking for

  • Help with getting Web Start working with two-way SSL

    I have successfully transferred data (myclient.jnlp) utilizing web browsers (IE and Mozilla) from my web server (which is set up for two-way SSL "CLIENT-CERT" required) after using the browser's utility to "import" my client-side cert (in .p12 format

  • I can no longer see FaceBook notifications in my notification area on my desk top. Can any one help me with this?

    I can no longer see any Notifications from my FaceBook account in the notifications area on my Mac. I have it in the Notifications Area and it is still not providing me my notifications. Any suggestions?

  • Audigy 4 Pro driver and MediaSource iss

    Just bought an Audigy 4 Pro card after getting seriously fed up with my old SBLi've 5. card, however I've got quite a few issues with it. I'm waiting on a response from Creative Support but figured I might check if anyone here can help. The bundled s

  • Very frustrating

    Since the new guide I've been having several problems.   The guide on both my tv's is frustratingly slow.  Sometimes if I hit the guide 2 or  3 times  (because I think maybe it did not register - even though i see the red light on the box) It seems t

  • Burning movies (.avi) to dvd

    well what i need to do is burn a .avi movie onto a dvd so that i can watch it on my dvd player in my livingroom. i asume i need a conversion program to convert the .avi to some format of which i dunno. then what do i need to burn the movie onto a vie