help with condensation button code

Hello

I have a grid composed of 16 rows, seven columns. So there are 7 buttons in each row. on the buttons, I have a name instance for example ButtonClick1_1, ButtonClick1_2, ButtonClick1_3, ButtonClick1_4 etc and for the second row, ButtonClick2_1, ButtonClick2_2 etc.

my code AS the action is the same for each button. I currently have a ton of code such as the following.

ButtonClick1_1.addEventListener (MouseEvent.CLICK, clickHandler1);
function clickHandler1(event:MouseEvent):void {}
ButtonClick1_1.alpha = 0; 50% alpha
Stop();
}

ButtonClick1_2.addEventListener (MouseEvent.CLICK, clickHandler2);
function clickHandler2(event:MouseEvent):void {}
ButtonClick1_2.alpha = 0; 50% alpha
Stop();
}


ButtonClick1_3.addEventListener (MouseEvent.CLICK, clickHandler3);
function clickHandler3(event:MouseEvent):void {}
ButtonClick1_3.alpha = 0; 50% alpha
Stop();
}

I'm doing this for 112 buttons! I know there is a way to simplify this with a loop for, but do not know how to code. Any ideas?

Mark this thread as answered, is it.

Tags: Adobe Animate

Similar Questions

  • can someone help with the following code plsql errors...

    Hello

    If anyone can help with the following code... to get a successful outing.

    create or replace package lib_01 as

    procedure lib_proc01 (p_user_id in numbers, p_user_name in varchar2);

    end lib_01;

    create or replace package body lib_01 as

    procedure lib_proc01 (p_user_id in numbers, p_user_name in varchar2) as

    number of v_user_id;

    v_user_name varchar2 (50);

    number of v_avl_books;

    number of v_avl_days;

    date of v_end_date;

    date of v_return_date;

    Start

    dbms_output.put_line ('Enter User Name');

    dbms_output.put_line (' username :'|| p_user_name);

    Select user_id, user_name in v_user_id v_user_name of user_registration where user_name = p_user_name;

    If v_user_name <>p_user_name then

    dbms_output.put_line (' username is not.) Please submit full name ');

    end if;

    If v_user_id is null or v_user_name is null then

    dbms_output.put_line ("' user not found");

    validate_userLogin;

    on the other

    validate_issuedbooks (p_issuecount);

    end if;

    If v_issuecount < v_avl_books then

    issuebooks;

    on the other

    Number of return of late_fee (p_mem_id, p_extradays, p_latefee_total);

    end if;

    If paid_flag = "Y" then

    issuebooks;

    on the other

    dbms_output.put_line ("' book may be issued due to its maximum reached late fees");

    end if;

    end lib_proc01;

    procedure validate_userLogin is

    procedure reg_proc is

    procedure user_validate (p_id_proof in varchar2, p_id_no out varchar2) is

    v_id_proof varchar2 (20);

    v_id_no varchar2 (20);

    Start

    Select user_name, id_proof, id_no, v_user_name, v_id_proof, v_id_no of user_registration where id_proof = p_id_proof;

    If v_id_proof = "Adhar_Card" then

    dbms_output.put_line ('user a valid proof of ID');

    dbms_output.put_line (' and the id no. :'|| is p_id_no).

    on the other

    dbms_output.put_line ('Invalid ID evidence.) Please submit valid proof of ID ');

    end if;

    exception

    When no_data_found then

    dbms_output.put_line ('No Data found');

    end user_validate;

    procedure member_validate (p_mem_id series)

    v_mem_flag char (1);

    curr_date date: = sysdate;

    date of v_mem_enddate;

    Start

    dbms_output.put_line('Mem_flag:'|| v_mem_flag);

    Select mem_flag in the v_mem_flag of user_login where user_id = v_user_id;

    If v_mem_flag = 'n' or v_mem_flag is null then

    dbms_output.put_line ('The User do not have membership');

    on the other

    Select mem_id in the v_mem_id of user_login where user_id = v_user_id;

    dbms_output.put_line ('the user has membership');

    v_mem_id: = p_mem_id;

    Select mem_enddate in the member_login v_mem_enddate where mem_id = v_mem_id;

    If v_mem_enddate < curr_date then

    dbms_output.put_line ('Membership has expired' | v_mem_id |' on ' | v_mem_enddate);

    on the other

    dbms_output.put_line ('User a validity again' | v_mem_enddate);

    end if;

    end if;

    exception

    When no_data_found then

    dbms_output.put_line ("' no data found");

    while others then

    dbms_output.put_line (' another error.) Please find");

    end member_validate;

    Start

    insert into user_registration values ('& first_name ',' & last_name', null, ' & user_type',)

    address_ty ("& bldg_no",

    '& bldg_name',

    '& Street',

    ' & city ",

    '& State',

    '& zip'

    ),

    user_phone ',' & user_mail ',' mem_idproof', ' & id_no');

    Dbms_output.put_line ('user is properly registered');

    exception

    When no_data_found then

    dbms_output.put_line ("' data not found");

    end reg_proc;

    Start

    Dbms_output.put_line (' enter ID or user name ');

    Dbms_output.put_line (' username: ' | p_user_name);

    If v_user_name is null then

    Dbms_output.put_line ('user not found');

    reg_proc;

    Insert user_login SELECT user_id_seq. NEXTVAL, user_name, NULL, mem_id_seq. NEXTVAL, user_type FROM user_registration WHERE user_name is lower (p_user_name);

    Dbms_output.put_line (' because the user wants to have the membership? ");

    Dbms_output.put_line ('If Yes, please pay dues");

    INSERT INTO member_login SELECT mem_id_seq. CURRVAL, SYSDATE, SYSDATE + avl_days, 500, 'Y' of user_login ul, bl book_loan WHERE ul.mem_type = bl.mem_type AND user_name = p_user_name;

    END IF;

    exception

    When no_data_found then

    dbms_output.put_line ("' no data found");

    When too_many_rows then

    dbms_output.put_line (' too many lines).

    END validate_userLogin;

    procedure validate_issuedbooks (p_issuecount series)

    number of v_issuecount;

    Start

    Select user_login u, bl book_loan, avl_days, avl_books in v_avl_days, v_avl_books where bl.mem_type = u.mem_type and user_id = p_user_id;

    SELECT count (case when end_date < end return_date then p_mem_id) as invalidcount in v_issuecount from book_count where mem_id = p_mem_id;

    v_issuecount: = p_issuecount;

    dbms_output.put_line (' no. books that the user contains the :'|| p_issuecount);

    end validate_issuedbooks;

    procedure issuebooks is

    procedure book_avl (p_avl_now_flag in p_avl_date Boolean, date) is

    v_avl_now_flag char (1);

    date of v_avl_date;

    procedure reader_bookissue is

    Start

    insert into values drive (p_user_id, v_book_id, sysdate, sysdate, null);

    insert into book_count values(p_mem_id,v_book_id,sysdate,sysdate,null);

    Update book_availability set issued_to is "Reader" where book_id = v_book_id;.

    end reader_bookissue;

    Start

    Select book_name, b.book_id avl_now_flag v_book_name, v_book_id, v_avl_now_flag of the book b, book_availability b where b.book_id = ba.book_id and ba.book_id = p_book_id;

    If v_avl_now_flag = "Y" then

    dbms_output.put_line ('the book is available for issuance' | v_book_id);

    on the other

    Select mem_type in the v_mem_type of user_login where user_id = (select user_id from book_availability where avl_now_flag = 'n' and book_id = p_book_id);

    If v_mem_type = "Reader" then

    reader_bookissue;

    dbms_output.put_line (' the book is with Reader.) Please try tomorrow.') ;

    on the other

    dbms_output.put_line ('the book is member');

    end if;

    Select avl_date in the book_availability v_avl_date where book_id = p_book_id;

    v_avl_date: = p_avl_date;

    dbms_output.put_line (' the available date is: ' | p_avl_date);

    end if;

    end book_avl;

    Start

    insert into book_count values(p_mem_id,p_book_id,sysdate,sysdate+v_avl_days,v_return_date);

    Update book_availability set book_id = p_book_id, avl_now_flag = 'n', avl_date is to_date (sysdate + v_avl_days,' dd-mm-yyyy ""), issued_to = v_mem_type, user_id = p_user_id where mem_id = p_mem_id;

    commit;

    dbms_output.put_line ("' the book published successfully");

    end issuebooks;

    Number of function return late_fee (p_mem_id in number, p_extradays series, p_latefee_total number) is

    number of v_extradays;

    number of v_latefee_total;

    number of v_latefee_per_book;

    number of v_latefee_per_day;

    number of v_book_count;

    Start

    Select trunc (sysdate) - v_end_date in v_extradays from book_received where mem_id = p_mem_id and book_id = p_book_id;

    p_extradays: = v_extradays;

    v_latefee_per_book: = v_latefee_per_day * v_extradays;

    v_latefee_total: = v_latefee_per_book * v_book_count;

    p_latefee_total: = v_latefee_total;

    dbms_output.put_line ('The total AMT for not returned books' | p_latefee_total);

    end late_fee;

    end lib_01;

    Hello

    I checked the first 10 lines after the beginning and I could count already several errors.

    Is it an exercise or a real code, you must provide?

    Kind regards.

    Alberto

  • Need help with the error Code 80244019 Windows Update

    From: Doug

    I get code 80244019 whenever I try to use Windows Update. I tried to change the DWORD in regedit nothing helps... Norton has recently found and 'resolved' trojan.zlob in 128 files in the registry, 21 cases (10 of which were in system32) and 1 browser cache. Whenever I try to use IE to go to http://windowsupdate.microsoft.com I am redirected to msn.com.

    Any advice or solutions would be welcome.

    From: PA bear [MS MVP]

    Chances are that ZLOB was not completely removed and she was accompanied by infections Vundo and SDBot variant, all protected by a rootkit infection. You are going to need specialized assistance to clean this machine,

    Unexplained computer behavior may be caused by deceptive software

    http://support.Microsoft.com/kb/827315

    Run a check of /thorough/ for hijackware, including post your hijackthis on a proper forum log.

    Verification / help with Hijackware

    http://aumha.org/a/parasite.htm

    http://aumha.org/a/quickfix.htm

    http://aumha.NET/viewtopic.php?t=5878

    http://wiki.CastleCops.com/Malware_Removal_and_Prevention:_Introduction

    http://MVPs.org/winhelp2002/unwanted.htm

    http://inetexplorer.MVPs.org/data/prevention.htm

    http://inetexplorer.MVPs.org/tshoot.html

    http://www.MVPs.org/sramesh2k/Malware_Defence.htm

    http://defendingyourmachine2.blogspot.com/

    http://www.elephantboycomputers.com/page2.html#Removing_Malware

    When all else fails, HijackThis v2.0.2

    (http://aumha.org/downloads/hijackthis.exe) is the tool to use.

    It will help you to identify and remove any hijackware/spyware with

    assistance of an expert.  * Post your log to

    http://aumha.NET/viewforum.php?f=30,

    http://forums.Spybot.info/forumdisplay.php?f=22,

    http://CastleCops.com/forum67.html, or other appropriate review bodies

    by an expert in the field, not here.* *.

    If the procedures look too complex - and there is no shame in admitting

    isn't your cup of tea - take the local machine, good reputation and

    independent computer repair shop (i.e., not BigBoxStoreUSA).

    --

    ~ Robear Dyer (PA Bear)

    Another response of the community of Windows Vista discussion groups

  • help with framework button

    I have create a button (b1) can I double clicked and to "over" frame change color, so whene I'm above this button, I saw the color where I choose to "over" frame.

    I also have a (b2) button more and I want when I clicked on that the b1 button go to the color of the frame 'more' up to what I called the b2.

    any help with this?

    Thank you antony

    If b1 and b2 are movieclips and you label their mounts up and clicked with what is obvious, you can use something like:

    B1.onRelease = function() {}

    B2.gotoAndStop ("up");

    this.gotoAndStop ("clicked");

    };

    B2.onRelease = function() {}

    B1.gotoAndStop ("up");

    this.gotoAndStop ("clicked");

    };

  • Dreamweaver Contact form... Help with PHP or code is necessary to get the ' send' button to send the email (please)

    I tried all day get a contact form on a Web page, I am to send to an e-mail address. I have done various tutorials and tried many ways, but cannot make it work. I enclose the file htm contact dreamweaver and PHP, I tried to send an email.

    Basically I know there IN the code in the htm contact DW point to the PHP file name. Then the PHP has a place to put your e-mail address that you want to send. And all areas of txt form must be named correctly in the PHP and htm... but I can not work properly.

    Could someone please help? Thank you

    Sharon

    To start, you must include more details. What are the symptoms? Is there an error message? The user is redirected to a thank you page? It is also useful if you provide the url of the form and include the php script.

  • Help with 2 buttons, 2 entertainment and 2 audio clips

    Hey everybody,

    On board, I just animated in After Effects so bear with me here... I'm on a DPS project help for a friend and it left me speechless.

    I have a project to animate with 2 animations, 2 audio clips and 2 buttons. Let's call them Animation1 Audio1 and Button1. Animation2, Audio2 and Button2. I want to have the charge of the composition and wait for the user to click a button, the easy part. Now, I want to have Animation1 play with Audio1 when the user clicks Button1, but I don't want the other elements (Animation2 etc.) to play or be visible. Then vice versa when Button2 is clicked. I was able to get the elements of Button1 to work but then I still see items of Button2. The animations are sync'd to the audio files so they need to play in time with each other. I searched some tutorials on the web, but I'm probably not the right thing.

    Any help is very appreciated.

    RA

    You can bind a callback with the 'complete' event function of the audio tag and you can toggle the display property key to the function call back from events.

    IN the case of composition ready, add the code below

    {sym.$("YourAudioElementId").bind ("ended", Function ()}

    code to display the button here

    });

  • Help with coding button

    I do dress up games in ActionScript 2 and I have a problem.

    I want to find a button all elements of movieclip with, say, "shirt" in the name of the Instance and move them to the frame 2.  I know how to do this with a single element, (on (release) {}

    _root.shirt1.gotoAndStop (1);

    }

    and on the previous games, I just copied and pasted that several dozen times for each item.  However, on this game, I try to reduce code and learned how to use

    for (var i: String in _root) {}

    If (i.IndexOf ("_drag") >-1) {}

    _root [i] .onPress = function() {}

    (put in the code)

    (put the closing} s)

    on the stage to make items drag and snap into place.  I learned that this code does not have the buttons, which need static commands, I think?  I'm still very novice.

    Any help would be appreciated!

    You must remove all code objects.  so, no matter what button has code attached there an instance name (for example, btn) so you can use:

    btn.onRelease = function() {}

    for (var i: String in _root) {}

    If (i.IndexOf ("shirt") >-1) {}

    _root [i] .gotoAndStop (2);

    }

    }

    };

    }

  • Help with Radio buttons in form

    Hello. I inherited a site that has a simple form. Asked me to change the form of 4 radio buttons added to collect the consumer satisfaction with the content of the Web site. I added radio buttons using Dreamweaver MX, however, they do not work as I planned to do. I was under the impression that option buttons did not allow the user to select several options because when the user has selected a different option, the first option is deselected. My form is currently allowing all four options to choose from at the same time. The code for the form is below. I changed the @ in the email address of the form to avoid possible spam. Any help would be greatly appreciated.

    Looks like you need to change the name = the same on each radio button, if they all have the same name, you can go only one. Then, click the shape in the behaviors panel and don't forget that the name of the radio button is the insertion in the appropriate column db.

  • Need help with the button mute on my helmet XL-3000 of Microsoft Chat, please!

    Hi all!  Hope everyone is having a good TGIF!  If you use my helmet even, I need help understanding the region button mute in the middle of the rope.  The red light is on or off?  I suppose that if I hit the curve button with the microphone on this subject, and the red light, I'm turn off my mike?

    I did some tests with others on the phone calls.  Sometimes, some other hear me, sometimes they do not have.  BUT I NEVER HEAR THEM!  FOR MY WORK, IT IS IMPERATIVE THAT I MAKE CALLS TO OTHERS!  HELP PLZ!  Thank you very much and have a great wkend!

    Hello
     
    Please follow the links below to troubleshoot the computer.
     
    Method 1
     
    Connect one microphone, music player or other audio device to your computer

    Method 2

    Step 1

    Troubleshooting: headsets

    Step 2

    Open the troubleshooting of Audio recording

    Method 3

    How to adjust the microphone volume

    a. click Start, type mmsys.cpl in the search box and press ENTER.
    b.
    in the sound dialog box, click the recording tab.
    c. click Microphone, and then click Properties.
    Note Make sure that the work appears under Microphone. If the job does not appear, click Microphone, and then click on set as default.
    d. the Microphone Properties dialog box, click the custom tab.
    e. select or clear the box amp Microphone.
    f. click the levels tab.
    g. set the volume to the desired level, and then click OK.
    h. click OK to close the sound dialog box.
     
    How to adjust the setting of the voice
     
    a. start the game.
    b. connect to LIVE (the Guide).
    c. click personal settings.
    d. click on voice.
    e. make sure that the recording volume level indicator records at a bar when you talk.
    f. click done.

    If you are still facing problems then, I would say that you contact support for Microsoft hardware for more direct intervention.


    I hope this helps.

     
  • HELP WITH AN ERROR CODE PLEASE!

    Hello
    I tried to install Vista 64-bit.  I have a page error 0 x 00000050. (OxFFFFFA600211c000, Ox0000000000000000, OxFFFF800A46B137).  I read that page fault usually has to do with memory - I have run the Diagnostics memory and came with no error.  I was doing some research on the Internet and saw that he (error 50 code) may also have to do with the video RAM, so I changed the video no cards to an older model ATI 2900 (I was using an ATI Radeon 4850) now I have none liked getting the BSOD - fair windows loading files, then a black screen forever.  It is a whole new generation.  I can't load either Vista or 7 (the two 64-bit editions) in safe mode, the two facilities to stop at the same exact file LOADED: \windows\system32\drivers\disksys.  I can't and can start utility disks (such as windows and Wizard disk seagate boot disks that do in fact) and I used them to format the drive as the Neurofibrillaire degeneration.  I tried to find what the error codes, but despite countless searches I come up with nothing.  Thanks in advance for any help.
    I tried to start with a stick, test the memory sticks. I tried different ways different drives, different optical drives, now different production - the only thing that remains is the processor that I will try today.
    Thanks for any help or suggestion.
    I also tried the Advisor to upgrade and looked up the eyes each component seperatedly in the Compatibility Center and all are listed as compatible.

    I think I thought what it out - although my processor (QX6850) was listed as compatible on all these cards (asus, asrock and gigabyte) I went to Intel today Web site and discovered that my processor is only compatible with chipsets 35 or 48 - of course, I have a 45 chipset (and each of the offices well using different memory who spent memeory all the test and display correctly in the BIOS re) (: tension, calendar etc /) were all 45 chipsets.  I tested and everything but the CPU changed and was wrong to pay someone to do it for me with the same results!  Thank you for your time and your efforts - now I have to wait and see what the various companies tech support said because all these tips and everything I bought are beyond 30 days return policy!

  • Help with 0x80072efd error code

    I had trouble using any application that requires the internet and I can not access the windows store. I can use internet without any problems with my browser and did some diagnostics on the connection and my wireless adapter and they say there are no problems found! The code 0x80072efd happen when I try to use the windows store. I have looked for answers online, but can't find anything that relates to my problem. Help, please!

    Hello

    This issue because of the connection failure.

    Download and install the following update and check.

    The rollup Windows RT 8.1 8.1 of Windows and Windows Server R2 2012: January 2014.

    http://support.Microsoft.com/kb/2911106/en-us

  • How to get help with the error Code: U44M1U5?

    I just bought a new laptop with Windows 10 on it. I installed a new copy of Photoshop elements 13. I noticed that some features do not work when you click them. For example, when you try to create a new catalog, I clicked file > manage catalogs, but nothing happens. Similarly, the organizer has imported audio clips. I can't delete them. When I click on the option to remove the selected options of the Organizer, nothing happens. I got a popup telling me that updates are available. I tried to install them, but the installation fails every time. I get an U44M1U5 error code. How to solve this?

    PTL, I was able to get the problem solved. It turned out to be a fix of the 2 part. #1 problem: The buttons and functions that were not working in 13 items. I downloaded the latest updates for Windows 10 and that fixed that problem. I am now able to create catalogs, remove items from catalogues etc.  Problem #2: U44M1U5 error Code. I tried to download updates all 3 components suggested at the same time (AAM, first 13 elements and Photoshop Elements 13/Adobe Camera Raw 9). A forum suggested do one at a time. In addition, you can download the update of MAO while the MAO is running. You must click on CTRL-ALT-DEL, and then click Task Manager. From there, click on Adobe Application Manager and click on end process. Once I did, I was able to update the AAM with no problems. I then ran the update to Photoshop Elements. He got about 13% full and told me that I had to stop organizing Adobe. I did and you click on continue. Have downloaded the update without problem. I was also able to run the update to Adobe Camera Raw Editor 9 without problem. When I downloaded the update for Premiere Elements, it is 13% full before telling me to stop Organizer as well. So I closed the organizer and click on continue. All the updates installed without problem.

  • help with PL/SQL code

    Hello!

    I need help, I don't know why I get errors with my code:

    declare
    xMin number (3) NOT NULL: = 50;
    xMax number (3) NOT NULL: = 70;
    yMin number (3): = 0;
    yMax number (3): = 20;

    Start

    XMin CASE <-400 THEN
    xMin = - 400;
    ELSIF xMax > 400 THEN
    xMax = 400;
    ELSEIF yMin <-400 THEN
    yMin = - 400;
    ELSEIF yMax > 400 THEN
    yMax = 400;
    END IF;

    Select sum (population) populacija
    of naselje
    where x BETWEEN xMin xMax AND
    and is BETWEEN yMin AND yMax;
    end;

    error I get is:
    ORA-06550: line 10, column 15:
    PLS-00103: encountered the symbol "=" when expecting one of the following conditions:

    := . ( @ % ;
    The symbol ': = was inserted before '=' to continue. '
    ORA-06550: line 12, column 15:
    PLS-00103: encountered the symbol "=" when expecting one of the following conditions:

    := . ( @ % ;

    1 declare
    2 xMin number (3) NOT NULL: = 50;
    3 xMax number (3) NOT NULL: = 70;
    Thanks for your help!

    Kind regards
    Dragan

    First ELSEIF is incorrect, it must be ELSIF

    AH, Yes, '=' must be ': = '.

    Published by: Bob37 on May 16, 2012 12:10

  • Help with existing AS2 code to rotate an object

    I have an item I want to turn 3D (letter 'Y'). I have a code I put together and edited it a bit, but right now she turns at the top left because he is anchor. I try to turn it to the 'heart' of the Y (absolute Center), so it is essentially in place.

    My second problem is the speed. Ideally, it should turn very quickly and then slow down and stop. Any thoughts on how to clean either this code to make it work? I'm pretty new, so any help is appreciated. I could try with only a transformation of the form, but I'm trying to see if it can be cleaner with Actionscript. Thank you!

    Here is a link to the CS4 .fla file if that helps.

    http://Board.flashkit.com/board/showthread.php?p=4296719#post4296719

    scaleDirect = -1;

    DEC2HEX function ()dec ()

    {

    if ( dec > 15 )

    {

    POS1 = hexChars. charAt() ( Math. floor ( dec / 16 ) );

    POS2 = hexChars. charAt() ( dec - ( pos1 * 16 ) );

    } else

    {

    POS1 = 0;

    POS2 = hexChars. charAt() ( dec );

    }

    Hex = pos1 and pos2;

    return hex;

    }

    this. ( onEnterFrame = function()( )

    {

    letterMC. _xscale += scaleDirect * Math. floor (1+ ( 101-Math. ABS() letterMC. _xscale ) )/2 );

    if ( ) letterMC. _xscale < = -100 | letterMC. ( _xscale > = 100 )

    { scaleDirect * = -1;} }

    }

    don't use acceleration in your _xscale property:

    this.onEnterFrame = function()

    {

    letterMC._xscale += scaleDirect;

    If (letterMC._xscale <= -100="" ||="" lettermc._xscale="">= 100)

    {scaleDirect * = - 1 ;}}

    }

  • Need help with JavaScript button to save as an event.

    Hello

    I use Adobe Acrobat X Pro and am totally new to scripting of forms in Adobe (completely new to Adobe Acrobat as well!).  There is a backup on a form button that opens the Save dialog box under using a trigger (the mouse upward) and action (execute a menu item - file > save under... > PDF...) and it works fine, however, I want to now use javascript to change the behavior of the button so that it uses a trigger (the mouse upward) and action (run a JavaScript script) , and I want that JavaScript to combine the text values in two form fields (a location drop down and a date text field) and use this string concateneated + ".pdf" as the file name when he opens the Save as dialog box.  Make sense?

    This is what I added to the button as a JavaScript so far I use a test at this time string ("NewFile.pdf") and add the string that is concatenated to the script after that I know that the script works as it should.

    var NouveauNomFichier = "NewFile.pdf";

    var pathArray = this.path.split("/"); "

    pathArray.pop ();

    pathArray.push (newFileName);

    this.saveAs(pathArray.join("/")); "

    Up to present two questions:

    1. when I click the button nothing happens, no dialog Save as or whatever it is.

    2 when I check the properties of the button depending on the Actions tab shows property to select Action "Performing a menu item", even if I chose previously 'run a JavaScript '.

    Thanks for any help!

    The saveAs method will not work if the code is placed in a key event. It would need to be in a JavaScript file to the folder level, inside a function of confidence, inside a block of app.beginPriv/app.endPriv. Each user must have the JavaScript file to the folder level. The button can then call the code in the file. It will be possible for users of the form?

Maybe you are looking for