How to get symbol ID in Edge

I have some codes like this:
function myFunc(name) {
     var $symbol = sym.$(name);
     //I want to do something with $symbol depending on their id, for example
     //$item.appendTo($symbol);
     //so $item will append to the corresponding symbol
for (var i=0; i<10; i++) {
     var symbol = sym.createChildSymbol("MySymbol", sym.$(Stage"));
     myFunc(symbol.getSymbolElement().attr('id')); <--not working
I tried .attr('id') and it seems not the id I want. Thanks for help.
EDIT: indeed I want to get the selector inside myFunc

Hello Davide,
So i rewrite an effective code be cause i was wrong this morning.
joel_pau wrote:
How to get symbol id? sym.lookupSelector()
Creating a rectangle on Stage, sym.lookupSelector("Rectangle") returns "#Stage_Rectangle".
sym.lookupSelector("oneSymbol") returns symbol id.
Now: for (var i=0; i<10; i++) { var symbol = sym.createChildSymbol("MySymbol", "Stage")); };
So, ten children have been created.
sym.lookupSelector(symbol[0]) returns first child id.
sym.lookupSelector(symbol[9]) returns last child id.
You can write:
$( sym.lookupSelector(symbol[0]) ).hide();
or
$( sym.lookupSelector(symbol[9]) ).css(...)
for (var i=0; i<10; i++) {
            var mySymbol = sym.createChildSymbol("rect", "Stage");
            mySymbol.$("Text").html("child #"+i);
            mySymbol.$("idText").html("rectangle ID = "+mySymbol.lookupSelector("Text"));
            mySymbol.$("idRectangle").html("text ID = "+mySymbol.lookupSelector("Rectangle"));
var symbolChildren = sym.getChildSymbols();
symbolChildren[1].$("Rectangle").css("background-color","red");
symbolChildren[2].getSymbolElement().hide(5000);// ==> display:none
symbolChildren[5].getSymbolElement().css("visibility","hidden");//place is empty
console.log(symbolChildren[3].getSymbolElement().attr('id'));
==> attachments.

Similar Messages

  • Anyone know how to get out of the edge program?

    I dropped my old phone in the toilet and it was not time for an upgrade. Therefore, I went to the get a phone under the Edge Program. I specifically asked the rep at the store if I could go back to two year contract after I paid off the 50% of the program and he said yes. I hate this program. I only did it because I needed a phone and was not due an upgrade.  Now I understand that the only way I can get out of the Edge Program is to pay off the entire balance of the phone...which is outrageous. I no longer want to pay monthly installments. I want to pay a one time 2-year upgrade fee and start a new contract. It is my understanding my only choice is to pay off the entire edge or return the phone to Edge up. Problem is my phone has a small crack that I didn't realize was there until my son told me about it.  If you look at the phone normal you don't see it but if you look at it from an angle you can see the crack.
    I only want to get out of Edge. I will have paid off 50% by January and want to go back to a normal 2-year agreement...but I do not want to return the phone although I will if I have to, that is if they will take it back with a crack.  Otherwise, I would need to pay the insurance to get a new phone and then turn it in. This still cost me money. I am contemplating just paying off the rest of the balance and then maybe it will say I can get a new two-year contract, like it does for the other phones on my account.
    I have been a verizon customer way back when it was called Bell Atlantic Mobile and you would think they could do something for me since I have been a good customer all these years.  I don't want to leave because I have four other phones and a tablet with Verizon but I will if I have too. I would obviously go to AT&T. 
    Does anyone, maybe a verizon rep, have any options for me?

    rellis64 wrote:
    ... I only want to get out of Edge. I will have paid off 50% by January and want to go back to a normal 2-year agreement...but I do not want to return the phone although I will if I have to, that is if they will take it back with a crack. 
    Does anyone, maybe a verizon rep, have any options for me?
    I'm not a Verizon rep, just another customer like you. EDGE is a payment plan, or Rent to Own, or a lease program if you intend to keep upgrading.  If you want off the EDGE program, you can pay off the total balance due on the phone and keep it, and then you can start a new two year contract with a different phone. 
    In order to return the phone at the 50% point, and be done with EDGE, the phone has to be in good working condition.  The crack means it's not in good condition, so you will be charged the full price, whether you plan to EDGE up or go contract.  Either way, you'll end up paying for the EDGE phone, over time or in a lump sum.  It was one way to get a new phone when you were not eligible for the discounted price on your previous phone, but you need to fulfill that obligation before you can get another discounted phone.
    Do you want a new phone/different phone?  Look at eBay or swappa, or check with your friends who may have something you can borrow.  Or simply keep using the EDGE phone until it's paid for, then look at options at that time.

  • How to get symbol slpmprodstab defined in library file libclntsh.so

    Hi, all,
    I encountered "refrenced symbol slpmprodstab can not find "problem. How can I get it defined.
    I use "symfind" command and find the following information:
    [12849] | 0| 0|NOTY |GLOB |0 |UNDEF |slpmprodstab
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ./lib/libclntsh.so
    I use "genclntsh" command and also can not make sense for this problem.
    Thanks,
    Cathy

    In AS3 you want to use the URLVariables class.  Search Google using "AS3 URLVariables tutorial" and you should find what you need to get going.  Here's one result from that search...
    http://www.metah.ch/blog/2008/01/using-urlvariables/

  • Working with inline images: How to get them to the edge of the page.

    I'm making an epub and unfortunatly that means inline images. The thing is i want the images to go right to the very edge of the pages and nto have like a 2cm gap from all the edges. I have tried moving the margins however thhe image still remains firmly in the center of the page. Can I change this as it is really annoying me? Thanks .

    I tried and found that you have to in Page Setup choose a paper size that is borderless. in view menu click on Show Layout. You will get a grey border on the"paper". That is the part you printer can write on. I thin this could be the problem. If you have a borderless version choose it. I don't do ePub so I can't check if this the solution for you.
    Borderless version                                                                                            Border

  • How can i get the every rising edge's time value with usb 6212 counter continues acquisition

    i have a usb 6212,and now i can get every pluse 'period ,frequency。 
    i want to know how to get the every rising edge's time point value by DAQmx Counter.
    thx

    As you already know YouTube doesn't play in the background, that's why I wasted my time trying to give you an alternative.

  • Funny symbol & how to get rid of it

    I was working with text a while ago. All is ok. Then suddenly, I don't know how it happen, when I press "T" and start to click on an area where I will put a text, a funny symbol like the one below starts to appear.
    Can anyone tell me what caused this symbol to appear and how to get rid of it? I tried looking at google but I don't know how to type in that kind of symbol. Also, the symbol can't be copied. Thanks!

    Go to Type>Show Hidden Characters to deselect that option, and the "funny symbol" should go away. It's a pilcrow, or paragraph mark, that's ordinarily invisible.
    Peter

  • How to get line in Line chart to go to edge / border of graph

    Post Author: brutschm
    CA Forum: Charts and Graphs
    How to get line in Line chart to go to edge / border of graph?
    I've seen this before but can't remember how to do it now. I'm using Crystal Reports XI
    Thanks,
    Brandon

    Post Author: V361
    CA Forum: Charts and Graphs
    Not sure if this is what you are looking for.
    Group X Axis setings, uncheck the Value axis crosses Between Groups.

  • How to get report symbol in cube

    Hi Experts,
    In one of my cube not showing report symbol (only for new request) so how to get the report symbol.
    Regards,
    Siva

    Hi there,
    Do you see the status of the request as green (green icon)?
    If so, but still don't see the report symbol, that's because you probably have aggregates in that InfoCube that you haven't done the roll up.
    Therefore, go to the tab Rollup and in the request ID make sure you have that last request (you can click F4 and choose it) after that click on execute. You'll have to wait the roll up is finished (can control it under transaction sm37) and afterwords your request will be ready for reporting.
    Diogo.

  • How to get a coloured bar at the edge of a video

    Hi,
    I have a very funny few minutes of video of a family event that I am using for the closing moments of home movie. Unfortunately, my idiot cousin is in the background "flicking the bird to the camera" the entire time. Fortunately, she is near the edge of the screen so I have an idea how to "remove" her but I do not know how to do it.
    My idea is to to put a black (or any colour, really) bar across the edge of the screen and I can have the credits appear there.
    However, I do not know how to get a coloured bar to appear over part of a video.
    Can anybody help?
    Regards

    NeddySeagoon wrote:
    .. My idea is to to put a black (or any colour, really) bar across the edge of the screen and I can have the credits appear there.
    Can anybody help?
    why not cropping the video.. ?
    • click on clip
    • click on crop-tool
    • crop/Zoom-in .. => cousin gone, away, digital nirvana ..

  • Using the warp tool I'm stabilizing  my video and getting rid of the edge artifacts. Analyizing is clear on how long the process will take, but when it stabilizes I only get three moving dots. I there a way to know when the process will stop? Thanks.

    I am using the warp tool to stabilize my video and get rid of the edge artifacts.  The program is very clear about how long it will take to analyze, but there is nothing about how long the stabilization will take nor when I know when it is complete.   Thanks ahead of time.

    Warp Stabilising is a two part process.
    Analysis and Stabilising.
    Both have a banner across the Program Monitor during the process ( unless you have turned that off.
    Analysis start automatically on forst application...but you can rock in there and start adjusting the parameters.
    You may need to hit "Analyse" Button again.
    You should see the number of frames and the estimated duration during this process.

  • How to get an edge animate to loop continuously

    How to get an edge animate to loop continuously

    Please check the search feature on the forums - plenty of results there.

  • How to get pound sterling symbol on spanish keyboard?

    how to get pound sterling symbol on spanish keyboard?

    Depends which Spanish layout;
    Spanish - alt + 9 (alt is opt or ⌥ on some keyboards).
    Spanish ISO - shift + alt + 4.
    You can find all these using keyboard viewer;
    System Preferences > Language and Text > Input Sources tab. Top of the left column, tick (check) "Keyboard and Character Viewer", Bottom of window next to search field, tick "Show input menu in menu bar"
    System Preferences > Keyboard > Keyboard tab; tick "show keyboard and character viewers in menu bar"
    Hold down the alt key and the alternative symbols and diacritics will be shown. Shift + alt shows more.
    The input sources menu in Language and text allows you to select  whatever keyboard you want.
    Message was edited by: noondaywitch

  • Portege R400: How to get notification on edge display about new mails, meetings in Vista

    How do I get email notification on edge display about new mails, meetings etc? Under control panel -> Windows SlideShow it says for inbox and calendar Not Compatible!!!
    Thank You
    Windows Vista
    Office 2007

    Hello Raimonds
    Respect my friend. You have already this new beauty. Can you please tell me how much you have paid for it? Are you satisfied with it?
    I really do not believe that many forum members have this brand new notebook and you will be very lucky if someone can offer some assistance. Have you already checked userss manuals? Maybe you can find there explanation how it works with small Toshiba's organic light emitting diode (OLED) "Edge Display".
    I just know that this small display shows email and calendar notifications, and must be synchronized with your email client. It will even continue to update when the unit is in sleep mode

  • How to get animate edge to interact with my web content

    Hello and good day,
    I will like to know how to get animate edge to interact with my web content or DOM.
    Am creating my own cms and also i created an image  slider.
    i know how to integrate it to dreamweaver but now i will like to the animate slider to change images when a new image is added to my cms..

    There is  no direct way out of edge animate.
    You could export a OAM from Animate and import that into DreamWeaver CC which has a direct way of Hosting sites

  • A lock logo with an arrow encircling it has appeared besides the battery percentage symbol in my iphone 4s. What does that mean and how to get rid of it ?

    a lock logo with an arrow encircling it has appeared besides the battery percentage symbol in my iphone 4s. What does that mean and how to get rid of it ?

    Its the screen orientation lock, and is covered in the User Guide.
    Double-tap the home button, swipe to the right on the dock area and tap the left-most icon.

Maybe you are looking for

  • How long should it take to recover from a invalid feed?

    I posted the 2nd edition of my Podcast Sunday night, the 16th, at about 9:30 P.M. local time. Unfortunately, I'd just updated my version of podPress, a WordPress plug-in that handles publishing Podcasts for me, and I'd failed to read the directions p

  • Video iChat on my iMac is not working

    Video iChat on my iMac is not working. The i chat buddies screen is up all right.  I can see my buddies' pictures on the screen.  But I can't start the video iChat.  It worked fine for a few years...suddendly it does not work???

  • 1099 law change for 2012

    In the US, changes are coming to the requirements for 1099 reporting - basically any vendor paid more than $600 in a year needs to be given a 1099; no payments without first knowing the vendor's SSN/TIN, some address rules, etc. This means huge numbe

  • Application Integrator - Access Denied

    Hi, I am trying to integrate my existing J2EE application into the EP using App Integrator..following instructions from this link. Integrating your Web Front-ends into the SAP Enterprise Portal using the Application Integrator After clicking on the T

  • Caching Realm: enable only for positive answer

    Hi, can anyone give me an idea if it is possible to enable the caching realm only for positive answers and not for negative? Just setting the ttl for negative does not seem to work: weblogic.security.realm.cache.user.ttl.negative=0 However, if this i