pass the name of symbol instance variable

Hi all

I'm trying to find a way to pass the instance name (ID) of an object selected in a variable, so I can navigate on a label on the timeline of the same name.

So far, I tried different variations of:

sym.getSymbol () //logs as "not defined".

sym.getSymbolTypeName / / stores the name of the symbol in the library, not to the instance

Any ideas?

Thank you

-Dave

Hi David,

You can use "e.target.id" on your button click event to get div id of the button.

Alert (e.Target.ID);

The weird thing only is that it seems to add "Stage_" value, so if your div button is called "myButton", the foregoing will alert you "Stage_myButton".

Tags: Edge Animate

Similar Questions

  • Best way to pass the name of the e/s DAQmx channel Veristand 2011 Custom Device?

    I'm building a custom device that will run a DAQmx task on the target of RT.

    I use VS2011 and alsoSimple custom device tool, which, at this point I'm not sure if it can work under VS2011...

    I created the fine libraries and custom device (a PWM input called InputPWM) has added to the Explorer from the system.  Running it returns the following error when I deploy:

    -----------

    LabVIEW: Type VI reference is not part of connector of VI.
    =========================
    NEITHER VeriStand: Open VI reference in Custom Devices Storage.lvlib-> pen device reference (Interface HW) .vi-> Custom Devices Storage.lvlib:Initialize Device (Interface HW) .vi OR VeriStand Engine.lvlib:Initialize Inline Custom Devices.vi-> NI VeriStand Engine.lvlib:VeriStand Machine.vi engine-> Engine.vi NI VeriStand Engine.lvlib:VeriStand-> NI VeriStand Engine.lvlib:VeriStand .vi engine Wrapper (RT)
    c:\NI-rt\VeriStand\Custom Devices\InputPWM\InputPWM Engine.llb\InputPWM RT pilot VI.vi

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

    On the console, it says that the error is 1026, LabVIEW: Refernece VI is not valid.

    I suspect that a potential problem is that I used a DAQmx e/s in the Configuration.ctl and the InputPWM RT pilot VI.vi in the framework can not deal with this type. So my questions:

    -What is the easiest way to pass the names of e/s to the custom device? For a quick test, I could go to hard code, but a more generic solution would also. Should be based on the address for the e/s MAX? Do I have to create the ctr under the DAQ hardware in VS?

    - or said by the way, is there a way to review these screw frame to see where the questions is, as you would with LV - RT?

    THX.

    L.

    If you use the tool of easy custom device, just put everything you need inside the cluster configuration data and these data will be in the home page of the custom (for the user to set) device and be available at runtime in the RT device custom code.

    You could have them type the name of the DAQ card and have an array of names for the channels to use. You then create the task running. or something like that. You like.

  • How can I get the name of an instance of the applied effect?

    We have a plug-in effects after (written using the SDK), and we would like to get the name of an instance of an effect applied. For example, if my name of the installed effect is "FoofooBerry", and the customer applied two effects of FoofooBerry, it would be named "FoofooBerry" and the other named "FoofooBerry 2".

    In the documentation, it is said:


    «To get the name of the instance of the effect (as renamed by the user), get the AEGP_StreamRef for the effect itself and call AEGP_GetStreamName.»

    Which seems to be what I want to do, but how we "get the AEGP_StreamRef for the effect itself" escapes me.

    I have tried iterating over all flow on the effect and control of these devices, but I don't see anything useful. Someone knows how to get the ref to flow for effect (not a stream on this effect)?

    I also asked this question on StackOverflow, but unsurprisingly, had no luck (not a bunch of AE experts out there).

    Thank you.

    Hey,.

    You can do this for examlpe of this way:

    get plugin_id with AEGP_RegisterWithAEGP, if you probably already know how to

    then

    AEGP_GetNewEffectForEffect

    AEGP_GetNewEffectStreamByIndex, say for the parameter index 1

    AEGP_GetNewParentStreamRef

    AEGP_GetStreamName

    AEGP_LockMemHandle - This is your wchar_t instance name!

    welcome them

  • How to pass the name of the last target?

    var lastItem:string;

    If (lastItem! = e.currentTarget.name) {}

    Menu1.lastItem.gotoAndPlay ("S2");

    }

    lastItem is e.currentTarget.name;

    He doesn't like me using the string lastItem for the value of the previous currentTarget.name.

    How to pass the name of the last target?

    Yeh getChildByName returns a display object you need to perform a cast like this

    MovieClip (myMovieclip.getChildByName ("lastItem")) .gotoAndPlay (xx);

  • Droping a table from within a procedure by passing the name of the Table as an Argument

    HII All

    I want to remove a table from a procedure dynamically passing the table name as a parameter of a procedure manual

    to do this, I wrote the following procedure

    CREATE OR REPLACE PROCEDURE DEL_TAB (TAB_NAME IN VARCHAR2) AS

    V_TAB_NAME VARCHAR2 (10);

    V_STMT VARCHAR2 (50);

    BEGIN

    V_TAB_NAME: = TABLE_NAME;

    V_STMT: = 'DROP TABLE' | V_TAB_NAME;

    RUN IMMEDIATELY 'V_STMT ';

    DBMS_OUTPUT. PUT_LINE(V_TAB_NAME||) e TABLE DELETED ');

    END DEL_TAB;

    but whenever I'm execute it gives me an error

    ERROR on line 1:

    ORA-06550: line 1, column 15:

    PLS-00357: Table, view or sequence of reference 'A' not allowed in this context

    ORA-06550: line 1, column 7:

    PL/SQL: Statement ignored

    Please tell me the solution...

    Thanks in advance

    Alisson

    Why do you want to implement this procedure? If you want to remove a table just issue the DROP of stand-alone statement. Why write a procedure for this? Also you must understand the difference between REMOVE and DROP in the context of RDBMS. You either use them which is incorrect. DELETION is to remove rows from a table and DROP is to remove the database table.

    And with regard to your problem

    > RUN IMMEDIATELY 'V_STMT ';

    This should be

    immediately run v_stmt;

    You closed the V_STMT variable is in single quotes. You must remove the apostrophes.

  • Cannot delete the created dynamically symbol Instance

    Hi all

    I have a symbol instance called from the library using this trigger:

    stopAll var = sym.getComposition () .getStage ().getSymbol("comb").getChildSymbols ();

    for (var i = 0; I < stopAll.length; i ++) / / returns the number of direct children

    stopAll [i] .stop (); / / create an instance of a symbol as a child element of the

    var chromo1 = $(sym.createChildSymbol_("Peak1_1",_"Stage").getSymbolElement ());

    chromo1. CSS ({marginLeft:175, marginTop: 500});

    Correctly, it stops all the symbols within a main symbol of the game and sets the "Peak1_1" symbol instance on the stage.

    Then, in the symbol that was instantiated ("Peak1_1"), I have a button symbol 'CloseChromo1' with the following

    var startAll = sym.getComposition () .getStage ().getSymbol("comb").getChildSymbols ();

    for (var i = 0; i < startAll.length; i ++)

    startAll [i] () .play;

    sym.getComposition () .getStage () .sym. $("Peak1_1") .remove ();

    The first three lines work and effectively restart the child symbols stopped.

    The fourth line, which should eliminate the instantiated scene symbol does not work. I've tried doing the name of the instance ("chromo1"), and hide using the GetSymbolElement, which does not work. I tried to use deleteSymbol() and referring to the tree of any symbol, from the level of Composition and it does not work. I tried all possible variants, I can think of, including SEO by children and their parents – still no joy.

    What I am doing wrong?

    Thanks in advance for any help!

    Matt

    I thought about it:

    You use the symbol should be deleted in as parameter for the deleteSymbol() method, as follows:

    sym.deleteSymbol ("Peak1_1");

    I wish JavaScriptAPI had examples documentation more and better!

    Thank you, resdesign, for your help.

  • Change the names of symbols button

    I created a gas stove

    Touch n and four instances of which also touches on the navigation and have created cartoons for all buttons.  I have

    am not able to change the text name for four instances to the names that will be used for browsing the site.  I know it must be a simple solution, but I'm stuck.  Help please!

    Ok. I've recreated your buttons as symbols of button. You will be able to edit the images as you wish by clicking on one of them to open it in the Editor button to bydouble. To change the text on the buttons, click it, and then update the text in the text editing box n the property inspector. You can download the editable via this link.

    http://www.playingwithfire.com/Page_Template_6-25-10_2.PNG

  • Passing the name of dynamic file to ODI nterface for treatment to another system

    Hello

    I need assistance in regard to passing a dynamically changing name fixed length flat file in Interface ODI. This interface is designed to take the flat file as input and treat it to SQL Server using data mapping and transformations... The entrance to flat file name is generated for example sequence: OEORD1123.txt and the next file will be OEORD1124.txt and it is located at the Oracle Conc level. How to pass the last ODI interface for processing file name

    Kind regards
    Anil...

    Hi Anil,

    To get a dynamic name to a file (or any data store) comes to a variable ODI in the name of the resource in the data store.

    My understanding... Where did the name come from? A sequence of database?

    If so, just put in the variable created as a query "select 'OEORD ' | your_sequence.nextval | ".txt".

    That make up the name of the file.

    No sense?

  • Select the symbol on the artboard and copy the name of symbol on behalf of the Board of Directors art

    I'm generating icons in AI CS6

    I have files WITH 100 work plans

    Some Arts Councils are still empty, just underway.

    On the artboard, I gross and paths on a separate layer called symbols with a symbol only.

    The symbol layer could be the layer is visible.

    100 symbols in the document.

    Now, I want to copy these names for the names of art Council for export and a text box on the art map for an overview of printing.

    I found a script to rename a layer in its content - but it does not recognize the symbols

    I found a script to rename a work plan in a layer

    I found a script to place a text box with the name of Council of art on the art map.

    I can't combine them, please help!

    I can make applescript and Filemaker scripts, but I'm new to Javascript.

    Rename the layer to the content - does not recognize symbols!

    function LayerNameMatch() {}

    If (app.documents.length == 0) {}

    Alert ("No. Open/Active Document Found");

    } else {}

    var doc, i, l, ab, salt, n;

    doc = app.activeDocument;

    for (i = 0, l = doc.artboards.length; i < l; i ++) {}

    AB = doc.artboards [i];

    doc.artboards.setActiveArtboardIndex (i);

    doc.selectObjectsOnActiveArtboard ();

    Salt = doc.selection [0];

    sel.parent.Name = sel.name;

    doc. Selection = false;

    }

    }

    }

    LayerNameMatch();

    Work plan and rename the layer name:

    If (app.documents.length == 0) {}

    Alert ("No. Open/Active Document Found");

    } else {}

    var doc = app.activeDocument;

    If (doc.artboards.length == doc.layers.length & & doc.layers.length == doc.artboards.length) {}

    for (var i = 0, l = doc.artboards.length; i < l; i ++) {}

    var ab = doc.artboards [i];

    AB. Name = doc.layers [i] .name;

    }

    Alert ("completed: \nRenaming work plans to match the names of layers is finished");

    } else {}

    Alert ("OPPS: it won't work!") \n the number of layers and work plans do not match");

    }

    }

    Make a Textbox containing the name of art Council

    This script takes the names of artboard to a document and print them in each work plan.

    Tell the script to operate only on the document open and targeted

    myDocument var = app.activeDocument;

    IDoc var = app.activeDocument;

    ilayer var = idoc.layers.add ();

    ILayer.Name = "0 SeitenName";

    STEP 1: create labels for each work plan

    Grab a hold of work plans

    for (var i = 0; i < app.activeDocument.artboards.length; i ++)

    {

    Board graph var = app.activeDocument.artboards [i];

    For each work plan, add a new text block

    myLabel var = myDocument.textFrames.add ();

     

    fill it with the name of the artboard

    myLabel.contents = artboard.name;

    This line controls the font size

    myLabel.textRange.characterAttributes.size = 12;

    This line positions the text against each work plan

    myLabel.position = [artboard.artboardRect [0], artboard.artboardRect [1]];

    }

    You can use this:

    #target illustrator
    function test(){
        var doc = app.activeDocument;
        doc.selection = null;
        for(var i=0; i		   
  • Getting the name of symbol

    What is the syntax to retrieve the name of the symbol that was clicked on? So far, no action:

    $sym.symbolName

    $sym.name

    $sym.getAttribute ("name");

    e.Target.Name

    e.target.symbolName

    I can get a very good e.target.id, but it's a mixture of identifiers generated edge and my symbol name.

    So, I added 2 files. Now, the record is finished.

    You can the browser from a jQuery for a solution of edge API code.

    Attached file: https://www.box.com/s/p352j29ve2mohh12w21n

  • How to pass the name of the Table as an argument in Stored Proc

    Hello
    I have a condition in which the name of the table must be passed as an argument of MS and the output should be the County of this table based on certain conditions to filter.

    Something like this:

    create or replace procedure Testing (p_table varchar2, p_count OUT integer) AS
    Start
    Select count (1) in the p_count of p_table;
    end;
    /

    Get the error on execution of code above:
    PL/SQL: ORA-00942: table or view does not exist

    Please let me how can know we do this?

    Thank you.

    Just add the where clause in the statement...

    What about spending ten minutes of reading literature?

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2009/12/31/estrarre-i-dati-in-formato-xml-seconda-parte/]

  • The AM pool and instance variables

    Hi all

    A question for you...

    Q: can I use Application Module Impl instance Variables conditionally execute a method?

    I have an AMImpl method that is exposed in the client interface. I want to call this method under certain conditions.
    This method must not be performed more than once in a user session.
    So once the method is executed, then I can put a value to the variable instance true [If type = Boolean, "run" = TRUE].
    So next time when the user press the same button {say... or any other UI events..} to run this method even, so I can check the value of the instance variable
    If that's true I re - will not run.


    Basically, value of the instance variable persists between two requests for user {events UI} of the user interface.


    But this approach is correct... ?


    Q. every time, will benefit from the same user in the same instance of the application module pool request module... ?

    A: I hope that the answer is no user can get not get the same instance of AM each time. But if the user gets a new instance of AOS 'unreferenced' then, this instance will be reactivated with the data
    who should have passive when the user has lost the first instance of AOS. If the user gets all return in this second AM e.g. Passivate1-> Activate2 mechanism


    Now... We can think of this instance variable persists more than two applications for different user... ?
    Only items passive {your, sight lines, bind variable etc.} will persist on the user queries... sacred... ?
    But variable instance AM isn't passive. We cannot use the instance variable to avoid several of my method execution.
    If I get a new instance of AM, then the value of the instance variable could have reset as that was not earlier passive.

    I hope that until now everything is fine...


    Now... Can I use class variables to avoid several execution of my method... ?
    That is, instead of instance variable... can I use a static variable...?
    So all instances of AM in AM pool, will have the same value as the variable of class... ?

    Is it OK... ? Or am I wrong anywhere... ?

    Can some one please clarify...

    Thank you very much
    AFA

    AFA,

    I thought that all instances of AM are having the same class type. The values of static variables would be the same for them.

    We lose how these values while the passivation. ? >
    your assumption about static variables is not correct if you run the application on a single server. The framework is able to run the application on a cluster of multiple computers. So if you set a static variable in the application it is defined only on one machine.
    This is the reason why you should not use static variables in a module of the application. You get a lot of side effects in a production environment, you will not be able to debug.
    Again, do not use static variables in an app module.

    You can use instance variables in the module of your application, but you must the passivate yourself (same is true for activation). That's what the doc is talking about. It gives you just an example of how do in an average backup.

    If you are using 11g you can use the shared application modules, which are used to load the data once and use these data in any other module app. You cannot change the data in the shared module, it's only for search data.

    If you really need the global variables, your best option is to write in a special db table, use EO and VO to access.

    Timo

  • How to pass the name of the image of the road?

    I searched for this in several places but can't find the answer. In the library and develop modules, the name of the image and metadata are obscuring the image. How can I move and get rid of them?

    While the cycles of 'I', "Ctrl + I" stops instantly.

    Dorin,

    not the Switzerland.

  • passing the name of the context variable ODI

    Hello

    I get the current execution context and move to a variable of the ODI. I tried to use < % = odiRef.getContext ("CTX_NAME") % > in the variable. But make a mistake during execution.

    Error: ODI-1228: nom_du_contexte (Variable) of the task fails when you connect target DSS_STAGING.
    Caused by: java.sql.SQLException: parameter IN or OUT to missing index: 1
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
    at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1737)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3430)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java:602)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.execStdOrders(SnpSessTaskSqlV.java:118)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2805)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTaskTrt(SnpSessTaskSqlV.java:224)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java:204)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:322)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:237)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:794)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:662)

    Can someone help me how to get the context of name in the variable... Thanks in advance

    Published by: siva June 21, 2011 17:00

    Hello

    The refreshment of your variable, logic no matter what DBMS and whose education refresh like: -.

    Select '<%=odiRef.getContext("CTX_NAME")%> '. "double

    above is for Oracle.

    Make sure you have the variable of data type as "text".

    See you soon

    BOS

    Published by: Bos June 21, 2011 12:35

  • Pass the name of the table to report dynamically?

    I'm looking for any method any table name for a sql statement through an independent written report.

    a short example:
    I'm trying to create a report that lets me select a column in a table - time (column and table) should be provided in time, the report is run.
    Of course, something like
    select :column
    from :table
    does not work; the error is ORA-01745.

    Is someone know a method to pass a string to the variable in the SQL before the cursor created?

    You cannot use LIE in FROM apparently, although I am struggling to find that explicitly in the DOCs, then you need to use & or & in your query of dynamic report OF clauses.

Maybe you are looking for