How to use a variable?

Hello

I would like to use variables for sym.getComposition () .getStage () .getSymbol ("Rec") so that I can type in Rec.isPlaying (); instead of copy and paste long code 100 times. I put my variables on the stage with a compositionReady event so that when the document comes on it will recognize my variables immediately. However, in the API guide, he says to avoid using global variables and to use var myvar but this means I have to copy/paste in these variables on each single object I want to do what is just stalling.

So the first thing is first. It WORKS with the global variable and a compositionReady event. So I have a few questions on this topic.

Global variables are called each .xxxx miliseconds or are they only called when an action is triggered? If this is the first, is there another event that I can put on the chronology of the main stage so that he questions my variables at each first time an action or event is fired? I'm also upgrading efficiency too. A slow game isn't fun.

Also, I have a quesiton of syntax if anyone can help me to answer this question. Can I condense this code?

If (circ.isPlaying ())

Circ.Stop ();

ElseIf (rect.isPlaying ())

Circ.Stop ();

ElseIf (roundedRect.isPlaying ())

Circ.Stop ();

on the other

Circ.Play ();

Y at - it another way I can just say:

If (circ.isPlaying ())

(rect.isPlaying ())

(roundedRect.isPlaying ())

SYM. Stop();

on the other

SYM. Play

Thank you all.

Hello

If you want to: (circ.isPlaying ()) and (rect.isPlaying ()) and (roundedRect.isPlaying ())

then you write: (circ.isPlaying ()) & (rect.isPlaying ()) & (roundedRect.isPlaying ())

JavaScript: logical operators.

Tags: Edge Animate

Similar Questions

  • How to use the variable in the path of the source of an image in flex

    Hello
    I just want to know that how to use the variable in the path of the source of an image in flex

    Hello
    I just want to know that how to use the variable in the path of the source of an image in flex

  • How we use the variable checkbox?

    I use Cap 8. Finally, I want to set a variable to store the user's decision to play any narration automatically, or do not play automatically narration.

    A check box appears as a perfect way to let the user make this decision, so I used the box widget to display only a single checkbox. Successfully, I set the text property of checkbox and entered a unique variable name (myNarrationDefault) to store the State of the checkbox. Now how to access the variable?

    I added a text field, so I could see the value of this variable. However, when I try to insert a variable, I don't see the new user variable, in the list. Then I tried to add an action to a button just to see if the variable appears in the tool; There can be no.

    I'm doing something wrong?

    Thank you

    Pete

    In fact, you will need to create so that the variable you made in the interaction interface, CP does not do it for you, project/Variables in the top Menu.

    When the box is checked, the value is then assigned to the variable.

  • How to use a variable to specify the color when you set an attribute

    Hello

    We use BI Publisher (OPE) embedded in the e-Business Suite. So we are actually on version 5.6.3.

    I'd like to conditionally set the cell background color attribute in a table by using a variable reference. something like this (the sense in which I tried):

    <? attribute@InContext:background-color;$exEmpBGColor? >
    <? attribute@InContext:background-color;' {$exEmpBGColor}'? >

    The 'standard' to do this way:
    <? attribute@InContext:background-color; '#CCCCFF'? >

    Can someone please help? (i.e. is it even possible?)

    http://winrichman.blogspot.com/2008/09/how-to-set-dynamic-color-based-on-XML.html

    http://winrichman.blogspot.com/search/label/formatting

    http://winrichman.blogspot.com/2009/09/column-formatting.html

  • How to use a variable as a column name in a select statement

    Hello, I am using

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    I have a procedure looking for groups that have not been updated for the current month. The columns are month_01, month_02, month_03 etc. I'm becoming if I can automate every month, but I need to be able to use a variable as the name of the column for the month. Can someone help me with this?

    Example of Table

    CREATE TABLE TEST_TABLE
    (
      IDENTITY_CODE      NUMBER(10),
      YEAR_S             NUMBER(5),
      MONTH_01           NUMBER(18,2),
      MONTH_02           NUMBER(18,2),
      MONTH_03           NUMBER(18,2),
      MONTH_04           NUMBER(18,2),
      MONTH_05           NUMBER(18,2),
      MONTH_06           NUMBER(18,2),
      MONTH_07           NUMBER(18,2),
      MONTH_08           NUMBER(18,2),
      MONTH_09           NUMBER(18,2),
      MONTH_10           NUMBER(18,2),
      MONTH_11           NUMBER(18,2),
      MONTH_12           NUMBER(18,2) 
    );
    INSERT ALL
    INTO TEST_TABLE VALUES(640,2015,124,123,125,126,127,128,547,888,987,567,145,685)
    INTO TEST_TABLE VALUES(098,2015,587,874,0,587,652,222,444,777,885,999,657,547)
    INTO TEST_TABLE VALUES(608,2015,587,874,687,587,652,222,444,787,885,999,657,547)
    select 1 from dual;
     

    Here's my current procedure

    CREATE OR REPLACE PROCEDURE RRM_EMAIL_NOTIFICATION IS
    
    v_output VARCHAR2(10000);
    v_message VARCHAR2(1000);
    v_date date;
    cursor v_check is 
    SELECT *
      FROM (SELECT '640' AS ds FROM DUAL
            UNION ALL
            SELECT '098' AS ds FROM DUAL
            UNION ALL
            SELECT '608' AS ds FROM DUAL
            UNION ALL
            SELECT '618' AS ds FROM DUAL
            UNION ALL
            SELECT '617' AS ds FROM DUAL
            UNION ALL
            SELECT '614' AS ds FROM DUAL
            UNION ALL
            SELECT '610' AS ds FROM DUAL
            UNION ALL
            SELECT '616' AS ds FROM DUAL
            UNION ALL
            SELECT '643' AS ds FROM DUAL)
    WHERE LPAD (ds, 3, '0') NOT IN
              (SELECT DISTINCT (SUBSTR (IDENTITY_CODE, 2, 3)) AS Blah_Blah_Blah
                 FROM TEST_TABLE
                WHERE     month_03 <> 0
                      AND year_s = 2015
                      AND (   SUBSTR (IDENTITY_CODE, 2, 3) = '640'
                           OR SUBSTR (IDENTITY_CODE, 2, 3) = '098'
                           OR SUBSTR (IDENTITY_CODE, 2, 3) = '608'
                           OR SUBSTR (IDENTITY_CODE, 2, 3) = '618'
                           OR SUBSTR (IDENTITY_CODE, 2, 3) = '617'
                           OR SUBSTR (IDENTITY_CODE, 2, 3) = '614'
                           OR SUBSTR (IDENTITY_CODE, 2, 3) = '610'
                           OR SUBSTR (IDENTITY_CODE, 2, 3) = '616'
                           OR SUBSTR (IDENTITY_CODE, 2, 3) = '643'));
    
    BEGIN
    v_date := SYSDATE;
    open v_check;
    loop 
    fetch v_check into v_output;
    exit when v_check%NOTFOUND;
    v_message := v_message || chr(13) || v_output;
    END LOOP;
    close v_check;
       
    send_mail('The RRM one-time initiatives that have not been processed for '||v_date|| ' are ' || chr(13) ||v_message,'[email protected]','RRM ONETIMES NOT PROCESSED FOR ' || v_date);
       
    END RRM_EMAIL_NOTIFICATION;
     

    I need to be able to substitute the name e.g. MONTH_01 with a variable column so that it will be MONTH_ | "" some months "

    A variable can be created as v_month: = 'month_ | TO_CHAR (T_DATE, 'MM')

    If I'm not mistaken that should come out as month_03 for March

    The output should be in an email as follows:

    Capture.JPG

    Something like:

    CREATE OR REPLACE PROCEDURE RRM_EMAIL_NOTIFICATION IS

    v_output VARCHAR2 (10000);

    v_message VARCHAR2 (1000);

    date of T_DATE;

    v_check SYS_REFCURSOR;

    BEGIN

    T_DATE: = SYSDATE;

    Open the v_check FOR

    Q' {}

    SELECT *.

    FROM (SELECT '640' DS DUAL FROM

    UNION ALL

    SELECT '098' LIKE ds FROM DUAL

    UNION ALL

    SELECT '608' LIKE ds FROM DUAL

    UNION ALL

    SELECT '618' LIKE ds FROM DUAL

    UNION ALL

    SELECT '617' LIKE ds FROM DUAL

    UNION ALL

    SELECT '614' LIKE ds FROM DUAL

    UNION ALL

    SELECT '610' LIKE ds FROM DUAL

    UNION ALL

    SELECT '616' LIKE ds FROM DUAL

    UNION ALL

    SELECT '643' DS DUAL FROM)

    WHERE LPAD (ds, 3, '0') NOT IN

    (SELECT DISTINCT (SUBSTR (IDENTITY_CODE, 2, 3)) AS Blah_Blah_Blah

    FROM TEST_TABLE

    {WHERE month_}' | TO_CHAR (T_DATE, 'MM') | Q'{ <> 0

    AND year_s = 2015

    AND SUBSTR (IDENTITY_CODE, 2, 3))

    '640'

    '098'

    , ' 608 "

    '618'

    '617'

    '614'

    '610'

    '616'

    '643')

    )

    }';

    loop

    extract the v_check in v_output;

    When the output v_check % NOTFOUND;

    v_message: = v_message | Chr (13) | v_output;

    END LOOP;

    close v_check;

    send_mail ("one-time initiatives the RRM that haven't been treated for ' |") T_DATE | «are» | Chr (13) | v_message,' [email protected]',' ONETIMES UNPROCESSED for RRM ' | T_DATE);

    END RRM_EMAIL_NOTIFICATION;

  • SQL how to use a variable and use the result as a reference for the name of the table

    Hi all

    I have new in the declaration of Oracle, sorry in advance if something is easy for you all. BTW, I have this scenario:

    I have a table OL structured in this way:

    Date - it contains dates, for example 11/01/2015

    TableName - it contains strings, for example, OL1, OL2, OL3 and so on...

    Then I have a different table, the name of these tables are of the same name in the table of the OL, so I have table table, OL1, OL2, OL3 table and so on. The structure of these tables is the same. And Yes.

    table OL1

    ---------------------------------------------------------------

    ID LAST NAME FIRST NAME PHONE

    ---------------------------------------------------------------

    1 JOHN DOE 12345679

    2 PAUL 111111122 TIBBS

    table OL2

    ---------------------------------------------------------------

    ID LAST NAME FIRST NAME PHONE

    ---------------------------------------------------------------

    1 ANNA KRAIG (NULL)

    NATHAN FRESHMANN 111111133 2

    If the scenario is clear, I would like to retrieve the value (null), research in all the OL * tables by using the value of the OL table (tablename) max.

    If I'm going to do these simple steps, I got the result:

    Select max (TableName) OL

    the result will be OL2

    # I know not how to use the option set to avoid changing the table name in the sql statement all the time.

    set mytable = 'OL2.

    Select Name, family name

    of & mytable

    When the phone is null

    Any idea?

    Thank you very much in advance.

    Hello

    run immediately "select dt.log_id, obj.presentation_name, dl.begin_time

    bulk collect into v_result_set

    of ' | v_ol |' dt join internal ol_object obj on

    DT.object_type_id = obj.object_type_id

    inner join ol_chunk_log dl on

    DT.log_id = DL.log_id

    where dt.data_value is null';

    dbms_output.put_line (v_ol);

    end;

    Correct the code such as:

    run immediately "select dt.log_id, obj.presentation_name, dl.begin_time

    of ' | v_ol |' dt join internal ol_object obj on

    DT.object_type_id = obj.object_type_id

    inner join ol_chunk_log dl on

    DT.log_id = DL.log_id

    where dt.data_value is null' bulk collect into v_result_set;


    for i in v_result_set.first ... v_result_set. Last

    loop

    dbms_output.put_line ('LOG ID: ' | ) ( v_result_set.log_id (i)) ;

    dbms_output.put_line (' NAME CLOSELY: ' |) v_result_set.presentation_name (i));

    dbms_output.put_line (' START TIME: ' |) ( v_result_set.begin_time (i)) ;

    end loop;

    end;

    Kind regards.

  • How to use substitution variables, as in Microsoft Word using Hyperion Smart view

    Can we use the Substitution Variables to copy data points and cool off in Microsoft Word? I tried and it does not dynamically (copy the data points only copies what was in excellent cell right there). It copies only the static value of this variable for this cell. I want to use dynamically in Word so that if I change the value of this variable in Essbase, it is updated in Word on refresh. Any idea?

    We need this notification feature in microsoft word and keep using data points every year (instead of copy the cells of excellent on new)

    Any help or suggestion is appreciated.

    Thank you

    You may not use substitution variables, as with the copy data points. I tried a while back (after 111.1.2.1.102) and it wouldn't work.  I checked with Oracle development and they said that I is not available

  • How to use a variable binding in an IN clause

    I'm trying to use a variable binding in an IN clause where the column is a type varchar2. Something like:
    select *
    from test
    where test_column in (:bindVariable)
    I tried the assignment of channels bind variable separated by commas (for example, test, test, test) and separated by commas strings with quotation marks (for example. 'test', 'test', 'test'). None of these work. Anyone know the correct way to do this?

    Thanks in advance.

    http://tkyte.blogspot.com/2006/06/varying-in-lists.html

    Presents many options.

  • How to use a Variable in a procedure

    Hi all

    I created BasedOn with 2 steps inside.
    _1st step: _
    Command on the Source:
    Oracle - Select query to extract two values of column in a table.

    Drive on target:
    Jython - assignment of the two values above to var1 and var2.

    _2nd step: _
    Command on the Source:
    Oracle - need of a query to extract the username and password to a Dataserver Oracle and assign both to var3 var4.
    To get the username and password I use < % = odiRef.getInfo ("DEST_USER_NAME") % >
    & odiRef.getInfo ("DEST_PASS"), but I do not know how to assign these values to the var3 & var4.

    Drive on target:
    SunopsisAPI - invoking a weservice using the OdiInvokeWebservice API.
    In this command, I need to call the variables var1, var2, var3, var4 respectively.

    Kindly let me know how to proceed with this. So far, step 1 was successful.

    Thank you!
    VERIFIED BY VISA

    Can you use Java instead of the Jython and transmit these variables 1 and 2 to the java variable and you can call in the second step of this way
    var1 =<@=java_var1@> , var2 =<@=java_var2@> where java_var java variables are declared and spent in step 1.

  • How to use a variable in a statement attachMovie?

    Hey guys.

    What I'm trying to make is simply this:

    < variable > = mvcShip

    var ship1 = _root.attachMovie (< variable > shipName + _root.getNextHighestDepth (), _root.getNextHighestDepth ());

    What I'm trying here is to the same variable in the name of an item in my library. (Im using this to use different ships in a vertical shooting game old style arcade).  The goal is to make a ship to appear on stage.

    Where < variable > is replaced by a library (for example. mvcShip) item, it works fine, but if the variable is in place, I get a value of trace of ship1 as "undefined", and the ship does not appear on the scene.

    Any help would be appreciated

    P.S. Please ask if you want to reach me the full code.

    The Flash help documents are probably your best reference to understand how various functions of coding work.  Here's the attachMovie method

    attachMovie (id:String, name:String, depth:number);

    Or more towards what you do...

    var shipName:String = "mvcEnMissile";

    var missile4 = _root.attachMovie (recipient, shipName, + _root.getNextHighestDepth (), _root.getNextHighestDepth ());

    Where mvcEnMissile is the ID of the connection that you assign to the movieclip in the library through the properties-> link options in the menu library.  mvcEnMissile is not the name of the element you that you see listed in the library, unless you have attributed to him under the name of the library and the link ID

  • How to use the variable in the coil

    How can I draw a sequence number of the database and use it in a sqlplus spool file name...
    This forum works as: sqlplus user/pass@sid@c:\file.sql

    sample file:

    BEGIN
    declare

    V_E_NUMBER varchar2 (7);

    Start

    Select "E" | LPAD (RWP. E_NUMBER_seq. NEXTVAL, 6, '0') IN THE DOUBLE V_E_NUMBER;

    end;
    end;

    Select "E" | LPAD (RWP. E_NUMBER_seq. CURRVAL, 6, '0') IN THE DOUBLE V_E_NUMBER;
    trigger the echo
    SET THE POSITION
    SET LINESIZE 430
    set verify off
    SET PAGESIZE 0
    SET TRIMSPOOL ON
    SET OFF calendar
    SET termout ON
    SET feedback OFF
    coil d:\securedASP\CORE. BU34500.AR.'|: V_E_NUMBER |'. RECEIVD
    Select * from table;
    spool off

    Hello

    Use a substitution for that variable:

    COLUMN     v_e_number     NEW_VALUE v_e
    
    SELECT   'E' || lpad ( RWP.E_NUMBER_seq.NEXTVAL
                        , 6
                   , '0'
                   )          AS V_E_NUMBER
    FROM    DUAL;
    
    SPOOL  d:\securedASP\CORE.BU34500.AR.&v_e..RECEIVD 
    

    Note that this does not at all use PL/SQL.

    The variable can be used without quoting or concatenation.
    Which can lead to situations where it is ambiguous as to which is part of the name of the variable (the variable is named ve in this example), and what is literal text that happens to come right after him. To resolve these issues, use a point to mark the end of the variable name.
    In your case, you want a literal period just after the variable name, use two: one marks the end of the name, and the other is taken literally.

    Get the SQL * most orders
    COLUMN,
    The VALUE of CONCAT, and
    SET
    For more details.

  • How to use the variable instead of the table name in the select statement of procedure

    I have a procedure with a select statement with dynamic from clause. How can I use instead of the name of the table variable.

    create or replace procedure scc_chemical_analysis
    is
    v_table_name varchar2 (100);
    Start

    declare
    cursor c1 is select * from v_table_name; -This is the variable name. How can I use it in the select statement.
    .
    .
    .
    .



    end;

    Hello

    something like that.

      1  declare
      2     vSQLString      VARCHAR2(32000);
      3  pTableName varchar2(1000):='EMP';
      4  BEGIN
      5     vSQLSTRING :=
      6  'SELECT ''x'' FROM ' || DBMS_ASSERT.sql_object_name(pTableName) || ' WHERE rownum<=1 ';
      7     EXECUTE IMMEDIATE vSQLSTRING;
      8* END;
    SQL> /
    
    PL/SQL procedure successfully completed.
    
  • How to use global variables from a dll in another (not multi-threaded)

    With LabWindows/CVI. I try to be compatible with legacy code, so this isn't the best way to do things, but it saves me some headaches.

    I have a project/.dll called "GlobalBlock" that contains some parameters used widely throughout the program. The entire program consists of several DLLs, for the purpose of encapsulation.

    GlobalBlock.c contains:

    menu_sdef G_setprefs = struct
    {
    ... stuff

    };

    sys_fileheader_sdef Level1Version = struct
    {
    ... more

    };

    struct G_sys_flags sys_flags_sdef;

    In the dll that owns the variable, use the _export on this qualifier. This will ensure that it is placed in the list of the interface dll. In the application (dll or other) that wants to make reference to that variable, use the qualifier _import on it. This tells the system to use the associated import library that comes with the dll in order to resolve references running.

    JR

  • How to use text Variables to make running footers

    I'm confused about how the text Variables behave in the creation of the execution of the footers on a pair of master page.

    My document has 3-6 steps on each page. Each step is designated by a unique character called StepName style.

    I want a running footer that has the first instance of StepName on the left page and the last instance of StepName on the right page. As in a dictionary.

    I can get the correct text to appear, but she then adds an unwanted definition (a letter from the lower level) who gives me this:

    (A) open file

    When what I want is simply this:

    Open the file

    The character Style StepName is not based on any other model.

    I've seen this fact but can't understand why I'm picking up a regime of lettering on the footer.

    -Christian

    Looks like you have a numbered list in the paragraph of your footer style.  It is part of the footer paragraph style or local form is implemented. Whatever it is, you can disable it by clicking the numbered list in the paragraph Panel or the main control panel section. Or you can change the style and slot of the lists to chips and numbered, set on any list.

  • How to use a variable to browse the XML data

    My chart has xml data that looks like this:

    < getViewResponse >

    < getViewResult >

    < DocumentElement >

    < ColumnChart >

    < month >

    "Dec".

    < NetIncome >

    1000

    < ColumnChart >

    etc.

    etc.

    the following lines in actionscript work perfectly for the table:

    resultxml = event.result.getViewResult.DocumentElement.ColumnChart as XMLList

    chart data provider

    _chartDP = new XMLListCollection (resultxml);

    The last argument of Colum graphic in DocumentElement.ColumnChart will change. I want to make this variable instead.

    I tried DocumentElement +'. ' + this. [ColumnChart] but I get an error telling me that the property does not exist.

    The following almost works:

    event.result.getViewWithTitlesResult.DocumentElement. *.

    but my card has a series of additional data empty.

    How can I adjust the latter to a variable?

    If the data that currently say you XMLList has a single point, just cast to XML with XML (myXMLLIST) or "myXMLLIST in Xml format.

    If this post answers your question or assistance, please mark it as such.

Maybe you are looking for

  • Engineering for certain song

    I just installed iTunes on my MacBook Pro 12.4. Can someone tell me how I can start the genius of a certain song. I see that I can create a playlist with suggestions of genius. But I just want to play the songs, does not save the playlist. I also fou

  • Turn off "this connection is not approved.

    I would like to disable completely the "this connection is untrusted dialog '. I am an administrator and deal with a lot of intranet sites. It is not profitable to set an exception for each site. Company standards require us to use IE or Firefox, and

  • Hebrew support for Sony walkman NWZ-E473

    Anyone know if there is no Hebrew support for this model? My kids had two of those of their grandmother and cannot use it. Everything you see is squares Thank you Lia

  • Cannot change my Yahoo to Google search engine.

    Hi all. I have a Macbook Air, mid-2013, running OS X 10.11 (el capitan). Whenever I'm meeting in (9.0.3) Safari preferences to change the default search engine, the browser never made the change from Yahoo to Google. 'Google' appears clearly as my se

  • HP-15-RO14TU-G8D94PA: USB Ports not working not

    Hello I recently bought a laptop HP 15-RO14TU in line with MS DOS. I have Windows 7 Ultimate installed on it, but since installation, the USB Ports do not work, i.e. USB devices are not recognized by the computer. The technician said that he could no