WARNING: Actions on button

Hi
I do not understand why I am getting this warning below
WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3.0.
All scripts on object instances will be ignored.
Can someone help?
mimi

You can still use pretty much any objects that you have ever used before, though that's not saying they haven't changed in some way. In AS3 to manage things like buttons and other interactions the primary code approach involves creating event listeners and event handler functions.  Here is a description of how you would approach coding a button, though the same could apply to a movieclip....
Let's say you create a button symbol.  Since it is a button, it is already a self animating object that will react to mouse interactions, but only visually at this stage.  The first thing you need to do to make it useful code-wise is to assign it a unique instance name.  So you drag a copy of it out to the stage from the library, and while it's still selected, you enter that unique instance name for it in the Properties panel... let's say you name it "btn1"
In AS3, to make a button work with code, you need to add an event listener and event handler function for it.  You might need to add a few (for different events, like rollover, rollout, clicking it, but for now we'll just say you want to be able to click it to get a web page to open.  In the timeline that holds that button, in a separate actions layer that you create, in a frame numbered the same as where that button exists, you would add the event listener:
btn1.addEventListener(MouseEvent.CLICK, btn1Click);
The name of the unique function for processing the clicking of that button is specified at the end of the event listener assignment, so now you just have to write that function out:
function btn1Click(evt:MouseEvent):void {
   gotoAndPlay("site_section");
Here's some of what's involved there:
evt:MouseEvent - the event listeners throws an argument automatically which the function must be set up to receive.  In this case I have given that argument a variable name of evt, though I could have chosen anything.
:void - this defines the class of the value that the function will return.  In this case, the function does not return anything, so "void" is used.  If it did return a value, you would see a line containing "return xyz"; in the function (where xyz is not literal, it simply represents the variable or value being returned) and the :void would be rplaced with some other class such as :String, :int, Date, etc....
In AS3, in strict mode, it is necessary to identify the types/classes of the variables being created, which is why you see :String, :MouseEvent, etc... showing up everywhere.
Now, to create another button with a unique function for it, you could just drag another copy of it from the library, give it a unique name, say btn2, copy/paste the code from btn1 and replace "btn1" with "btn2" in that copied code.

Similar Messages

  • WARNING: Actions on button and MovieClip

    I have the following code that I am trying to get to work
    with ActionScript 3.0:
    on (rollOver) {
    gotoAndPlay("s1");
    on (releaseOutside, rollOut) {
    this.gotoAndPlay("s2");
    on (release) {
    this.gotoAndPlay("s2");
    The problem is that ActionScript 3.0 will not allow the
    script on a MovieClip instance. I am at a loss with what to do, I
    work well with examples, so I have posted 2 source FLA that are
    identical, the only difference is that one targets ActionScript 2.0
    (and works), the other targets ActionScript 3.0 (and does not
    work).
    Please
    take
    a look

    There is no need to grasp the changes that fast. You can
    still publish files for AS2.
    Personally though I am always amazed that folks are still
    using the on(clipEvent) style of coding. Generally that style of
    coding should have gone away with the introduction of the
    MovieClip.onClipEvent syntax with Flash 6 – introduced in
    Spring of 2002. If you have been programming AS since 2002 and are
    still relying solely on on(clipEvent) then you have bigger issues
    than AS3. If you have come to AS more recently I just wonder why
    this style was the one you adopted. (By "you" I don't mean you
    – tmcquage – specifically. I mean you in the general
    sense, and I include all of the Flash community in why did we allow
    this to happen.)
    You could probably answer that question yourself quick than
    posting here! But I just tested it and the stop(); works fine.
    I would recommend sticking with AS2 for the time being. Learn
    how to use all the movieclip methods from the main timeline, not
    from on an instance. Then the change over to AS3 won't be such a
    shock. Even if you never go to AS3, you will be so happy you
    stopped using instance code. Really.

  • Actions on button or MovieClip instances are not supported in ActionScript 3.0?

    I have recently updated my Flash and I seriously regret it as everything seems to of changed. For instance I want to publish a movie i created in Action Script 3.0. In this movie i have buttons which have actions applied to them and everytime i go to publish the site, it brings up the error
    'WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3.0. All scripts on object instances will be ignored.'
    How do I go about keeping my 3.0 elements but having buttons with actions applied to them. I am a complete beginner with Flash by the way so the answer would need to be completely straight forward.
    Thanks!

    okay, just to simplify this even further and to break it into steps..
    1: I Create a new button.
    2: I give it an instance name of say 'button'
    3: I place the following code in the timeline
    button.addEventListener(MouseEvent.CLICK,callFunction);
    function callFunction(e:Event):void{
    gotoAndPlay();
    Now here is where I am stuck. What do you need to add to this to navigate to another scene?
    Thanks again!!

  • Please help me with some action event buttons

    {color:#ff6600}i am trying to figure out how to capture two values from an action event button. i have already tried it 6 times and i cant figure it out.
    Its a simple calculator with numbers 1 and 2 and does a multiplication calculation.
    Can you help me figure it out it will be really helpful.
    {color}
    import javax.swing.*;
    import java.util.*;
    import java.awt.event.*;
    public class Calculator implements ActionListener {
    JFrame frame;
    JPanel contentpane;
    JButton one,two;
    JTextField field;
    JButton mult;
    JButton adds;
    JButton equals;
    JButton go;
    public Calculator() {
    frame = new JFrame ("Calculator" );
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    contentpane = new JPanel();
    contentpane.setBorder(BorderFactory.createEmptyBorder(20,20,40,40));
    one = new JButton( Integer.toString(1));
    one.setActionCommand(Integer.toString(1));
    one.addActionListener(this);
    contentpane.add(one);
    two = new JButton(Integer.toString(2));
    two.setActionCommand(Integer.toString(2));
    two.addActionListener(this);
    contentpane.add(two);
    field = new JTextField(10 );
    contentpane.add(field);
    go = new JButton("calculate");
    go.setActionCommand("go");
    go.addActionListener(this);
    contentpane.add(go);
    mult = new JButton( "*");
    mult.setActionCommand("mult");
    mult.addActionListener(this);
    contentpane.add(mult);
    adds = new JButton( "+");
    adds.setActionCommand("add");
    contentpane.add(adds);
    frame.setContentPane(contentpane);
    frame.pack();
    frame.setVisible(true);
    public void actionPerformed (ActionEvent event ) {
    String eventn = event.getActionCommand();
    String text = field.getText();
    String mult ="*";
    {color:#800080}if (eventn.equals("1")||eventn.equals("2") ){  \\ *{color:#ff6600}i dont know how to store two different value from an action event{color}*
    text+=eventn ;
    int num = Integer.parseInt(text);
    field.setText(text);
    {color}
    {color:#800080}if (eventn.equalsIgnoreCase("mult")){
    field.setText("");
    {color}
    {color:#800080}};
    {color}
    public static void runGui(){
    JFrame.setDefaultLookAndFeelDecorated(true);
    Calculator r = new Calculator();
    public static void main (String[]args){
    javax.swing.SwingUtilities.invokeLater(new Runnable(){
    public void run(){
    runGui();

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ListenerDemo {
        private class DigitListener implements ActionListener {
           private int digit;
           public DigitListener(int digit) {
               this.digit = digit;
           public void actionPerformed(ActionEvent evt) {
                JOptionPane.showMessageDialog(f, "You pressed " + digit);
        private JFrame f = new JFrame();
        private JButton button1 = new JButton("1");
        private JButton button2 = new JButton("2");
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    new ListenerDemo().go();
        void go() {
            button1.addActionListener(new DigitListener(1));
            button2.addActionListener(new DigitListener(2));
            JPanel cp = new JPanel();
            cp.add(button1);
            cp.add(button2);
            f.setContentPane(cp);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • Dynamic actions on button and dynamic column name

    Hi!ynam
    I want to create a dynamic action on button click in my tabular form.
    I have a select list with values of my column names (P7_X_COLUMN) and a text field where users input values for update (P7_X_UVALUE).
    My idea is that when they click the button, they update selected column to desired value in all rows.
    However, I get the following error:
    ORA-06550: line 5, column 5: PL/SQL: ORA-01747: invalid user.table.column, table.column, or column specification ORA-06550: line 4, column 1: PL/SQL: SQL Statement ignored (Go to error)
    It seems to me that I have not referenced the column name correctly, I thought it was the same as referencing values. How do I do that?
    This is my code:
    begin
    update "#OWNER#"."IZV_SLOG_DET"
    set :P7_X_COLUMN=:P7_X_UVALUE;
    end;
    Regards,
    Ivan

    I got it to work, but the query is too big. Can anyone help me with how to get it to work?
    I tried breaking it into more varchar2 strings, but i always get the same error:
    Error processing row.
    ORA-01461: can bind a LONG value only for insert into a LONG column
    declare  
    l_table_name varchar2(30) := 'IZV_SLOG_DET_POM'; 
    l_sql_stmt varchar2(32762);
    begin
    l_sql_stmt := 'update ' || l_table_name || ' set ' || :P7_X_COLUMN || ' =''' || :P7_X_UVALUE|| '''' ||
    'where'||
    'nvl(MSR_PRD_ID,1) = nvl(nvl(''' || :P7_X_MSR_PRD_ID || '''' || ',MSR_PRD_ID),1) and' ||
    'nvl(SRC_STM_ID,1) = nvl(nvl(''' || :P7_X_SRC_STM_ID || '''' || ',SRC_STM_ID),1) and' ||
    'nvl(OZNAKA_KOMITENTA,1) = nvl(nvl(''' || :P7_X_OZNAKA_KOMITENTA || '''' || ',OZNAKA_KOMITENTA),1) and' ||
    'nvl(RSP,1) = nvl(nvl(''' || :P7_X_RSP || '''' || ',RSP),1) and' ||
    'nvl(OZNAKA_RETKA,1) = nvl(nvl(''' || :P7_X_OZNAKA_RETKA || '''' || ',OZNAKA_RETKA),1) and' ||
    'nvl(OZNAKA_IZVJESCA,1) = nvl(nvl(''' || :P7_X_OZNAKA_IZVJESCA || '''' || ',OZNAKA_IZVJESCA),1) and' ||
    'nvl(MBR_KOMITENTA,1) = nvl(nvl(''' || :P7_X_MBR_KOMITENTA || '''' || ',MBR_KOMITENTA),1) and' ||
    'nvl(KOMITENT_NEREZ,1) = nvl(nvl(''' || :P7_X_KOMITENT_NEREZ || '''' || ',KOMITENT_NEREZ),1) and' ||
    'nvl(ZUPANIJA,1) = nvl(nvl(''' || :P7_X_ZUPANIJA || '''' || ',ZUPANIJA),1) and' ||
    'nvl(DRZAVA,1) = nvl(nvl(''' || :P7_X_DRZAVA || '''' || ',DRZAVA),1) and' ||
    'nvl(SEKTOR_NEREZIDENTA,1) = nvl(nvl(''' || :P7_X_SEKTOR_NEREZIDENTA || '''' || ',SEKTOR_NEREZIDENTA),1) and' ||
    'nvl(VRSTA_POVEZANOSTI,1) = nvl(nvl(''' || :P7_X_VRSTA_POVEZANOSTI || '''' || ',VRSTA_POVEZANOSTI),1) and' ||
    'nvl(INSTRUMENT,1) = nvl(nvl(''' || :P7_X_INSTRUMENT || '''' || ',INSTRUMENT),1) and' ||
    'nvl(VALUTA,1) = nvl(nvl(''' || :P7_X_VALUTA || '''' || ',VALUTA),1) and' ||
    'nvl(OTKAZNI_ROK,1) = nvl(nvl(''' || :P7_X_OTKAZNI_ROK || '''' || ',OTKAZNI_ROK),1) and' ||
    'nvl(IZVORNO_DOSPIJECE,1) = nvl(nvl(''' || :P7_X_IZVORNO_DOSPIJECE || '''' || ',IZVORNO_DOSPIJECE),1) and' ||
    'nvl(VRSTA_INDEKSACIJE,1) = nvl(nvl(''' || :P7_X_VRSTA_INDEKSACIJE || '''' || ',VRSTA_INDEKSACIJE),1) and' ||
    'nvl(VALUTA_INDEKSACIJE,1) = nvl(nvl(''' || :P7_X_VALUTA_INDEKSACIJE || '''' || ',VALUTA_INDEKSACIJE),1) and' ||
    'nvl(PORTFELJ,1) = nvl(nvl(''' || :P7_X_PORTFELJ || '''' || ',PORTFELJ),1) and' ||
    'nvl(UTRZIVOST_KREDITA,1) = nvl(nvl(''' || :P7_X_UTRZIVOST_KREDITA || '''' || ',UTRZIVOST_KREDITA),1) and' ||
    'nvl(ZNACAJKE_KAPITALA,1) = nvl(nvl(''' || :P7_X_ZNACAJKE_KAPITALA || '''' || ',ZNACAJKE_KAPITALA),1) and' ||
    'nvl(RIZICNA_SKUPINA,1) = nvl(nvl(''' || :P7_X_RIZICNA_SKUPINA || '''' || ',RIZICNA_SKUPINA),1) and' ||
    'nvl(UGRADJENI_DERIVAT,1) = nvl(nvl(''' || :P7_X_UGRADJENI_DERIVAT || '''' || ',UGRADJENI_DERIVAT),1) and' ||
    'nvl(ODNOSNA_VARIJABLA,1) = nvl(nvl(''' || :P7_X_ODNOSNA_VARIJABLA || '''' || ',ODNOSNA_VARIJABLA),1) and' ||
    'nvl(PREDZNAK,1) = nvl(nvl(''' || :P7_X_PREDZNAK || '''' || ',PREDZNAK),1) and' ||
    'nvl(VRSTA_IZNOSA,1) = nvl(nvl(''' || :P7_X_VRSTA_IZNOSA || '''' || ',VRSTA_IZNOSA),1) and' ||
    'nvl(KOMITENT_PBR,1) = nvl(nvl(''' || :P7_X_KOMITENT_PBR || '''' || ',KOMITENT_PBR),1) and' ||
    'nvl(UDJELI_POVEZ_C,1) = nvl(nvl(''' || :P7_X_UDJELI_POVEZ_C || '''' || ',UDJELI_POVEZ_C),1) and' ||
    'nvl(AR_ID,1) = nvl(nvl(''' || :P7_X_AR_ID || '''' || ',AR_ID),1) and' ||
    'nvl(AU_ID,1) = nvl(nvl(''' || :P7_X_AU_ID || '''' || ',AU_ID),1) and' ||
    'nvl(AR_BUSS_ID,1) = nvl(nvl(''' || :P7_X_AR_BUSS_ID || '''' || ',AR_BUSS_ID),1) and' ||
    'nvl(MTI_CCY_TP_ID,1) = nvl(nvl(''' || :P7_X_MTI_CCY_TP_ID || '''' || ',MTI_CCY_TP_ID),1) and' ||
    'nvl(REG_NO,1) = nvl(nvl(''' || :P7_X_REG_NO || '''' || ',REG_NO),1) and' ||
    'nvl(REG_SFX,1) = nvl(nvl(''' || :P7_X_REG_SFX || '''' || ',REG_SFX),1) and' ||
    'nvl(JMBG_ID_NO,1) = nvl(nvl(''' || :P7_X_JMBG_ID_NO || '''' || ',JMBG_ID_NO),1) and' ||
    'nvl(IP_ID,1) = nvl(nvl(''' || :P7_X_IP_ID || '''' || ',IP_ID),1) and' ||
    'nvl(TAX_ID_NO,1) = nvl(nvl(''' || :P7_X_TAX_ID_NO || '''' || ',TAX_ID_NO),1) and' ||
    'nvl(INSTRUMENT_OLD,1) = nvl(nvl(''' || :P7_X_INSTRUMENT_OLD || '''' || ',INSTRUMENT_OLD),1) and' ||
    'nvl(PREDZNAK_OLD,1) = nvl(nvl(''' || :P7_X_PREDZNAK_OLD || '''' || ',PREDZNAK_OLD),1) and' ||
    'nvl(NAPOMENA,1) = nvl(nvl(''' || :P7_X_NAPOMENA || '''' || ',NAPOMENA),1) and' ||
    'nvl(NOVI_POSAO_F,1) = nvl(nvl(''' || :P7_X_NOVI_POSAO_F || '''' || ',NOVI_POSAO_F),1) and' ||
    'nvl(LISTA_SUMARNA,1) = nvl(nvl(''' || :P7_X_LISTA_SUMARNA || '''' || ',LISTA_SUMARNA),1) and' ||
    'nvl(LISTA_REKAP,1) = nvl(nvl(''' || :P7_X_LISTA_REKAP || '''' || ',LISTA_REKAP),1) and' ||
    'nvl(DZS_IDY_CL_ID,1) = nvl(nvl(''' || :P7_X_DZS_IDY_CL_ID || '''' || ',DZS_IDY_CL_ID),1) and' ||
    'nvl(HNB_IP_CL_ID,1) = nvl(nvl(''' || :P7_X_HNB_IP_CL_ID || '''' || ',HNB_IP_CL_ID),1) and' ||
    'nvl(NO_DYS_OO,1) = nvl(nvl(''' || :P7_X_NO_DYS_OO || '''' || ',NO_DYS_OO),1) and' ||
    'nvl(POSTOTAK1,1) = nvl(nvl(''' || :P7_X_POSTOTAK1 || '''' || ',POSTOTAK1),1) and' ||
    'nvl(POSTOTAK2,1) = nvl(nvl(''' || :P7_X_POSTOTAK2 || '''' || ',POSTOTAK2),1) and' ||
    'nvl(POSTOTAK3,1) = nvl(nvl(''' || :P7_X_POSTOTAK3 || '''' || ',POSTOTAK3),1) and' ||
    'nvl(BNK_ID,1) = nvl(nvl(''' || :P7_X_BNK_ID || '''' || ',BNK_ID),1) and'||
    'nvl(ID,1) = nvl(nvl(''' || :P7_X_ID || '''' || ',ID),1) and' ||
    'nvl(ID_RETKA,1) = nvl(nvl(''' || :P7_X_ID_RETKA || '''' || ',ID_RETKA),1) and' ||
    'nvl(DATUM_STANJA,1) = nvl(nvl(''' || :P7_X_DATUM_STANJA || '''' || ',DATUM_STANJA),1) and' ||
    'nvl(IZNOS,1) = nvl(nvl(''' || :P7_X_IZNOS || '''' || ',IZNOS),1) and' ||
    'nvl(IZNOS_ACTUAL,1) = nvl(nvl(''' || :P7_X_IZNOS_ACTUAL || '''' || ',IZNOS_ACTUAL),1) and' ||
    'nvl(ACT_AR_BAL_KN,1) = nvl(nvl(''' || :P7_X_ACT_AR_BAL_KN || '''' || ',ACT_AR_BAL_KN),1) and' ||
    'nvl(ACT_AR_BAL,1) = nvl(nvl(''' || :P7_X_ACT_AR_BAL|| '''' || ',ACT_AR_BAL),1) and' ||
    'nvl(IZNOS_ACTUAL_OLD,1) = nvl(nvl(''' || :P7_X_IZNOS_ACTUAL_OLD || '''' || ',IZNOS_ACTUAL_OLD),1) and' ||
    'nvl(ACT_AR_BAL_KN_OLD,1) = nvl(nvl(''' || :P7_X_ACT_AR_BAL_KN_OLD || '''' || ',ACT_AR_BAL_KN_OLD),1) and' ||
    'nvl(ACT_AR_BAL_OLD,1) = nvl(nvl(''' || :P7_X_ACT_AR_BAL_OLD || '''' || ',ACT_AR_BAL_OLD),1) and' ||
    'nvl(EXG_RT_CRD_RSK_F,1) = nvl(nvl(''' || :P7_X_EXG_RT_CRD_RSK_F || '''' || ',EXG_RT_CRD_RSK_F),1) ';
    execute immediate l_sql_stmt; 
    end;

  • Photoshop Action Play Button Inactive

    The Actions Play Button has suddenly become inactive, i.e. regardless of which Action I now select the Play Button remains unclickable.  A circle with bar appears when I hover over the Play Button.
    This happened at some point while I was editing an Image in CS3 (Windows XP SP2).  I had run one (of many Actions) I have successfully.  When I came back to it (or any other Action) a short time later none of my actions could be invoked.  I have tried several different images, I am sure I have highlighted the background layer when I try any of the Actions.  I have restarted the Photoshop, and I have rebooted my computer.  I have done several web searches and seen a few other posts about this problem, but so far have been unable to find a solution.
    Thanks in advance,
    Ken

    hiya!
    this issue might be worth checking up on if video is playing (and you can hear it) but the audio isn't:
    iTunes for Windows: Audio files do not play in iTunes 5 or 6
    love, b

  • "Jump To" action on button not working

    First, let me say that I have read a ton of messages on this
    topic before posting this. Unfortuantely I have tried for over 5
    hours to resolve this but no success. What is particularly strange
    is the fact that this project file was published and working for a
    few weeks but now is no longer acting correctly regarding the "jump
    to slide" action for buttons.
    I have built a project of about 30 slides. There are 4 quiz
    questions, with scoring, that are programmed into the project. If
    the user gets a passing score, their next slide is a 'success' page
    and they continue on. However, if they do not pass (all 4 questions
    must be correct) they are taken to a "fail" page that has 2 buttons
    - 1 button is to go BACK to a previous slide where major content
    is; the second button takes them BACK to the very first question
    slide.
    When I select the "jump to slide" choice from the "on
    success" pull-down menu, the buttons do not work. When I select
    another action choices, such as "open URL" or something else, they
    do work. I have selected the "allow backward movement" choice from
    the quiz manager which I have read in other posts saying that may
    need to be selected. I have also checked my quiz scoring logic
    making sure that if they are passing the quiz, they end up on a
    different slide than if they fail the quiz.
    I have also tried making a completely new movie with a slide
    that has the "jump to slide" on a button and it does not work. I
    have tried copying/pasting slides from one project file into
    another but no go.
    Really stuck bad and cannot afford any more time to
    troubleshoot. I'd rather not have to remove the quiz and dependent
    branching but may have to.
    Is there an Adobe Support person I can send this project file
    to for review?
    Thanks in advance!!

    Let me fist say - "I feel your pain". I too have been going
    though this for the past 6 hours with a peer and when requiring
    100% pass to continue it would not go back. Here is what should
    work for you that yes, Adobe has not covered well in their
    documentation:
    Go to Edit Question-->Edit Quiz-->Reporting--> Have
    100% or more of total score to continue.
    Then Quiz--->Quiz/Required--> Change from "Pass
    Required - the user must pass this quiz to continue" to "Required -
    the user take this quiz to continue"
    And Quiz/Settings--> Allow backward movement checked
    Then Options-->If Failing Grade--->Jump to slide/Slide
    This should work for you. What I found out was that if you
    have Pass Required instead of Required along with Allow backward
    movement not together it hangs at the score results. If you have it
    set for Pass Required you don't even get past the last Question
    Slide.
    Welcome to the world of Captivate Quirks. Let me know if this
    helps - It works for us.

  • Action on Button in a Tiled View

    HI,
    Does anyone have a sample code/insight/thoughts on how I could
    implement the following ??
    I have a button inside a tiled view. If the user clicks on one of the
    buttons in the list - I need to perform a certain action - basically
    delete that row from the tiled view (and do some other stuff) and re-
    display the list.
    Thank you
    Atul

    Hello Moises
    The problem with this solution is that if you ever need to modify your maintenance view (i.e. regenerate the dynpros because you may want to add new fields) your coding is gone.
    This is not the case if you are using event 19. Below you see same sample coding:
    ***INCLUDE LZUS_SDN_MAINTF01 .  " Function Group with maintenance views
    * Event 19: After Init. Global Variables, Field Symbols, etc.
    * http://help.sap.com/saphelp_nw2004s/helpdata/en/91/ca9f44a9d111d1a5690000e82deaaa/content.htm
    FORM exclude_gui_function.
    * define local data
      DATA: ls_excl   TYPE vimexclfun.
      ls_excl-function = 'DELE'.  " taken from standard GUI-status 'ZULG'
    BREAK-POINT.
      AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
               ID 'BUKRS' FIELD '1000'
               ID 'ACTVT' FIELD '02'.
      IF ( syst-subrc NE 0 ).
        APPEND ls_excl TO excl_cua_funct.
      ENDIF.
      APPEND ls_excl TO excl_cua_funct.  " Just for the purpose of demonstration
    ENDFORM.                    "exclude_gui_function
    Regards
      Uwe

  • Dynamic action on button click

    Hi:
    I need some help.
    I am trying to create a dynamic action on the click of a specific button.
    I have set the Event to 'click" and the Selection Type to "DOM Object", but I do not know how to reference the button. I am using a standard template button and #BUTTON_ATTRIBUTES# is not included in the template - I am not sure how to include it in order to be able to specify an id for the button.
    Can someone give me some guidance on the steps I msut take to implement a dynamic action on the click of a button.
    Thanks.
    Bruce

    Bruce,
    edit your button template and add #BUTTON_ATTRIBUTES# to the button-tag of your button
    e.g.
    <button value="#LABEL#" onclick="#LINK#" class="button-gray" type="button" #BUTTON_ATTRIBUTES#>
    <span>#LABEL#</span>
    </button>
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Actions F-buttons for MAC and CS4 - Help

    I just got a new Macbook Pro that I was planning to use for photo editing work with photoshop CS4. I currently use a PC to do all my photo editing and
    have many different actions setup using keys F2-F12.
    For example I have F8 button saved as - auto levels and add sharp
    Well I have installed the actions on my new Macbook pro and when in CS4, and when I press the  F8 button on the keyboard of the Mac, even through I have photoshop open and pictures loaded, F8 instead of running the action it does whatever its task is on the MAC, like volume control or mute or make the screen brighter and darker. I use all the F-buttons from F2 - F12 and need them to do work. How is this done on the MAC ? Ive never had this problem with a PC before. Do I need to disable the F-Keys ? How is that done ? Why wont they run the records action even if photoshop is open and running ?
    Any help would be great.
    Thanks

    You will need to go into system preferences of the Mac and then click the keyboard tab.
    Now you can disable all of the Apple functions set to the F keys. You may not want to do this but instead modify the actions to use modifier keys (command or Option)

  • Actions for button

    Hello,
    I have created a button set, consisting of 9 buttons. I
    created the buttons on the stage, and on the over section of the
    button, i created a movie clip to animate them. All the animation
    is done, which includes a rollOVER animation, and a rollOUT
    animation, and the time line is labled up. I need some action
    script that will play the roll over animation on rolling over and
    the out animation on rolling out.
    Il predict that someon here will reply and tell me the best
    way to do this is create movie clips that act as buttons, but i
    have already created the buttons and im hoping there will be some
    action script that can do what i need.
    Hope someone can help. Thank you in advance :)

    the above is somewhat correct if you attach the code to the
    button instance, but if you are calling from the timeline you would
    use the syntax:
    my_btn.onRollOver = function() {
    this.rollOver_mc.play();
    However, I do think you are going to run into problems. if
    the 'rollOver' animation mc appears only on the 'over' state fo the
    button, it will not exist at the time that the 'play' command is
    being called, or at least it will be inconsistant. Additionally,
    the same is true of the 'rollOut' animation, this should probably
    reside on the 'up' state.
    Also you should not need to invoke the animations if you have
    created them independantly and placed the MCs in the button states,
    they should just play from frame1 when the button's built-in
    handlers change to that state. if you have a single mc 'spanning'
    the button states, and do need to call to it, try some of the
    methods above, but I'll predict that you'll most likely have some
    problems :)

  • Is there a max number of actions a button can have?

    I'm building an interactive matrix in InDesign (CS5.5 Mac) with stacked buttons to implement the change of state for a given spot on the grid. This is working fine in Acrobat, but when I made a "master reset" button in InDesign (setting 96 buttons to "hidden" and 96 buttons to "visible"), not all of the actions transferred to the button when opened in Acrobat.
    My question: is there a limit to the number of show/hide fields a single button can have? If so, I have a pretty good idea how to work around the limit, but want to be sure before proceeding.
    Acrobat 9 Pro, Mac OS 10.6.8.
    Thanks,
    Ben

    I highly recommend you do it with a script. Not only you won't have this
    issue with the maximum number of actions (which I have no answer for,
    sorry), but maintaining it would be MUCH easier and more straight-forward.
    Imagine you decide to change the name of one of the fields, or remove it.
    You'll have to go over all the actions and find the relevant one. In a
    script you could do it in seconds, and it would be much easier to find out
    if something went wrong.

  • Reader X - Under IE8 - Security Warning - Action unmemorized

    Hi,
    When I click a hyperlink, I have a security warning:
    This document tries to connect to the site .....
    I check the box Remember this action to this site and all PDF document.
    But this action is not stored.
    Have you any idea?
    Cordially
    PS: I do not have that message on a link that points to a page

    I have both the .exe and the .msi files in the same directory. I ran
    the .exe. After maybe 15 seconds of the progress bar running across
    the program window, a dialog box appeared that stated, "This patch
    could not be found. Verify that the patch really
    exists..." After that, the installation aborted. I next tried running
    the .msi directly (that is, without the .exe) by double clicking on
    the msi's  name in PowerDesk (the file manager). That immediately
    brought up the "patch could not be found" dialog and aborted the
    installation. Am I missing a file? Is the .MSI file corrupted or not
    the correct file? If I rename the .MSI, thus removing it from the
    installtion process, will the .exe do the whole job on its own?

  • Delay action of button to URL.

    Created button that activates short animation AND ALSO connects to URL.
    I want viewer to see full animation (26 frames that lasts about 1.5 seconds - 18 frames per second). Instead the button connects almost instantaneously to URL and viewer does not see animation.
    Animation automatically plays (full loop - 26 frames) when viewer first opens swf/html. The same animation plays again when viewer clicks button to go to URL.
    Is there some code in AS3 that can delay the connection to the URL until the 26th frame of the animation.
    I am beginner/intermediate to Flash and extreme novice to Action Script (get most of my AS coding from searches online). Need to be led by my hand in Action Script.
    Here is my action script 3.0 of my animation (and connection to URL)
    teach_btn is the button.
    // This is code that loads and plays above animation when you open swf/html file -  code is on frames 1-25
    stop();
    gotoAndPlay(1);
    function startMovie(event:MouseEvent):void
    this.play();
    teach_btn.addEventListener(MouseEvent.CLICK, startMovie);
    // This is code that connects user to URL - this code is only on keyframe 26
    stop();
    teach_btn.addEventListener(MouseEvent.CLICK,mouseClick);
    function mouseClick(event:MouseEvent):void
      var request = new URLRequest("http://www.webpage.com/")
      navigateToURL(request,"_blank");
    Thanks

    Thanks kglad,
    The coding does work now when viewer clicks on button, animation runs then goes to URL. That's just what I want.
    Unfortunately when the swf/html OPENS initially and the above animation runs - it also goes to the URL - I don't want viewer to automatically go to URL unless they actively click on the button to activate the animation/go to URL.
    Can we send swf/html files to forum participants? This may help you see what I'm trying to accomplish.
    Here's where I'm at with your edits to my coding.
    // This is code that loads and plays above animation when you open swf/html file -  code is on frames 1-25
    stop();
    gotoAndPlay(1);
    function startMovie(event:MouseEvent):void
    this.play();
    teach_btn.addEventListener(MouseEvent.CLICK, startMovie);
    // This is code that connects user to URL - this code is only on keyframe 26
    stop();
    mouseClick(null);function mouseClick(event:MouseEvent):void
      var request = new URLRequest("http://www.webpage.com/")
      navigateToURL(request,"_blank");

  • Action & onMouseClicked Button Events

    Hola!
    There's something I don't understand why happen.
    A button with action and onMouseClicked events:
    Stage {
        title: "MyApp"
        scene: Scene {
            width: 100, height: 100
            content: [
                Button {
                    text: "Button"
                    action: function() {
                        println("action!!");
                    onMouseClicked: function(e: MouseEvent): Void {
                        println("onMouseClicked!!");
    }During execution, if I press the button, it will print:
    action!!
    onMouseClicked!!
    Good! All right!
    But, if I add and Alert popup in action event, like that:
    Stage {
        title: "MyApp"
        scene: Scene {
            width: 100, height: 100
            content: [
                Button {
                    text: "Button"
                    action: function() {
                        println("action!!");
                        Alert.inform("action!!");   // <--------------------------------------
                    onMouseClicked: function(e: MouseEvent): Void {
                        println("onMouseClicked!!");
    }the onMouseClicked event function will not execute anymore.
    Why?? O_o

    Hola!
    There's something I don't understand why happen.
    A button with action and onMouseClicked events:
    Stage {
        title: "MyApp"
        scene: Scene {
            width: 100, height: 100
            content: [
                Button {
                    text: "Button"
                    action: function() {
                        println("action!!");
                    onMouseClicked: function(e: MouseEvent): Void {
                        println("onMouseClicked!!");
    }During execution, if I press the button, it will print:
    action!!
    onMouseClicked!!
    Good! All right!
    But, if I add and Alert popup in action event, like that:
    Stage {
        title: "MyApp"
        scene: Scene {
            width: 100, height: 100
            content: [
                Button {
                    text: "Button"
                    action: function() {
                        println("action!!");
                        Alert.inform("action!!");   // <--------------------------------------
                    onMouseClicked: function(e: MouseEvent): Void {
                        println("onMouseClicked!!");
    }the onMouseClicked event function will not execute anymore.
    Why?? O_o

Maybe you are looking for

  • Why do I get a error message when emailing from Lr?

    What am I doing wrong, trying to send Lr email? I get this "Message: Can't send e-mail because some selected photos are missing." I highlight a photo and right click, select 'Send e-mail' and the email form comes up - with the pic thumbnail showing a

  • How to totally forget a wifi speaker?

    Hi, Hope you can help with the title question. It keeps connecting automatically via wifi so much so that I have to open Preferences to check if my macbook air is using the built in speakers (what I want) or the wifi speakers (Bose Soundlink Wireless

  • What is the purpose of table STXL in reference to Smartforms

    Hi Guys, I am new to Smartforms and want to know what is th purpose of table STXL in Smartforms. Thanks.

  • Seeburger Payment Adapter

    Hi, Can anybody help me about the following: EDIFACT element. The element identifier has the format <segmentid>.<element>. For example: USY.0571 or USC#1.0536. This is used in Seeburger PI Adapter Adressbook for creation of AUTACK Message I need to f

  • Multiple inputs like select-option

    Hi everybody, Please let me know if there exists an option in BSP for multiple inputs in inputfield, like we have in select-option in R/3. Thanks