RemoveChild() called on displayed mc to remove itself?

I have the following code that creates and displays graphics by
function called by CLICK event. Then when the user clicks on
one of the created graphics it is supposed to be removed.
function putMarker(name:String, position:Number, xPosition:Number):void
           name is selection title
           position is soundObj position
           xPostion is display object position (relative to knob position at pause point)
          var id:int = selectionMarkers.length;
          var lstId:int = selectionMarkers[id - 1].list.length;
          selectionMarkers[id] = new Object();
          selectionMarkers[id].name = name;
          //trace(selectionMarkers[id].name)
          selectionMarkers[id].list = new Array();
          selectionMarkers[id].list[lstId] = selectionMarkers[id].list[lstId]+':'+position+'|'+xPosition;;
          markers[id] = new Object()//
          markers[id].label = new TextField()
          markers[id].label.text = ''+id; // number
          markers[id].label.width = 1;
          markers[id].label.height = 1;
          markers[id].label.x = 1;        //relative to marker_mc
          markers[id].label.y = 1;
          markers[id].label.setTextFormat(markerLabelForm);
          markers[id].graph = new marker_mc()
          markers[id].graph.x = xPosition + knobmc.width/2;
          markers[id].graph.y = (slt.y + slt.height/2) - markers[id].graph.height;
          markers[id].graph.addEventListener(MouseEvent.CLICK, cutMarker); // << see below
          markers[id].graph.addChild(markers[id].label) //<< this is also questionable
          addChild(markers[id].graph);
// How would I do this? If I use remove(event.target) there error is implicit coercion of
// data types.
function cutMarker(event:MouseEvent):void
          // hide specified marker
          //trace('cutMarker')
          removeChild(this) // if I do stage.removeChild(this) the whole app is removed
         // but I just want to remove the graphic object the event is called on.
Thank you for time and attention;
JK

I am trying to remove markers[id].graph with the idea that because
markers[id].label
is markers[id].graph's child, it will also be removed.
These objects are held in global array markers, so they do not
disappear when
the function that creates them finishes running. I am thinking I may
have to loop
through this array to find the target object to remove. I am hoping
there will be
a short cut.
thank you for time and attention
JK

Similar Messages

  • No Caller Number Display since August 2014

    Caller number display ceased to function on 9th August last year.
    Since the we have been through the fault reporting process 3 times. Had an aborted (by Openreach) engineer visit and received a statement letter from BT saying they are looking in to the problem, it will take time etc etc.
    My equipment works at my neighbours house. The neighbours phone has been tried in my house and does not work. I have removed filters, unplugged everything, tried the Master Socket. None of these things works.
    It is very tough to run my business without Caller Number Display.
    Can it be fixed???
    If I switch to another provider will Caller Number Display then work??
    Help!

    Hi Unclenorm,
    Welcome to the community forum. I am sorry to hear that you are having problems with the Caller Display. I'll be able to take a look at this for you. Please can you send me in your details using the "Contact The Mods" link found in my profile.
    Thanks
    PaddyB
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Calling and displaying BAPI  values when the initial view is displayed

    hi Gurus,
    I am creating an application where I am calling a BAPI.
    Now my problem is that the values should be called and displayed when I am starting the application ie in the first view itself.
    Is there any way to execute the BAPI so as to retrieve the values from back end and get the values displayed in the initial screen/view.
    Or else is there any onPageLoad method which can be used in such cases.
    please help me how to go ahead.
    Thanks and regards,
    kris

    Hi
    Create a method in controller and insert the code,
    wdContext.current<BAPI>Element().modelObject().execute();
    And call the method in view, and check the size of BAPI's output node.If it is greater than 0, your BAPI is returning something. using any loop and get the Output
    Saravanan K

  • How to stop the call summary display on home screen?

    How to stop the call summary display on home screen?

    Here are the solutions I can think of (if no one here responds with something better):
    1. Open Settings and then Phone within the Settings screen and see if you can find a setting there for the call summary. The Phone submenu under Settings would be the most likely place.
    2. Open Settings on your iPhone and go through each item including all of the items within each main item. Within about 10 minutes you should be able to get through all of the settings and find the setting if it exists on your phone. There is no such setting on my phone but it is possible that Airtel has a custom menu with that.
    3. If you still haven't found it, you could check a) Airtel's support site and/or b) an Airtel specific forum.
    4. If still no luck, I would call Airtel and ask again and if you get the same response ask for the location of the setting (or to speak to someone who can tell you).
    Good luck.

  • MacBook Pro with Retina Display Wakes Up By Itself

    My MacBook Pro with Retina display wakes up by itself on battery sometime with reason "EC.PME (User)".
    Any idea what is that? and what causes it?
    Regards
    Andrew

    I have had my new rMBP 13" do this twice over the last 2 weeks. its only 3 weeks old. Take it out of my bag after closing the lid and putting it to sleep to find the screen blank and the fans running at full blast. only way to stop it is to hold the power key down till it re-boots. I would like to know why this is happening too.
    Macbook Pro Retina, 13 inch, Early 2013 model.
    regards
    Tony

  • Full screen caller image display

    Full Screen Caller image was one of the best feature of an iPhone that made look iPhone simpler and fantastic to use..
    This particular feature seems to have been last with the upgrade to iOS 7.1..
    Please fix this issue..
    Full screen caller image display makes the phone look beautiful and wonderful when a known person is calling

    I agree with you on  the full screen view for when a users contacts call them. I hesitated upgrading, Apple has now joined the ranks for screw-ups! Since the late  Steve Jobs left this earth, Tim Cook has royally screwed-up this company! Customers here in th U.S and arouund the world are the ones shelling out hundreds of dollars for a product that is the best next thing to revoluntionize the way we communicate with others. But it seems that $600+ dollars gets us junk and a device not tailored to us, the users. I want to call them "M!cr0$oft Apples!" Give us the ability to go back to iOS6. Let us choose! We the customers have made this company rich, full of wealth beyond their greedy little hands. Give us the ability to choose what OS we want to install. Their should be a transparency relationship between the customer with the money, and worker who will work for us to render a product that we "the users," want" and not want a senior desinger assumes we think is good. Remember, this is all thanks to a legend who we all know and respect as ("in my own opinion), the father of modern communication Steve Jobs. SJ worked till his last days here to creat a masterpiece, T.C came on board and took a huge "memoryDUMP," and disregarded his visions. If your passionate like me about Apple and what Steve Jobs stood for, then  help me create a petition to make this company see that we "The customers are ALWAYS right!"
    Missing and need back:
    Transparency on the dock and icons
    Working Wifi, and imessage
    Better Battery life!!!
    Reverse the icons back to iOS7.06
    Fix maps
    Unless the designers are gothic in nature (I love Goth!!); dont make our phone dark and heavy on the fonts.
    I dont know about you, but I' am tired of hearing excuses from Apple and its CEO!
    PRETTY MUCH, REVERSE THE UPDATE OR WE WANT OUR MONEY BACK!
    As th general public alredy knows, Apple will never listen or read these suggestions" They sleep soundly in thier 2.5millon homes, and respectively. Why care about those people that are paying thier salary pretty much! Listen up board of directors.....Fire Tim Cook, Hire a go-getter, Micromanage manic that will continue Mr. Jobs legacy and nip this disaster in the bud!  Tweet this, FB this! Let make the world realize we will not take it anymore! Fix the dam problems!

  • Calling a Script Object after remove instance index[0]

         I have created a LiveCycle document that has a repeatable subform as url linked below. The form will not let me call a Script Object after removing an instance at index[0]. Regardless of the number of instances remaining. I use a script object to show and hide buttons. Adding an instance is not a problem. What to do?
    Script on Delete Subform Button (Error):
    xfa.form.recalculate(1);
    this.resolveNode('fifteenSubform._CorrectiveActionWrapper').removeInstance(this.parent.ind ex);
    if (xfa.host.version < 8) {
    //deleteing a [0] index seems to create a problem for executing the function in this Script Object
    SOremove.fxremove();
    https://files.acrobat.com/a/preview/03389d79-9020-45d9-ba4f-fb4cbdc21f77

    Hi,
    What seems to happen when you remove a form object that has code that is currently executing is that it can't find the next line.  You might want to put all your code in the script object.
    so in the click event you have;
    SOremove.fxremove(this);
    Then your script object will start
    function fxremove(button) {
        button.resolveNode('fifteenSubform._CorrectiveActionWrapper').removeInstance(button.parent.index);
        if (xfa.host.version < 8) {
            xfa.form.recalculate(1);
        console.println("The SOremove.fxremove fired");
    Regards
    Bruce

  • Call and display Xcelsius SWF file from an SAP Transaction

    Hello Experts ,
                          Could you please suggest if it is possible to Call and display Xcelsius SWF file
    from an SAP Transaction and if Yes how can this be achieved.
    Regards ,
    Jerin.

    Jerin,
    It is possible to embed a Xcelsius model into an SAP WebTemplate (Anil promised to write a blog about this very soon). After that you can include the WebTemplate in the GUI menu, Role menu or Portal.
    Henk.

  • Flash pushed via GPO, but is now removing itself!

    All of a sudden we are having systems that Flash is removing itself and I can't figure out why!  Everything has been working just fine.  We push Flash down through Group Policy and it's been working without problems.  But all of a sudden we are seeing systems where Flash is removing itself for no apparent reason.
    Nothing has changed.  No settings have changed.  People that have gotten it successfully via GPO and have had it working just fine are all of a sudden having it removed and left with nothing installed.  Does anyone have any idea as to why it would be doing this?
    Here are the log files from one of the system in succession...maybe someone here can make heads or tails of it???
    "Application Adobe Flash Player 10.1 Plugin from policy GPO Install Flash Player is an upgrade of application Adobe Flash Player 10 Plugin from policy GPO Install Flash Player and will cause the assignment of application Adobe Flash Player 10 Plugin to be removed."
    "The removal of the assignment of application Adobe Flash Player 10 Plugin from policy GPO Install Flash Player succeeded."
    "The assignment of application Adobe Flash Player 10.1 ActiveX from policy GPO Install Flash Player succeeded."
    "The assignment of application Adobe Flash Player 10.1 Plugin from policy GPO Install Flash Player succeeded."
    "Product: Adobe Flash Player 10 Plugin -- Error 2753.The File 'FP_PL_MSI_INSTALLER.exe' is not marked for installation."
    "The install of application Adobe Flash Player 10.1 Plugin from policy GPO Install Flash Player failed.  The error was : Fatal error during installation."
    "The removal of the assignment of application Adobe Flash Player 10.1 Plugin from policy GPO Install Flash Player succeeded."
    "Application Adobe Flash Player 10.1 Plugin from policy GPO Install Flash Player was configured to upgrade application Adobe Flash Player 10 Plugin from policy GPO Install Flash Player.  The assignment or  install of the upgrade application Adobe Flash Player 10.1 Plugin from policy GPO Install Flash Player failed with error : Fatal error during installation.   The upgrade will be aborted."
    "The assignment of application Adobe Flash Player 10 Plugin from policy GPO Install Flash Player succeeded."
    These entries all happened pretty much at the same time.  Now granted, I'm no GPO guru.  I inherited this system and it was my predecessor that set this all up.  But I've checked all the settings and everything seems fine and like I said, nothing has changed.  As a matter of fact, I just setup a couple of new systems and it got pushed down to them just fine. 
    Help!!!

    Hello again, It sounds like it is working so far, I hope it stays that way. I wonder if the Anti-Virus had an update that day that that happened. It was so sudden, something triggered that action, may not know what. It was strange since that didn't happen when you Installed, if it was going to happen.
    Let's hope there are no more problems.
    Thanks for posting back.
    eidnolb

  • CLID - Forwarded Call Information Display

    All of the phones below are 79xx phones within the same cluster, same partitions and with the same CSSes.
    Phone A forwards all of his calls to Phone C.
    Phone B calls Phone A, but sees the alerting name and extension for Phone C on his display.
    Under the line configuration, Forwarded Call Information Display, the only items checked are Caller Name and Dialed Number. How can I get Phone B to see Phone A's information even though Phone A is forwarded to Phone C?
    Thanks,
    Tim

    I dont think that is possible,
    I tried it to using a Translation Pattern.
    and I was only able to restrict it but not to change it.
    Afaik Originator IP Phone will use SCCP CallInfo message and will display the contents of:
    calledPartyName=
    calledParty=
    field after a CallState callState=3
    HTH
    //G

  • OnNet CLID - Forwarded Call Information Display

    All of the phones below are 79xx phones within the same cluster, same partitions and with the same CSSes.
    Phone A forwards all of his calls to Phone C.
    Phone B calls Phone A, but sees the alerting name and extension for Phone C on his display.
    Under the line configuration, Forwarded Call Information Display, the only items checked are Caller Name and Dialed Number. How can I get Phone B to see Phone A's information even though Phone A is forwarded to Phone C?
    Thanks,
    Tim

    for 4.13 SR3C, there is no option for manipulating the CLID information during a Call Forward between IP Phone calls.
    if you have an IP Phone call through a QSig gateway (ISDN), then there are parameters in the 'service parameters' section of ccmAdmin that can be set.
    (this does not seem like the case in your environment)
    to make this work in your environment, you'll have to setup the phone C with the alerting/numbers you want displayed to phone A, when it calls phone B while cfwd'd to phone C.
    (not a real good solution and not recommended for obvious reasons)

  • In my i phone 4s when i call the display moves or shrinks like a vibrate

    In my i phone 4s when i call the display moves or shrinks like a vibrate

    Have you contacted your carrier?
    Who is your carrier and where are you?
    Is your carrier on this list? http://support.apple.com/kb/ht1937

  • Call Connected displays after call termination

    Two or three times during the day, after hanging up from a call, the call does not terminate. "call connected" displays, yet no one is there, nor was there an accidental dial. The only way I have found to actually terminate the call is to pull the battery. I have no incoming nor outgoing calling capabilities until the reboot is complete.

    Hello megohm64,
    Welcome to the BlackBerry Support Community Forums.
    To correct this particular issue i would recommend backing up the BlackBerry Smartphone and then performing a security wipe.
    To back up the BlackBerry Smartphone, please open the BlackBerry Desktop Manager and connect your device. Click on the Backup and Restore options and select Back Up. Please note the location where the backup is being saved as we will need to access it later to restore the BlackBerry Smartphone.
    Once you have backed up your BlackBerry Smartphone please follow the link below to complete a security wipe.
    Link: http://www.blackberry.com/btsc/KB14058
    Once the device is wiped please test to make sure it is working correctly and then complete a selective restore of your BlackBerry Smartphone. Below is the link on how it is done.
    Link: http://www.blackberry.com/btsc/KB10339
    Thanks
    -DrP
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • Nokia 5800 XM Caller ID Display

    Hi
    I have a Nokia 5800 XM and have noticed that on the caller ID display, when making, receiving or whilst on the call, the display shows the Name and Number of the contact who is called/calling. Is there any way which I can change this so that the caller ID only displays the Name of the contact calling as opposed to both?
    I've been though the settings, scanned through the user guide and can't find any reference to this...
    Any help would be much appreciated.
    Regards
    younusb

    Sorry, I did not observe it in my earlier phones as in all, it must be set to display both...
    I think, there is no such option on Nokia 5800 (shame!!!).. but you may try some 3rd party Caller ID applications which may give you what you want... just Google for it..
    If you  are successful, pl. post your feedback here...
    --------------------------------------------------​--------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

  • Cisco Cube outgoing calls only display the sip-ua number

    Hi all,
    just configure a cisco cube. Incoming and outgoing calls working fine till now.
    Just facing an issue by outgoing calls. Any call will display the sip-ua registered number.
    Is there any possibility to send the invite with the calling extension number to the provider ?
    Trace:
    Sent:
    INVITE sip:XXXXXX0705430@REGISTRAR:5060 SIP/2.0
    Via: SIP/2.0/UDP IPADR:5060;branch=z9hG4bK1A26DC42
    From: <sip:XXXXX8650@REGISTRAR>;tag=610A3424-23E3
    To: <sip:XXXXXX0705430@REGISTRAR>
    Date: Tue, 01 Apr 2014 13:06:20 GMT
    Call-ID: 407F52E0-B8D511E3-AFC2A60F-9EF8485@IPADR
    Supported: 100rel,timer,resource-priority,replaces,sdp-anat
    Min-SE:  1800
    Cisco-Guid: 1082006160-3100971491-2948376079-0166691973
    User-Agent: Cisco-SIPGateway/IOS-15.2.4.M4
    Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
    CSeq: 102 INVITE
    Timestamp: 1396357580
    Contact: <sip:XXXX8650@IPADR:5060>
    Expires: 180
    Allow-Events: telephone-event
    Proxy-Authorization: Digest
    username="XXXXX656",realm="sipserver",uri="sip:CALLED NUMBER@REGISTRAR:5060",response="76585ce198a4e979b49506b0ea6c515e",nonce="533abaa600015524028af19f6845968088c38fe616a3cdba",algorithm=md5
    This number will the called party see on the phone screen ->
    Max-Forwards: 69
    P-Preferred-Identity: "Test NextiraO" <sip:XXXXX8650@IPADR>
    Session-Expires:  1800;refresher=uac
    Content-Type: application/sdp
    Content-Disposition: session;handling=required
    Content-Length: 253
    Any hint?!
    Thanks
    Stefan

    Duplicate posts.  
    Go here:  http://supportforums.cisco.com/discussion/12160936/cisco-cube-outgoing-calls-only-display-sip-ua-number

Maybe you are looking for

  • Scrolling down a pdf with the down arrow key ...

    Hello, I have a 20 page newsletter pdf with about 12 articles. At the top of the first page there's our text logo, and just below it is a table of contents compiled using table of contents styles (btw this pdf was compiled in Indesign 5.5) and just b

  • Can a GSS respond with a different IP if a target server is down?

    This is my first GSS and I have read the Cisco Administration guide so please take pity on me. I don't have any CRA or VIP devices on my network , so is it possible to have the GSS return one IP address if the target device is up and another IP addre

  • N95-2 Song List Refresh Failure

    Initial attempts to transfer a few songs from my PC using Nokia music manager to my new N95-2 were successful. I have now transferred 700 songs (the files can be viewed and played using file manager) but when I refresh the song list it doesn't seem a

  • Please help me restore my ipod touch!

    Why can't I restore my ipod touch 2g? I have deleted most of my things on my ipod too.

  • Wireless driver for Lucid Puppy

    I am new to Linux and I have been trying out a few things to get more familiar with it.   A total newbie!!! I just downloaded Lucid Puppy to a flash drive and tried it out on my X200.  I quite like it.  It boots directly from the flash drive.  Just w