Adding Script to a Button?

Is there a way to add JavaScript to a button when creating an Interactive PDF in InDesign (CS6)? This Interactive PDF is being turned over to other developers, who need to tack on a Certificate/Completion process, which is called to from a script that I need to place in the document somewhere.
Other issues: I know this is probably doable by opening the interactive PDF in Acrobat and adding the script from there - but I have to save the Interactive PDF as a SWF (the developers' process eliminates interactivity from a PDF.)
Any ideas? Help?

Perhaps the definition of windows is the issue. Flash swf
movies are self
contained in a web browser window web page. So opening an
external image in
a MovieClip is simply redrawing the Flash swf.
If you are thinking of windows within the Flash movie, they
will have to be
within the confines of the Flash movie that is first
launched. You can have
MovieClips with externally loaded content appear as windows
and even be
draggable, but they will not be a separate web browser
window.
If you need the web browser to open another window and then
load another
Flash movie in it that does the loading, then you need to use
getURL("
http://www.domain.com/pagewithotherflashmoviecontainingloadjpg.html/",
"_blank");
However it seems it would be less files to simply use html in
the other
window page to show the jpg without the Flash movie doing the
loading unless
you are using Flash to animate the jpg in some fashion like a
fade in or
out.
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"Chicca81" <[email protected]> wrote in
message
news:e92am7$58n$[email protected]..
>I need some help to understand and find a way to script
the loading of
>pictures
> on different window. I already tryed to use behaviours:
adding the
> following
> script to a button:
>
> on (release) {
>
> //load Graphic Behavior
> _root.Contenitore.loadMovie("Cornice 10.jpg");
> //End Behavior
>
> }
>
> When I do test the movie though I realised that it
doesn't work as I
> expected.
> The picture "Cornice 10" loads on a what I think to be a
new window: the
> Movie
> Clip "Contenitore" but it doesn't appear to a different
window. How should
> I
> procede then?
>

Similar Messages

  • User exit/ BADI in f-32 / f-28 for adding application tool bar button

    Hi Experts,
    There is a requirement, for adding application tool bar button in the Transaction codes F-32 / F-28 / Feba_lockbox. So that while clearing documents with reference document, they can upload the data(Reference Documents) from local file and after the data is fetched for clearing, they need to download the data to local file for verification. If the data is verified to be okay, then they can go ahead with simulation and posting. They need this verification to be done in excel sheet, so need to download the data into local file.
    I found a BADI in that screen is BADI_LAYER but I don't think it is relevant.         
    Any help is apreciated!
    Is there any EXIT ? Because I can not find it too.
    Regards,
    Nitin

    where you did the enhancement?
    I have to create the IDOC once Clear docuemnt is created.. It may help me.

  • ALV Grid default values for new rows added with Add/Insert buttons

    Hi!
    Help, please,  to find a way how to set default values for new rows added with Add/Insert buttons in
    ALV Grid.

    I have found salution:
    ALV Grid u2013 Insert row function
    Sometimes we need to assign some default values when we create a new row in a grid using standard ALV Append row button. In our scenario we will see how to assign default values to Airline Code (CARRID), Flight Connection Number (CONNID) and Flight date (FLDATE) when a new row is created. To do that we need to handle DATA_CHANGED event in the program like mentioned below.
    Definition of a class:
    Code:
          CLASS lcl_event_receiver DEFINITION
    CLASS LCL_EVENT_RECEIVER DEFINITION.
      PUBLIC SECTION.
    METHODS:
         handle_data_changed
         FOR EVENT data_changed OF cl_gui_alv_grid
         IMPORTING er_data_changed
                           e_ucomm.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    Implementation of a class:
    Code:
    CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
      METHOD HANDLE_DATA_CHANGED.
        DATA: dl_ins_row TYPE lvc_s_moce.   " Insert Row
          FIELD-SYMBOLS: <fs> TYPE table.    " Output table
    Loop at the inserted rows table and assign default values
        LOOP AT er_data_changed->mt_inserted_rows INTO dl_ins_row.
          ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
          loop at <fs> into ls_outtab.
            ls_outtab-carrid  = 'LH'.
            ls_outtab-connid  = '400'.
            ls_outtab-fldate  = sy-datum.
            MODIFY <fs> FROM ls_outtab INDEX sy-tabix.
          endloop.
        endloop.
      ENDMETHOD.                    "handle_data_changed
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    Register the events to trigger DATA_CHANGED event when a new row is created.
    Code:
        CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
          EXPORTING
            I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
        CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
          EXPORTING
            I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.

  • Calling java script from a button

    Hi,
    I have a Form and I would like to let the end-user to confirm some action that was initiated by pressing a button. The best way would be to call Java script, but the button is an 'item' button and not a 'region' button - i..e it is placed between items and not above the region, like Save, Cancel etc.
    In case of 'item' buttons I do not have 'Optional URL Redirect' field where to place the javascript call.
    Tamas

    You can try this..
    Instead of using button
    Edit the Item to which you want to associate a button.
    Go to Element tab
    Under Post Element Text enter
    </ br> <a href="#" -onclick=call_me() class="t20Button">Click me</a>Note : you need to change class="t20Button", i'm using theme 20 and in that the look and feel of button is derive from t20Button.
    remove the hyphen before onclick ..
    Regards,
    Shijesh

  • How do you use two scripts for a button?

    Hi all!
    I'm referring to my earlier question posted in this topic:
    Object not found with myContext.getParamIdForComponent
    In short: when I had the attribute 'jsObjectNeeded="true"'  on a button and that was for a script that would start a function validating a field, and then at the same time had a script in the button that would activate the "pressing" of it through the hit of the "return" button, I got javascript error saying "Error: Objekt doesn't support this property or method"
    Do you know a way to have both functionalitys connected to the button?
    Best regards
    Benny

    HI Benny Lange,
    <hbj: button
    id="Button1"
    text="Logon"
    width="125px"
    onClientClick="javascript func for validation"
    //first onClientClick will be executed
    onClick="call the method in JSPDYNPAGE"
    //second onclick will be executed
    disabled="false"
    design="STANDARD" />
    jsobjectneeded has nothing to do with onclick.this should work.post your code if you need help.
    Message was edited by: Kirupanand venkatapathi

  • Adding text to a button.

    Can anyone tell me how to add text to a button I created? If it changes anything, it is a sub-menu button

    Hi:
    Sorry if it sounds like a RT_M answer, but look in the User Manual for the topic Adding Text to a Button and you'll get the step by step procedure.
    If it don't answer your question or you mean something different come back please !
      Alberto

  • [svn] 638: opensource: added scripts to setup per-branch build environments : setup.sh; renamed setup.txt to README.txt.

    Revision: 638
    Author: [email protected]
    Date: 2008-02-23 14:46:04 -0800 (Sat, 23 Feb 2008)
    Log Message:
    opensource: added scripts to setup per-branch build environments: setup.sh; renamed setup.txt to README.txt.
    Added Paths:
    flex/sdk/branches/3.0.x/README.txt
    flex/sdk/branches/3.0.x/setup.sh
    flex/sdk/trunk/README.txt
    flex/sdk/trunk/setup.sh
    Removed Paths:
    flex/sdk/branches/3.0.x/setup.txt
    flex/sdk/trunk/setup.txt

    Revision: 638
    Author: [email protected]
    Date: 2008-02-23 14:46:04 -0800 (Sat, 23 Feb 2008)
    Log Message:
    opensource: added scripts to setup per-branch build environments: setup.sh; renamed setup.txt to README.txt.
    Added Paths:
    flex/sdk/branches/3.0.x/README.txt
    flex/sdk/branches/3.0.x/setup.sh
    flex/sdk/trunk/README.txt
    flex/sdk/trunk/setup.sh
    Removed Paths:
    flex/sdk/branches/3.0.x/setup.txt
    flex/sdk/trunk/setup.txt

  • Script Editor takes forever to load with SSIS 2012 packages in VS 2012 when you click on Edit Script... button

    Hi,
    I'm upgrading some SSIS Packages to the SQL 2012 Project deployment model. However, when I click on the Edit Script... button in a Script Editor Task, Visual Studio just sits there for minutes until it sometimes opens, sometimes doesn't. Surely this should
    open up pretty much instantaneously. Can anyone shed any light on why this is happening ?
    Thanks
    Dave Evans

    Hi Dave Evans,
    It might be due to permission issue, please try to uncheck "Check for publisher’s certificate revocation" under the "Security" group in "Advanced" tab in "Internet Options", please see:
    http://stackoverflow.com/questions/13540151/ssis-script-editor-loads-very-slow 
    Thanks,
    Eileen
    Eileen Zhao
    TechNet Community Support

  • Calling ASP script from APEX button passing Bind variable

    I am looking for some examples or best form for calling asp script from apex button that will pass apex bind variable to asp script to process.
    Thanks,s
    Bob

    I am surprised by the degree of no replies. I have solved this by using asp redirects such as:
    Response.Redirect("test.aspx?UserName="&user)
    My formulated solution contains a page with a manually built interactive report. I have a number of bind variables at the top of the reoprt where users can query the information they want based on desginated database columns for this particular report. Once they have the "manual" interactive report displaying what they want, they click a button where a asp script is called with parameters passed that calls a Java based Crystal Reports plugin with the called correspnding report displayed with passed parameters.
    Works like a charm!
    This solves our reporting needs without having to resort to Bi Publisher (much too expensive) and other third party applications that kinda indicate it can work with apex but provide limited help or best form for doing so.
    Bob

  • ScriptUI run script from dialog button

    Here is what I have right now.  It is a little clunky in the way it works, and I would just like to make it a bit slicker.
    I have a script on startup that creates a Menu item with a dropdown submenu item. when you click on the submenu item, it starts a script. 
    The first thing the script does is pop up a message box that tells them that two dialog boxes are going to popup. The first one asking them to choose the location of an xml file and the second dialog box that ask them to choose the location of their image folder.  After they finish choosing their folder in the second dialog, the script takes those two values, makes them variables, and continues to run the rest of the script. 
    Here is what I would like it to do..
    1. open a dialog window with two input fields, two "browse" buttons, and OK and CANCEL buttons
    2. when you click the first browse button next to the first input field, it will open a file dialog window.  You select your file and the file string will populate the input field
    3. when you click the second button next to the second input field, it opens a folder dialog window.  You select the folder and the string populates the second input field.
    4. when you click OK, it feeds the values in the input fields to a script.
    I already have scripts to that open the file and folder dialogs, but what I can't figure out  how to do is to start and run a script from a button press, in this case, when the OK button is pressed.  It is probably an onClick, but I haven't been able to find any examples of what the syntax would be. 
    The closest I have found is in the Beginning ScriptUI document that was on Jongware's site, in the section on Communication between windows.  But that opens each of the windows with a different script and not using a button press to call a script.
    As always, any point in the right direction is very much appreciated. thanks.

    Thanks Gotterman, but the issue I was having was that the dialogs I was opening were not being created by me.  They were more like OS generated windows.  So I am not able to give the window a name, or the input field a name in order to reference it.
    Peters response was actually correct, although I did have to open the folder dialog a bit differently to get it to work.  I had to use a style that I got from Jongware in a previous thread, but the concept that Peter showed in the last post pointed me in the right direction. 
    I just have one more piece to figure out, how I am going to pass the variables to another script, but I think that is something i will have to work out on my own.
    For anyone who is curious, here is the code I came up, modifying and combining some of Peters examples from the book plus the help he gave me in this thread.  The alert after closing the dialog is just for testing to show that the values are being held by the variables so I can use them else where.
    function mySnippet(){    
    //<fragment>   
    #target indesign;
    #targetengine "session";
    var w2 = new Window("palette", "Window 2", undefined, {resizeable: true});
    var e2 = w2.add ("edittext"); e2.characters = 30;
    var e3 = w2.add ("edittext"); e3.characters = 30;
    var f2 = w2.add ("button", undefined,"Browse XML");              
    var f3 = w2.add ("button", undefined,"Browse Folder");              
    var f4 = w2.add ("button",undefined,"SAVE AND RUN");              
    var tf              
    var tfo                
    f2.onClick = function()                {               
    tf = File.openDialog("Select your XML File","*.xml");                    
    if (tf != null)                    
    e2.text = tf;                    
    f3.onClick = function()                {              
    var tfol = new Folder("~/My Documents")               
    tfo = tfol.selectDlg("Get Folder");                    
    if (tfo != null)                    
    e3.text = tfo;                    
    f4.onClick = function()               
    w2.close();                   
    alert ("xml value: " + tf  + "\nfolder value: " + tfo);                
    w2.show();    
    //</fragment>

  • Can't add action script to my buttons, need help

    I'm trying to add action script to my buttons to link them but the script menu has the message "Current selection cannot have actions applied to it" Why is this happening?
    see attached

    Okay,
    I have a page where I have a button that states "PRODUCTS". I need to get
    the button to send the user to another page called "products.swf
    (products.fla)". What script to I insert in the actions menu?
    Thanks
    Derrick Young - Graphic Designer, Art Dept.
    (d) 403.250.4261 | (f) 403.250.4336 | www.calgarysun.com
    (e) [email protected] | (a) 2615 12th Street N.E., Calgary, AB
    T2E 7W9

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

  • Ideas for Adding a Quick Print Button to VA01 Overview Screen

    Problem Statement:
    Our users would like a "quick print" button on the VA01/VA02 application toolbar that immediately spools the Order Confirmation output to the printer.  Our users want to print the output on demand, i.e., they do not want the output to automatically be printed when the order is created because a printout is not always needed.  We already have condition records created with Dispatch Time set to 3 - Send with application own transaction.  However, it takes 7 or more clicks to print the output on demand by navigating the menu (Extras > Output > Edit...Further Data...etc.) and changing the Dispatch Time to 4 - Send immediately when saving.  This is a big ergonomic issue and a time killer.
    Although the number of clicks to print are less when printing the output from the VA02 initial screen (via menu Sales document > Issue Output To), this is not acceptable when creating new orders.  Really need an on-demand, quick print button on the VA01 screen.  As an aside, we have a totally custom transaction for preparing sales order data (shopping cart-like way of finding materials and entering required data) that then calls VA01 and fills in all of the information.  When saving in VA01, the user is returned to our Z-transaction so asking the user to subsequently run VA02 to print is not practical.
    Current Output Determination:
    We have custom output type ZBS0 (copy of BS0).  Condition records for print medium are set to Dispatch Time = 3.
    Questions:
    1.  Searching these forums, it appears custom code (extension or user exit?) can be written to call RSNAST00, or something similar, to automatically send output having a Dispatch Time = 3.  Where can I find more information on exactly how to do this?
    2.  Do transactions VA01 and VA02 (Overview screens) have extensions that allow a print button to be added to the application toolbar?  We would want to call the custom printing code from the button to send the output.
    Any feedback on how others have solved this problem would be greatly appreciated.
    Warm Regards,
    Rob
    P.S.  Using GuiXT is not an option for us.

    HI
    We had similar issues with printing packing list and picking list by the warehouse people.
    We created a new ztransaction with input fields of delivery number, output type, number of copies and a check box for repeat output(in case if the output was already printed).
    You can also create a new Z-transaction with input fields of Sales order number(mandatory field), output type (Default it with value of ZBS0), number of copies (default it with 1) and a check box. On executing the transaction You can provide a message if the output was already printed so that the user can select the check box to repeat the output and execute. You can also print multiple SO by giving a range value if required.
    If you do not want the user to enter the new ztransaction every time, try providing a menu path to the new z-transaction from the existing z-transaction which you are using for order entry.
    Hope this helps you.
    Thanks,
    Arun.S

  • Need Help with script: CS4 Flash Buttons

    I created a 3 button bar using Flash CS4. It will link to three different HTML pages in a website. This is one of the three scripts I have on the first frame of the main timeline, the code is for one of the buttons, the other two are really the same with differing button numbers. This code does now open the page up in a NEW BROWSER window, but I would like the page to open in the existing window and not in a new one. The 3 buttons also have down states identified by a frame label of “hold”, I would like the script to set the hold frame or down state to be displayed when the proper page is loaded in the browser .  Will someone please suggest to me what I need to add to this script to achieve this, your time and effort will be appreciated.
    stop();
    button1_btn.addEventListener(MouseEvent.CLICK, illus);
    function illus(e:MouseEvent):void {
        var targetURL:URLRequest=new URLRequest("illustrator.html");
        navigateToURL(targetURL);

    Thank you Todd... How about the code to display the Down stage when displayed,
    got any thoughts on this.
    Thanks'
    Bill

  • Links not working after adding script

    I added a drop down menu to my website and now none of my hyper links work.  Not external or even links to the other pages.  Here is the script.
      <script type="text/javascript">
        $(document).ready(function(){
          $('a').on('click', function(e){
           e.preventDefault();
           $('#ddmenu li').hover(function () {
            clearTimeout($.data(this,'timer'));
            $('ul',this).stop(true,true).slideDown(200);
          }, function () {
           $.data(this,'timer', setTimeout($.proxy(function() {
             $('ul',this).stop(true,true).slideUp(200);
           }, this), 100));
      </script> 
    I found that if I change the ('a') to ('b') all the links work except when I try to get back to the home page.

    Ken that is exactly what I am looking for.  I have the Script type code exactly like you posted it in the head plus the portion that I posted above is in the head.  Here is the whole code I will try to upload it this morning.
    <!doctype hyml>
    <html><head>
         <script src="Java Script/JQuery.js" type="text/javascript"></script>
         <title>BADKRacing</title>
           <link href="CSS/styles.css" rel="stylesheet" type="text/css" media="screen">
        <link rel="stylesheet" type="text/css" media="all" href="CSS/dropdown.css">
       <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
              <script type="text/javascript">
        $(document).ready(function(){
          $('a').on('click', function(e){
           e.preventDefault();
           $('#ddmenu li').hover(function () {
            clearTimeout($.data(this,'timer'));
            $('ul',this).stop(true,true).slideDown(200);
          }, function () {
           $.data(this,'timer', setTimeout($.proxy(function() {
             $('ul',this).stop(true,true).slideUp(200);
           }, this), 100));
      </script>  
            <link rel="stylesheet" href="CSS/nivo-slider.css" type="text/css" />
                <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script>
                <script src="Java Script/jquery.nivo.slider.pack.js" type="text/javascript"></script>
            <link rel="stylesheet" href="CSS/default/default.css" type="text/css" />
                <script type="text/javascript">
        $(window).load(function() {
           $('#slider').nivoSlider({effect:"fade"});
       </script>            
        </head>
    <body>
    <div id="wrapper">
            <div id="top">
                <div id="logo">
                 <img src="Images/BAD K Logo.JPG">
                </div>
                <div id="social-media">
                 <ul>
                     <li><a target="_blank" href="https://www.facebook.com/pages/BAD-K-Racing/115436301814031?v=wall"><img src="Images/Social Media Icon/facebook.png"></a></li>
                     <li><a target="_blank" href="http://www.youtube.com/profile?user=BADKRacing&view=videos"><img src="Images/Social Media Icon/youtube.png"></a></li>
                    </ul>
                </div>
            </div>
            <div id="content-wraper">
             <div id="content">
              <h1>Welcome to BAD K Racing</h1>
             </div>
            </div>  
    <nav>
         <div id="menu">
        <ul id="ddmenu">
                 <li><a href="#">Home</a></li>
                    <li><a href="#">Race Day Info</a>
                     <ul>
                         <li><a href="schedule.html">Schedule</a></li>
                            <li><a target="_blank" href="Updateshttps://www.facebook.com/pages/BAD-K-Racing/115436301814031?ref=hl">Updates</a></li>
                     </ul>
                    </li>
                 <li><a href="#">Drivers</a>
                       <ul>
                         <li><a href="Andrue.html">Andrue</a></li>
                            <li><a href="Dave.html">Dave</a></li>
                     </ul>
                    </li>
                 <li><a href="#">Racecars</a>
                        <ul>
                         <li><a href="prochallenge.html">Pro Challenge</a></li>
                            <li><a href="Superstock.html">Super Stock</a></li>
                     </ul>
                    </li>
                 <li><a href="#">Gallery</a>
                        <ul>
                         <li><a href="photo.html">Photos</a></li>
                            <li><a target="_blank" href="Videoshttp://www.youtube.com/user/BADKRacing/videos">Videos</a></li>
                     </ul>
                    </li>
                    <li><a href="contact.html">Contact</a></li>           
                </ul>
           </ul>
    </div>
    </nav>
            <div id="banner">
             <div class="ribbon"></div>
             <div class="slider-wrapper theme-default">
              <div id="slider" class="nivoSlider">
         <img src="Images/Karting 07 (184).jpg" alt="" />
         <img src="Images/4-20-13 (3).JPG" alt="" />
           <img src="Images/Karting 07 (185).jpg" alt=""/>
           <img src="Images/4-20-13 (1).JPG" alt="" />
        </div>
                </div>
      </div>
            <div id="footer">
            </div>
        </div>   
    </body>
    </html>

Maybe you are looking for

  • Self Assigned IP / DHCP problem : sharing my fix.

    Okay. I WAS frustrated for a long two weeks before I figure this out. It seems that this problem has affected a LOT of people out there, and since I now am (supposedly) free of this thing, I want to share my hypothesis of the problem's roots (A) and

  • Where to get the par file for visual composer application?

    Hi Gurus, I have referred few forum postings about transporting VC iview . to do that first we have to deploy the par file of the Visual composer application into the target system(QA & Prod) where ever we want to import it........ Now my query is I

  • Load music now or wait until new computer arrives?

    Hi! I just recieved a ipod nano and while in the process of loading my cd's I decided to purchase a new computer...should I hold off putting the cd's in the computer until I have my new computer or is transferring stuff pretty easy between computers

  • Question about Config Synchronisation on CSS

    Hi All, i had a great Configuration on 2 CSS 11503 and want to synchronize the configurations. Now the customer asks which risk will be there. Does anybody now problems with that Feature ?? Thx in advance for your support

  • Deployment - "Could not find the main class."

    I am trying to deploy an executable version of my project. From the IDE, I select Run-Deploy-New Deployment Profile; then I choose JAR File. I leave the default directory, and I've tried various names. I select "Include Manifest File" and then add my