What is the most effective way to bring up the 1 of 4 images at any time?

Thanks for reading this.  I have the same exact image need to attend different places in my program.  Right now, I created a movieclip with the image and I pasted in my step 4 different times and given to each instance a different instance name.  I would make a more effective program if I changed the location in the script of the video and has said the Stop program on a different image for each image, I need?

What I'm trying to do, is to have a user to select from 4 different options and if they choose option 1, for example, the image of LED for option 1 light up and the other 3 lights will be off.  So, right now, if they choose option 1 I put ownership .visible to false for the other 3 images.  Is there a better way?

The visible property control is very good.  If there is no need to show three of four, and they are identical in all cases, it may be better to simply have an and control its position.

Tags: Adobe Animate

Similar Questions

  • The most effective way to log data and read simultaneously (DAQmx, PDM) high data rates

    Hello
     
    I want to acquire the data of several Modules cDAQ using several chassis to
    high data rates (100 k samples per second if possible). Let's say the measurement time is 10 minutes and we got a large number of channels (40 for example). The measured data is written to a PDM file. I guess, the memory or the HARD disk speed is the limits. For the user, there must be a possibility to view the selection of channels in a graph during the measurement.

    My question: what is the best and most effective way to save and read data at the same time?

    First of all, I use an architecture of producer-consumer and I don't want to write and display the data in the same loop. I expect two possibilities:

    [1] to use the 'DAQmx configure logging.vi' with the operation 'journal and read' to write the data to a PDM file. To display the data in a second loop, I would create a DVR samples documented and 'sent' the DVR for the second loop, where the data will be displayed in a graph (data value reference). This method has the disadvantage that the data of all channels is copied into memory. Correct me if I'm wrong.

    [2] use 'DAQmx configure logging.vi', but only with the "journal" operation to write the data to a PDM file. To view the selected data, I had read a number of samples of the TDMS file in the second loop (I'm currently writing the TDMS file). In this case, I have only one copy data from the selected channels (not), but there will be more HARD drive accesses necessary.

    What is the most effective and efficient solution in this case?

    Are there ways to connect and read data with high frequencies of sampling?

    Thank you for your help.

    You say that the measurement time is 10 minutes. If you have 40 channels and you enjoy all CHs at 100 kHz, it is quite a number of values.

    In this case, I always try to approach under the conditions of use. If a measure is only 10 minutes, I just connect all PDM data and create a graphic module that could be in the same loop of consumers where connect you the data. You can always work on the raw data files big offline afterwards, the extraction of all the information you need (have a look at the product called NI DIAdem: http://www.ni.com/diadem/)

    The main issue is that the user needs to see in the graph (or perhaps a chart can be useful too). Lets say that the graph is 1024 pixels wide. It makes no sense to show multiple data to 1024 points, Yes? Every second will produce you 100 data points k per channel. What is the useful information, which should see your username? It depends on the application. In similar cases, I usually use some kind of data reduction method: I use a moving average (Point by point Mean.VI for example) with a size of the interval of 100. This way you get 100 data points of 1000 per channel every second. If you feed your graph every second with these average values, it will be able to data points in 1024 of the store (as a default) by channel (curve), which is a little more than 10 minutes, so that the user will see the entire measurement.

    So it depends on the frequency at which you send data to the consumer. For example, collect you values 1024 by iteration of the producer and send it to the consumer. Here you can make a normal means calc or a bearing (according to your needs) and he draw a graphic. This way your chart will display only the values of the last 10 seconds...

    Once I programmed some kind of module where I use a chart and not a graph, and the user can specify the interval of the absolute timestamp that is traced. If the data size is larger than the size of the chart in pixels, the module performs an average calculation in order to reduce the number of data points. Of course, if you need to see the raw data, you can specify an interval that is small. It all depends on how you program zoom functions, etc... In my case I hade a rate of 1 Hz, so I just kept all data in RAM limiting the berries to keep 24 hours of data, so that technicians could monitor the system. In your case, given the enormous amount of data, only a file read/write approach can work, if you really need access to all of the RAW data on the fly. But I hope that the values of working capital means will be enough?

  • The most effective way to retrieve a number of virtual machines in an org?

    Hi all, what is the most effective way to retrieve a MV of County in an org. I am currently recovering all CDV in an org, then all the vApps, then all of the virtual machines and pushing them into a table, then do a vms.length on the table filled by all virtual machines.

    It takes a horrible time, and there MUST be a better way.

    Open to any suggestion. Thank you

    Good, as administrator of the organization then: (I have not tried as a normal user account)

    var vdcs = new Array();
    var orgVMCount = 0;
    var vcdHost = org.getHost();
    
    var queryService = vcdHost.getQueryService();
    var expression = new VclExpression(VclQueryOrgVdcField.ORGNAME, org.name, VclExpressionType.EQUALS);
    var filter = new VclFilter(expression);
    var params = new VclQueryParams();
    params.setFilter(filter);
    
    var resultSet = queryService.queryRecords(VclQueryRecordType.ORGVDC,params);
    while (resultSet != null) {
    
        var records = resultSet.getRecords(new VclQueryResultOrgVdcRecord);
        for each (var record in records) {
            var vdcVMCount = getVdcVMCount(record.href, vcdHost);
            System.log("VDC "+record.name+" VM Count: "+vdcVMCount);
        }
        orgVMCount += vdcVMCount;
        resultSet = resultSet.getNextPage();
    }
    System.log("Total Organization VM Count: "+ orgVMCount);
    
    function getVdcVMCount(vdcHref, host){
        var vmCount = 0;
    
        var qs = host.getQueryService();
        var exp = new VclExpression(VclQueryVMField.VDC, vdcHref, VclExpressionType.EQUALS);
        var exp2 = new VclExpression(VclQueryVMField.ISVAPPTEMPLATE, false, VclExpressionType.EQUALS);
        var exps = new Array(exp,exp2);
    
        var expFilter = new VclFilter(exps,VclFilterType.AND);
        var queryParams = new VclQueryParams();
        var vmArray = new Array();
        queryParams.setFilter(expFilter);
        var rs = qs.queryRecords(VclQueryRecordType.VM,queryParams);
        while (rs != null){
            var vmRecords = rs.getRecords(new VclQueryResultVMRecord);
            vmCount += vmRecords.length;
            rs = rs.getNextPage();
        }
        return vmCount;
    }
    

    It takes a little more code because the ".ORG" field is not available for the non-Admin queryVMField, but the. VDC IS, so we start by retrieving the TDC for the Org, then for each one, ask the number of vm for VDC.

    Post edited by: Burke - had accidentally initialization of orgVMCount as new Array(); -changed second line to 'var orgVMCount = 0;

  • What is the potential security risk to give 'any analysis' to a role or a user of 11.2.0.3 base data?

    What is the potential security risk to give 'any analysis' to a role or a user of 11.2.0.3 base data?

    Thank you

    Larry

    What is the potential security risk to give 'any analysis' to a role or a user of 11.2.0.3 base data?

    This is a HUGE security risk.

    Any person who uses the ANALYZE statement may accidentally or INTENTIONALLY, destroy the overall system performance.

    Just look at what the ANALYZE statement can do:

    https://docs.Oracle.com/CD/E11882_01/server.112/e41084/statements_4005.htm

    Goal

    Use the ANALYZE instruction to collect statistics, for example, to:

    • Collect or delete statistics on an index or index partition, table or table partition, table held in index, cluster, or scalar object attribute.

    The ANALYZE statement has been deprecated for statistics for the DBMS_STATS package.

    But what happens if the real and accurate data use by your important questions have been removed or replaced with nonsense, invalid statistical totall?

    You could bring your system to its knees INSTANTLY. The system could start making full of HUGE tables table scans instead of using an appropriate index.

    TERRIBLE, TERRIBLE thing to do to grant this privilege unless absolutely necessary.

  • Query SQL with multiple tables - what is the most effective way?

    Hello I learn PL/SQL. I have a simple procedure, where I need to find the number of employees and departments by location according to location_id user input.

    I have 3 Tables:

    LOCATIONS
    Location_id (pk)
    location_name
    ...
    DEPARTMENTS
    department_id (pk)
    Location_id (fk)
    department_name
    ....
    EMPLOYEES
    employee_id (pk)
    department_id (fk)
    Employee_Name
    ....

    1 location can have 0 - SEVERAL departments
    1 employee has 1 Department

    Here's the query I come up with for PL/SQL procedure:

    / * Ecount, Dcount are variable NUMBERS * /.

    SELECT SUM (EmployeeCount), COUNT (DepartmentNumber)
    IN Ecount, Dcount
    Of
    (SELECT COUNT (employee_id) EmployeeCount, department_id DepartmentNumber
    Employees
    GROUP BY department_id
    HAVING department_id IN
    (SELECT department_id
    Ministries
    WHERE location_id = userInput));

    I get the correct result, but I wonder if my query is on the right track and if there is a more "efficient" method to do so.
    Thanks in advance for help a beginner.

    Hello

    Welcome to the forum!

    Something like this will be more effective:

    SELECT    COUNT (employee_id)               AS ECount
    ,       COUNT (DISTINCT department_id)     AS DCount
    FROM       employees
    WHERE       department_id IN (     SELECT     department_id
                        FROM      departments
                        WHERE      location_id = :userInput
                      )
    ;
    

    You should also try a join instead of the IN subquery.

    For efficiency, do only the things you need to do.
    For example, you need not a number of employees in each Department, in order to not calculate one. This means that you will not need the notice online, so do not have.
    You needn't PL/SQL for this work, so don't use PL/SQL, if you do not have to (I know this question was out of context, then you may have good reasons to do this in PL/SQL.)

    Perform all the filtering as soon as possible. Do not waste it effort on the things that will not be used.
    An example of this is: never use a HAVING clause when you can use a WHERE clause. What is the difference between a WHERE clause and a HAVING clause? The WHERE clause is applied until the aggregate functions are calculated and the HAVING clause is applied after; There is no other difference. Therefore, if the HAVING clause is not reference an aggregate function, it could be done in a WHERE clause instead.

  • What is the most effective way to create an image without background?

    When I create, or use, the type or a logo or any graphic image, in a design, I want to import in InDesign with no background - 'transparent', if you want to.


    Measures on importation of PShop seem convoluted at best, with the bitmap, levels of grayscale and EPS files... I know I'm on the wrong track with this process, because it never seems to work.


    I would also like to, import from Illustrator and sometimes Painter12.


    Is there a mayonnaise "dirty way, or a better way to do this?"

    Thank you, the people of forum!

    Sticky means the setting should stay like this until you change, you need to may not display the options each time (but pay attention to the cultures - if you select a crop once option, saying that serving and file nex is not a defined bleed area, the import fails).

  • The most effective way to browse the similar named fields?

    Hello

    I have a 5-page document on every page that contains appx. 50 similarly named fields.    For example Viol1Num, Viol2Num, Vio3Num...  Viol50Num.

    I'm looking for an effective way to program a loop to watch each field in Javascript, I can do some manipulations in these areas on what the user has entered.

    In FormCalc, I've used the 'foreach' function similar to:

    foreach (Field1, Field2, Field3 Field50)

    "BLAH".

    ENDFOR

    However, who gets really long especially when it comes to the following pages, where I have to start adding "topmostSubform.Page2." in front of each domain name so that I can access it from the first page, all fields on the following pages.  Also, I need to do it in Javascript, no FormCalc.

    For example, in JS, I use this loop to mark all fields read-only:

    
    
    
        
    for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
    
    
       
    
     var oFields = xfa.layout.pageContent(nPageCount, "field");
    
    
       
    
     var nNodesLength = oFields.length;
    
    
       
    
     for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
    
    
       
    
    
     oFields.item(nNodeCount).access = "readOnly";
    
    
       
    
     }
    
    
       
     }
    
    
    
    

    How could I do something similar to that for I can browse each field and perform actions on it without having to list every single domain name?

    I tried to change to watch the fields instead of field properties, but I couldn't run.

    Thank you.

    I solved my problem.   It took a few fighting in javascript using xfa.resolveNode.

    I have 5 pages, each consisting of a series of 60 fields named Viol1Num, Viol2Num, Viol3Num... Viol60Num.

    If when the javascript is executed, it detects an empty field, then insert a '3' in it.

    Here it is the javascript code that runs to the second page of this document.

       While (LoopCounter< 61)="" {="">
       If ((LoopCounter! = 21) & (LoopCounter! = 22)) {}
       If ((xfa.resolveNode("topmostSubform.Page2.Viol"_+_LoopCounter_+_"Num").rawValue == null) |) ((xfa.resolveNode("topmostSubform.Page2.Viol"_+_LoopCounter_+_"Num").rawValue == "")) {
       xfa.resolveNode("topmostSubform.Page2.Viol"_+_LoopCounter_+_"Num").rawValue = 3;
       }
       }
       LoopCounter = LoopCounter + 1
       }
  • The most effective way to the U16-&gt; U32 Array pack for DMA data transfer?

    I have a RT controller who wants to send data to an FPGA using DMA.  In LabVIEW 8.2, I have no choice but to switch to the low blocks of data however U32 my my input data is an array of U16.  This leaves me two choices: 1) wire U16 table directly into the DMA node that will be rude to U32 but I lose 16 bit * #of table 2) Pack the U16 elements in a U32 table before sending it to the bottom.    I have #2 and I have a method that works (and seems to be quite effective) but I have the feeling that I'm doing the hard (or roundabout way).   Is their a simpler (but equally effective) way to do this procedure?  Thank you

    Here's a solution that swaps the bytes and key elements the same. There are several ways to do so.

    (for efficiency, you can place the table 'remodel' inside a case structure then, it happens only if necessary)

  • The most effective way to import data from Excel in InDesign?

    Hi all

    I'm designing for a prospectus of college which includes 400 + courses list. For the moment, these lists exist as a huge Excel sheet with fields such as course type, course code, description, etc.

    I am familiar with Excel data import in InDesign and the tables/creation of table styles and other formatting, but the problem I have is that the data are in several columns by courses in the Excel worksheet, but will be in a single column per course with several lines in the InDesign document. I can't find a way to easily convert these columns in lines.

    Someone can help me with an effective way to get the data in the page layout without laborious copying and pasting or formatting?

    Thanks in advance!

    Hello

    In excellent paste / transpose

  • most effective way to retrieve the channel number

    Hello guys,.

    I use this Regexp to extract numbers in a string, and I doubt that there is a more effective way to achieve this:
     SELECT  regexp_replace (regexp_replace ( REGEXp_REPLACE ('  !@#$%^&*()_+= '' + 00 SDFKA 324 000 8702 234 |  " ' , '[[:punct:]]',''), '[[:space:]]',''), '[[:alpha:]]','')  FROM dual
    {code}
    
    Is there a more efficient way to get this done ?
    
    Regards,
    Fateh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    Hello

    Using regular expressions, you can remove everything that is not a number by saying:

    REGEXP_REPLACE ( str
                , '[^[:digit]]'
                )     
    

    When ^ is the first character inside the brackets, it means "everything except the following.

  • The most effective way to store lines

    DB version: 10gRel2 and 11G


    If I want to keep a single column as structure, I would like to use associative arrays for performance reasons. Who is the most effective method to store a multicolumn line?


    You guys are using something like this
    DECLARE
      type v_emprec_array is table of emp%rowtype INDEX BY BINARY_INTEGER;
      v_emprec v_emprec_array;
    BEGIN
      select * bulk collect into v_emprec from emp where empno=7369;
    or this
     declare
      TYPE rec_UpdateEmp IS RECORD
               (
              Inpt_emp_id         t_InptId,
              Stat_Code               gt_StatCode,
              Tms_Proc                pa_TmsProc,
              Tms_Po_Flag             pa_TmsPoFlag,
              Sngl_Unit_Flag          pa_SnglUnitFlag,
              Pkt_Profile_Id          gt_ProfileId,
              Pkt_Type                pa_PktType,
              host_inpt_id            pa_HostInptId
              );
              
          rec                         rec_UpdateEmp;
      

    Ref Cursor is a better option

    create or replace procedure emp_dtls
    (
     p_sal number,
     p_result out sys_refcursor
    )
    as
    begin
     open p_result for
      select ename,sal from emp where sal>p_sal;
    end;
    /
    
    SQL> var myvar refcursor
    SQL> exec emp_dtls(2000,:myvar);
    
    PL/SQL procedure successfully completed.
    
    SQL> print myvar
    
    ENAME             SAL
    ---------- ----------
    JONES            2975
    BLAKE            2850
    CLARK            2450
    SCOTT            3000
    KING             5000
    FORD             3000
    ADAMS            7654
    
  • In a widget of Composition can triggers dynamically reposition in what concerns the different sizes of image of hero?

    I'm working on a design where using Composition widget is best suited to my needs for customization. My plan is to position the trigger under the goal of hero image thumbnail. As each trigger is selected, a different hero image appears as it should. However, each of my hero images vary in vertical height. If I post the triggers, say, 50px below #1 and #2 image image is much larger, #2 image overlaps the triggers. Not good.

    Is it possible in this widget for do triggers dynamically reposition (force push) depending on the size of image of hero, now a uniform fill between?

    Or is this only possible by giving each project it's own, renouncing a widget in total and by treating the thumbnails just as page links?

    (Visuals provided here):

    Thanks for any advice you can share,

    Steve

    version1.pngversion2.png

    You will need to use nested widgets, even if this often made quite a mess of using triggers remote because of the conflicting functions of widget.

    Mylenium

  • What is the most effective way to update tables when converting the RTF to FM 9.0?

    Hello once again, editors.

    My procedure:

    1. Word doc saved. Rich TEXT format and opened it in FM 9.0.
    2. Imported from all formats from an FM file,
    3. Used a third-party plugin or MIF to replace paragraph styles.
    4. Remove all the styles from Word of left-over of the FMP catalog.

    Problem: Doc contains dozens of tables, which came the format of unknown table 'Table' (in the table designer). In the MIF file I changed all instances of < 'Table' TblTag > to < TblTag "DefinitionsTable" > with good results - except that they are wide 6.5 "all and I need them to be the usual width for this format of table (5.75").

    Click Table > resize columns and the option button "by the scaling to the width for a total of 5.75" is already selected, so all that I have to do is he reapply by clicking on the button resize in this dialog box. The table snaps in the right size and position, everything is fine - except that I have to do this same procedure around 9 zillion times. So what I need is a faster way to do the same thing.

    Here is the table format in the MIF, but it represents only two columns (Num Num 1 and 0)-probably because this table is defined as having two columns. But the charts that I brought the RTF have three. And curiously, the values for TblColumnWidth for each of these two columns don't total still 5.75.

    < TblFormat
    < TblTag "DefinitionsTable" >
    < TblColumn
    < TblColumnNum 0 >
    < TblColumnWidth 1,22917 ">
    < TblColumnH
    < PgfTag "TableHeading" >
    > # end of TblColumnH
    < TblColumnBody
    < PgfTag "FieldName" >
    > # end of TblColumnBody
    < TblColumnF
    < PgfTag "TableHeading" >
    > # end of TblColumnF
    > # end of TblColumn
    < TblColumn
    < TblColumnNum 1 >
    < TblColumnWidth > 3,30209 "

    I have to do a presentation tomorrow, part concerns the conversion of Word in FM and it is a necessary component. I wish I had seen this problem a couple of days!  All expertise out there on this topic?

    Any suggestions gratefully received

    ~ ~ Gay

    Have you looked at TableCleaner of Rick Quatro, at http://www.frameexpert.com/plugins/tablecleaner/index.htm

    As you found, the problem with the MIF - Bop tables is that not all of the settings are stored in the instance of table, so it can be difficult to make sure that the settings you are looking at other areas are indeed affecting the table 'target' other places. Keeping the table identification numbers straight is the key

    MIFBrowser is an essential element (it works perfectly with FM9 MIF):

    MIFBrowser Wideman

  • The most effective way to understand what quarter an object is in relation to another

    Compares an object to another, and I wonder if there is a better way to determine which quarter an object is in relation to another.

    quarter.png

    Currently I am doing

    if (object1.x > object2.x){
     if(object1.y > object2.y){
      //quarter 1
     } else {
      //quarter 0
     }
    } else {
     if(object1.y > object2.y){
      //quarter 2
     } else {
      //quarter 3
     }
    }
    

    Thanks in advance.

    Google search using the terms "AS3 ATAN2 track object" you're likely to find many things that talks following the mouse... just replace the mouse with the object you want to point to.

  • What is the most effective way to change a demo, training and evaluation of the recording mode?

    Often I want to record a software simulation in demonstration, training and evaluation, or at least in two modes.

    After registration, I have to make some changes, for example, I want to change "click field Contact must be completed" to "in the Contact field, click the fill button. So if I want to use videos as a demo, training and evaluation, I have to review even three times. Is there an easier way to do it?

    N ° you must edit each output separately.

Maybe you are looking for