Increase in the number of sprite buy by clicking on a button

Hello, I need a help on the following problem.
I have several sprite out of the scene and necessary to make this sprite, one at a time, within the scene, without writing a long script like this:


on mouseUp me
If sprite (5) .locH = 512 then
Sprite (6) .locH = 512
and so on...


I have to use the script several times with several sprite, so I'm looking for another solution.
Is there a (more efficient) way to increase by one number of the sprite for each click on a button?
For more information: I need another button that decrease the number of sprite, but I guess if there is a solution to increase I can fix the script.
I tried with my knowledge very few jargon, but from now on, I'm without a solution.
Thank you

In the script of the film, you set the variable global "gMinSpriteNum" to "1"...

on prepareMovie
gMinSpriteNum = 1 - use the sprite starting number minus 1.
gCurSpriteNum = gMinSpriteNum
end prepareMovie

Then, change you the behavior of the increment...

-Behavior of the increment

on mouseUp me
NextSp = getNextSprite()
NextSp.locH = 512
end

If you want to be slick, then you can write like this...

-Behavior of the increment

on mouseUp me
getNextSprite () .locH = 512
end

Tags: Director

Similar Questions

  • License AnyConnect SSL - increase in the number of users

    I have an ASA 5510 with SSL 100 users license. I'll add additional VPN users - how can I go on the increase in the number of authorized users? Can I buy a license 50 users and they will combine (to 150 users)? Or I have to jump up to 250 users?

    I contacted Cisco and got two different answers (see above). If anyone has a part number, it would be great.

    Thank you

    Greg

    Hi Greg -.

    The next bump in licensing for Anyconnect Essentials is the number of users of 250 max (L-ASA-AC-E-5510 =). If you run Anyconnect Premium is more gradual. Here are the part numbers and user account for Premium evasion.

  • Script to increase/decrease the number of line of initials?

    There is a script to increase/decrease the number of drop caps text paragraph line?

    I use Indesign CS-5 for windows xp.

    Thank you in advance!

    Hi Obi - wan Kenobi,

    Maybe the code below will meet your requirement.

    var incrementFlag = false;
    var decrementFlag = false;
    var w = new Window ("dialog", "Drop Cap");
    var increment_button = w.add ("button", undefined, "Increment drop cap by one");
    var decrement_button = w.add ("button", undefined, "Decrement drop cap by one");
    increment_button.onClick = function(){incrementFlag = true; w.close();}
    decrement_button.onClick = function(){decrementFlag = true; w.close();}
    w.show ();
    if(incrementFlag == true)
    {
        app.selection[0].dropCapLines = app.selection[0].dropCapLines + 1;
    }
    else if(decrementFlag == true)
    {
        app.selection[0].dropCapLines = app.selection[0].dropCapLines - 1;
    }
    

    Vandy

  • Increase/decrease the number of text field?

    Hey there just playing on board and I'm trying to make a simple interactive (IE next buttons and back which got different labels).

    I had pimples just play and play in the opposite direction to the next or previous labels (I'm sure there is a better way to do it, so I'm all ears), but when I get to a label how can I get to increase/decrease a number text field without having to manually add each label (especially if there are 100 labels)?

    Thanks in advance.

    Hey pancreas, it seems that you do not call the 'arrowBtnLt' and click 'arrowBtnRt', on the left/right arrow button functions.

    Put this on arrowBtnLt.click:

    sym.arrowBtnLt ();

    Put this on arrowBtnRt.click:

    sym.arrowBtnRt ();

    In addition, because your label will probably from 1, document.compositionReady, replace the default value for 'currentCount' and if statement value left button like this:

    Enter the code to run when the composition is fully charged here

    var currentCount = 1; / / count the current count

    var maxCount = 4; / / maximum number of slides, labels, images, whatever, you

    sym.arrowBtnLt = function() {}

    If (currentCount > 1) {}

    -currentCount;

    update your text

    sym.getSymbol("pgNum").$("pgText").html (currentCount + "'") ;// convert number to string

    go to label on the timeline

    }

    }

    call this when the click on the arrow to the right

    sym.arrowBtnRt = function() {}

    If (currentCount<>

    currentCount ++;

    update your text

    sym.getSymbol("pgNum").$("pgText").html (' currentCount + "");

    go to label on the timeline

    }

    }

  • Increase in the number of reported problems

    Hello world! I try to correct a package with the large number of errors. Unfortunately, I can't get the full list of errors due to

    "Warning (1,1): only 20 first problems are reported" restriction.

    Please, let me know how to avoid this restriction, and how to increase the number of reported problems (100 or more, for example) in the list if she could be available.

    Developer SQL 1.2.1 - version. Thanks to you all!

    Sorry, you can not - it is a restriction of the database.
    But that should not matter since you have to correct them anyway, no?
    If warnings are you too much trouble, you can turn them off in Preferences - Database - build PL/SQL - Performance Options .

    Kind regards
    K.

  • Invoke the App UI of Headless on click of a button

    Hello

    I want to open the part of the user interface of my app on click of a button of my notification dialog of headless.

    can anyone help me please with this problem.

    Thank you & best regards

    Here you go

    bb::system::InvokeRequest request;
        request.setTarget("com.example.headlessdialog");
        request.setAction("bb.action.START");
        bb::system::SystemUiButton *but = new bb::system::SystemUiButton("Ok");
        NotificationDialog *nd = new NotificationDialog();
        nd->appendButton(but, request);
        nd->setParent(this);
        nd->setTitle("Headless Dialog!");
        nd->setBody("I'm a headless dialog!");
        nd->show();
    
  • Increase in the number of SQL

    I want a query that increments a count by one after each number of documents...
    example,
    After that 3 rows, it increases a 1 meter
    Counter value
    1A
    2A
    1 c
    d 2
    2 e
    $0
    3 d
    3 rd
    3 f

    NTILE (3) separate all lines into three size groups equal (as close as possible) while the OP asked to divide all the lines in groups where each group has 3 rows. Everything you need for this is ROWNUM. See the difference:

    SQL> select ename,NTILE(3) OVER(ORDER BY ename) from emp;
    
    ENAME      NTILE(3)OVER(ORDERBYENAME)
    ---------- --------------------------
    ADAMS                               1
    ALLEN                               1
    BLAKE                               1
    CLARK                               1
    FORD                                1
    JAMES                               2
    JONES                               2
    KING                                2
    MARTIN                              2
    MILLER                              2
    SCOTT                               3
    
    ENAME      NTILE(3)OVER(ORDERBYENAME)
    ---------- --------------------------
    SMITH                               3
    TURNER                              3
    WARD                                3
    
    14 rows selected.
    
    SQL> select ename,ceil(rownum / 3) from emp;
    
    ENAME      CEIL(ROWNUM/3)
    ---------- --------------
    MILLER                  1
    CLARK                   1
    KING                    1
    ADAMS                   2
    SMITH                   2
    JONES                   2
    FORD                    3
    SCOTT                   3
    JAMES                   3
    MARTIN                  4
    WARD                    4
    
    ENAME      CEIL(ROWNUM/3)
    ---------- --------------
    ALLEN                   4
    BLAKE                   5
    TURNER                  5
    
    14 rows selected.
    
    SQL> 
    

    SY.

  • Increase in the number of samples taken per second

    So I am a beginner in LabVIEW, and I work in a program to help me with some research. I enclose my VI below, and I take the data at a rate of almost 2000 samples per second (using the express deadline fixed VI a.001s). However, I need to be taken of data to approximately 10,000 samples per second, but if I try simply decrease the amount of delay (up to a.0001s), does not increase the sampling rate. Someone at - it thoughts/solutions to tide me over? Thank you.

    Use the example Finder and search for the "Input.vi - continuous voltage.  It is a good example of an acquisition of base.  There is also a built-in DAQmx called Logging configuration.  When activated, DAQmx will automagically be journal of task data to a TDMS file for you.  Use the continuous acquisition and set the frequency of sampling to the desired frequency.  You will need to read multiple samples to stand.  But this example is a great place to start.

  • Increase in the number of bugs and freezes

    I've been editing with first CC 2014, a Web series 5 episode. Each episode is about 20 minutes long. I was grading and vfx make after effects 2014.

    Recently, it has started to get slower and slower. When booting, it is often blocked loading files. By closing After Effects in the Task Manager, I found out that usually resolves this problem.

    Now, when I go to export an episode, it crashes and I have to force to leave. I discovered that if I export without audio, it is fine. As soon as I includes the audio information, it freezes.

    I have upgraded to the 2015 first and I'm now using Windows 10, but still it freezes like before. I tried to use Media Manager to divide the file into episodes but nothing I try again with the Media Manager freezes "project analysis" forever.

    I have 16 GB of ram. ;

    Important:

    Once you have replaced the links in the timeline with return it AE - delete ALL projection of old LINKS in PremPro projects.

    The other advantage in the use of this workflow is that several times when you check in the project, PremPro loses or breaks the link. With EI sequences make it is real, not some etheric link somewhere in the Adobe software.

  • How to increase the number of addresses in the BCC field?

    How to increase the number of addresses in the BCC of email field?

    What do you mean by increase in the number of addresses?  The CCC line will continue to accept addresses that you add them in there. Keep just by typing in the addresses separated by a semi colon ";

  • fact the # LNS increase when increasing the number of DB waiting?

    IM using 11g, LNS (Primary) communicates with RFS (Standby) to do it again, when the number of standby database increase, is the number of LNS also increase or it dynamically generates slaves or still to be alone?

    A process of LNS for each destination ensures ASYNC or SYNC. Standby #, 3 LNS. The ARK several processes on the primary contact all Standby to execute the resolution GAP.

    Processes have been renamed to 11.2 to make it a little clearer. An NSS process for each SYNCHRONOUS Eve destination and a NSA method for each ASYNCHRONOUS standby destination.

    Larry

  • How can I get the number of emails in my Inbox (not just read but total) to view the list of folders?

    I use to have a count of the total number of mails in my Inbox. This was listed next to "inbox" in my list of folders. With the latest version, it is gone and I can't find anything in the settings which may bring back this feature. I see the number of emails by right clicking on the folder, but I would love to just see it again a glance.

    You have this add-on?

    https://addons.Mozilla.org/en-us/Thunderbird/addon/extra-folder-columns/

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • Show on a text field, the number of times click us a Butoon

    Hi there... I did some work... and my teacher told me to do an exercise... but I wonder just for your opinion and help

    Here is that the problem... I managed to create a code to print text as soon as I click the butoon, here it is:

    botao.addEventListener(MouseEvent.CLICK, mostrartexto);
    
    function mostrartexto(event:MouseEvent){
              caixadetexto.text = "Hi there World";
    }
    

    So the thing is now... that... instead display the text by clicking the botoon I need to click on the butoon and it must indicate the number of times where I clicked on the text field.

    That means... I click it will show me '1' or '1 click', '2' or ' ' clicks... and so on.

    So, if there is someone who could help me and explaing how... or if it is even possible

    Cordially ASilva

    use a variable to store the number of clicks of buttons:

    var botaoClickNum:int = 0;

    botao.addEventListener(MouseEvent.CLICK, mostrartexto);
    
    function mostrartexto(event:MouseEvent){botaoClickNum++;           caixadetexto.text = botaoClickNum.toString();
    }
    
    
  • Count the number of times you click on hot spots.

    The specific problem I'm having right now counts the number of times where an is clicked a hotspot. I have four hot spots and need to track the number of times where is clicked on each hotspot. The variable "tent" gives me the total for the whole interaction. Since they are not considered, I can't use correct or wrong. You have any ideas? I would use the "tries@title" icon, but all the hotspots are contained in the icon interaction so that no longer works.

    Thanks for any help you can provide,

    I often structured interactions so that I can enjoy the variable 'ChoiceNumber. If your access points are all consecutive and they are the first things to the right of the interaction, you can use a variable from the list.

    [ClickList: =]

    Then at the top of each of your answers, you can use

    ClickList [ChoiceNumber]: = ClickList [ChoiceNumber] + 1

    Each task in ClickList is taken into account the time that spot has been used and you can use the sum to get the total of all tasks. If they can not be the first thing then you can always use an offset value... ClickList [ChoiceNumber-4]: = ClickList [ChoiceNumber-4] + 1

    HTH,

    Mike

  • I have a chase bank credit card that I have good ranking and what number do I call to talk to I tunes because he says, use a different card, it's the map I was buy everything what I tunes. Is it because I have challenged their load m

    I have a chase bank credit card that I have good ranking and what number do I call to talk to I tunes because he says, use a different card, it's the map I was buy everything what I tunes. Is it because I thought them charge me twi

    Can I have it please the number on I tunes support whether please or have them call me at * Leonardo B *.

    < personal information under the direction of the host >

Maybe you are looking for