I know the name of an object - how do I get the name of the object that contains it?

If I have a Movieclip, I can trace the name of the Movieclip
that contains it using the _parent property.
With a generic object, is there a way to trace the name of
the object that contains it?
Please, please tell me - this will be a huge help.
Thanks

Thanks for these comments - my problem isn't with MovieClips.
I need to know if there is something which is the generic Objects
equivalent to the MovieClips _parent property.
Here's some code that hopefully will help explain further:
class MyClass extends Object {
var myObject:Object;
function MyClass (){
myFirstObject = new Object();
myFirstObject.theParent = this;
private function getNameOfParent(p_object:Object){
// Some code to return the name of the object that contains
p_object
trace(p_object.__proto__); // Output: [object Object]
trace(p_object._parent); // Output: undefined
trace(p_object.theParent); // Output: [object Object]
return ???
public function doSomething(p_num:Number){
var parentName = getNameOfParent(myObject);
// do some more action...
Timeline code:
var myClass1 = new MyClass();
myClass1.doSomething();

Similar Messages

  • I've downloaded the Creative Cloud, once completed the creative cloud window pos up with spinning whell in center then the entire window disapears. How do I get it to remain open so that I can download programs needed.

    I've downloaded the Creative Cloud, once completed the creative cloud window pos up with spinning whell in center then the entire window disapears. How do I get it to remain open so that I can download programs needed

    right click the executable > click 'run as administrator'.

  • I would like to see all my contacts in my old outlook acount, after loading the cloud I I can only find them in the new cloud acount. How do I get them back in the old outlook acount

    I would like to see all my contacts in my old outlook acount, after loading the cloud I I can only find them in the new cloud acount. How do I get them back in the old outlook acount?

    In Outlook, export your contacts to a .pst or .csv file. Keep the exported file
    How to export contacts from Outlook for Windows.

  • HT4211 Does any one know why my air play tv icon is missing from the recents bar.. It is now on the top of the screen when I press the home button twice. How do I get it back on the bottom recents bar

    Does anyone know why the airplay TV icon has moved from the recents bar, mine has now gone to the top of the screen. How do I get it back to the recents bar?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
     Cheers, Tom

  • HT5137 I just recently purchased a ipad min. The apps-notes is giving me a problem. I can put a note in it, but the next day the note is gone. How to I get it to keep the note until I want to delete it

    I just purchased a ipad mimi a few months ago. The app-notes cancame with it  doesn;t seem to be working properly. I can enter a not, but the following day day the note is gone. How do I get a note to stay in there until I want to delete it?

    Some iPads which were subsidized by the carriers are locked to the carrier, and in that case only the carrier can authorize an unlock. You'll need to talk to Orange, and pay their fee if necessary. They may well only unlock for the original purchaser, in which case you'll need to contact the person from whom you purchased the iPad. Apple can do nothing directly in the matter, since they can only issue the unlock when the carrier provides authorization.
    Regards.

  • Using the REST API for files, how do I get information on all the folders and files in a folder?

    I have an app that can successfully get a list of a folders content. However, by default the list is limited to 200 entries. I luckily ran into this limit when getting the list on a folder that contained 226 entries and realized I needed to then request
    a list of the next items but it wasn't obvious from the REST API document how to do that. I tried sending the skipToken query parameter and setting it to 0 initially and incrementing each time I sent the request but always got the same 200 items back. So,
    how do I get the list of files and folders beyond the initial list?

    In SP2013 the skiptoken query parameter does not work with list items. You can look at the link below which discusses using the "__next" parameter.
    http://stackoverflow.com/questions/18964936/using-skip-with-the-sharepoint-2013-rest-api
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • I purchased iTunes Match and when applying it to my iPhone, it erased all my music.  I still have the library on my ipad2, how do I get it back on the iphone and share it on the cloud?

    I purchase iTunes Match.  When I applied it to my iphone5, it erased my music library.  Even when I restored my backup, the library was not there.  I still have all of the music on my ipad2.  I thought that iTunes Match would allow me to put my library of music on the new MacBook I purchased last week.  What did I do wrong and how do I get the music onto my MacBook and back onto my iphone?

    For iTunes Match to work, your music needs to be in your iTunes library on your computer.
    Read this Recover your iTunes library from your iPod or iOS device
    jim

  • I have downloaded some songs from Soundcloud and i have the 'waiting' iCloud Icon. How can i get iTunes to recognise the songs as i can do anything with the songs i.e.: put into a playlist?

    Hi
    I have downloaded 6 songs from Soundcloud.
    iCloud doesn't recognise them and i have the 'Waiting' iCloud symbol.
    How can i change those icons as i can't put any of the songs into a playlist?

    Sounds like you are trying to manually delete content from your device via iTunes. If so, you'll want to make sure your iPod is set up for manual management by enabling the Manually manage music option from under the iPod's Summary tab in iTunes.
    B-rock

  • TS1702 I cannot contact the vendor the link page is false, how do i get my money back the app doesnt work

    I bought igtalk pro in good faith but it doesnt work, i cannot see any incomming messages and when i click the links the app crashes. When you try to "report a problem" the page is all about photos and solitare and no thing even in english its a jappanise or chinese site. how do i get my money back when i went through to i tunes it said contact vendor, well i cant as no links to vendor.
    Thanks in advance.

    When you say that you went through iTunes do you mean the 'report a problem' link from your purchase history, and on that did you say that you couldn't find any support from the developer ? If not then you could try that : log into your account on your computer's iTunes via the Store > View Account menu option and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that app and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, about 24 hours).
    If the 'report a problem' link doesn't work (it's been taking some people to this site on a browser instead of showing a form in iTunes) then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page.

  • HT204053 I have two apple ID's and it's causing problems in my contacts. It repeats the same address and sometimes displays email address only but not the full contact details? How do I get my contact list the same in all my devices (iMac, iPhone & iPad (

    I have two Apple ID's and it's casing problems on my contact list as it repeats the address in somecases and in others it only displays email address for a contact. I want to have the same contact list and details on all my devices (iMac, iPhone 4S & iPad Mini)? Is it possible?

    By using 1 of the 2 ID's instead of both, choose one, move everything in the other one to the one you chose and stop using it.

  • In the New group from layers, How can I get more colors on the Folders options in Photoshop CC?

    Hola
    There is any way that I can get more or make my own colors to distinguish the folders in Photoshop CC?
    Please, let me know
    Thanks

    Daniel Ulysses wrote:
    Not good
    Hope someone knows a hidden way to make more colors…
    If you're very good at writing code and willing to hack your copy of Photoshop—but, then, if you were you wouldn't be asking here, I suppose.

  • I have an icloud account but my daughter also has an icloud account on my computer.  hers is the one that comes up.  when i try to sign her out it wants to delete the contacts and calendars.  how can i get my icloud on the computer without disrupting hers

    I have an icloud account but my daughter also has an icloud account.  We have them registered under different emails.  When I try to sign her out of icloud on the computer it wants to delete calendar and contacts.  how do i sign into my account with out messing up hers?

    You need to setup your own user account on the computer to keep independent iCloud accounts, contacts & calendars. Then sign in to your iCloud account in your user account.

  • I purchased an episode but it is only showing 30 seconds rather than the full 42 minutes. How do I get it to play the full episode as I can't seem to download it again?

    I downloaded a tv epsiode, but it doesn't show the entire 42 minutes. All I get is a clip of 30 seconds, rather than the entire 42 minute episode. I have tried to download the episode again, but it wont allow me to and I have also tried to download the series, but if I do that it wont deliver the epsiode that I already have suposedly downloaded. Anyone have any idea how to help?
    Thanks,

    Hi JAM147,
    Welcome to the Support Communities!
    The following information should help you with this:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933?viewlocale=en_US
    Cheers,
    Judy

  • Macafee is not working properly with the latest version of firefox, how can I get it to work the way it was working on the previous version?

    when browsing on google, it doesn't show the macafee safety arrow or caution, nor does it name the macafee secure sites. What happened with the new version?

    '''McAfee Site Advisor:''' https://support.mozilla.com/questions/837419
    Look for an updated version in about the 3rd week of July; hopefully they'll fix their many other errors besides, I don't think I've been able to use it since about Firefox 3.6.0 or maybe 3.6.6
    Be aware that if you currently choose to use McAfee Site Advisor it has some serious problems for Firefox users, check
    *http://kb.mozillazine.org/Problematic_extensions for some things to watch out for.
    *https://support.mozilla.com/questions/837877
    *https://community.mcafee.com/message/195191

  • How do I get routing data from the Map App (powered by TomTom) so I can display the point-to-point annotations (turn-by-turn navigation) without leaving my own application.

    I have a tableView displaying a list of contacts from a Cloud Database.  After selecting a contact, I push to a programmatically created MKMapView.  Then I display the initial region (the view) that includes the users current location (starting point) and their selected destination (end point).
    Now I want to display annotations (as described in the Location Awareness Programming Guide) that displays polylines which will represent the turn-by-turn navigation IN MY OWN APPLICATION, and not in the Map App currently used in IOS6. 
    Due to licensing and its becoming depricated in IOS 6, I do not want to get routing data from the Google Maps API.  How do I get routing data from the IOS 6 Map App (powered by TomTom) so I can display the point-to-point annotations (turn-by-turn navigation) without leaving my own application?
    I checked out Stack Overflow and other forums which basically left me with the impression that this is not possible. I also checked out the TomTom iPhone Mobile SDK User Guide from the TomTom Developer Portal and am still confused.  It must be possible to retrieve routes, since the Map App can display turn-by-turn directions.  How can I retrieve turn-by-turn data that I may display as a route within my own application?

    Thanks Michael. Apologies for the slow reply I was away for a bit (holiday blitz at work and visiting family madness etc.etc.) back now, I set both options you requested to "never " and retried the CMS software with no change. 
    I do have progress of a sort though, as a test I took a separate test PC and put a clean install of Win7 on and loaded up the CMS software (it worked perfectly) and then took the version of ole32.dll off that machine and put it onto the computer I had built
    for her (using Linux) and...
    got a new error code. Darn I was so sure I had found a clever solution this time lol.
    Anyway now when the CMS fails it gives me a similar error but the offending module is "ntdll.dll" sooo... I tried taking the "working" version of ntdll.dll from the test box and moving it over (making sure to back up the existing ones
    first so I could put them back if needed) to her new PC and the PC would not boot. 
    It seems to want the original versions of a few Dynamic Link Libraries and if I could somehow give it those while not breaking Win7 it should theoretically work seeing as it no longer errors with ole32.dll. 
    ntdll.dll however seems necessary for Win7 to boot.
    So what I am wondering now is:
    Is there some way to have both versions of the DLL file in the system32 folder (bypassing the "cannot have two files with the exact same name in the same folder" thing) or rename the original DLL's something else and somehow make the CMS look for
    the new named versions so the system has the updated DLL's it needs to boot/run and the CMS has the old ones it wants to run or is there someway to have a self contained install of the CMS, say on a USB flash drive and give it it's own E:/windows/system32/needed
    dll's  path to the files it needs? 
    Willing to try any other options or settings you may have come up with as well.
    Thanks again for your reply and my apologies for not answering sooner.

  • I have a issue with my mac book pro. For some reason it won't stay powered on. I can't get past the apple loading logo. The battery is fully charged so it is not the problem. Can anyone tell me what the problem may be and how can i get it resolved?

    I have a issue with my mac book pro. For some reason it won't stay powered on. I can't get past the apple loading logo. The battery is fully charged so it is not the problem. Can anyone tell me what the problem may be and how can i get it resolved?

    The battery is fully charged so it is not the problem.
    What happens when you use the MagSafe?

Maybe you are looking for

  • I can't get Itunes to work with windows 8.1

    I saved my ITunes file from my old XP computer to my external hard drive. On my new Win 8.1 computer I downloaded the  64 bit version of Itunes. I changed the default location of the ITune file to my D(data) drive. My C drive is solid state and I did

  • Question about File upload functionality in Weblogic

    Hi,     We're currently trying to deploy a web application on the weblogic 12c server (via war file). And the app needs to upload a text file onto the a temperary directory within weblogic server. And on the web page side, we use JQuery File upload p

  • N70 - CALLER CAN'T HEAR ME!

    Anyone experienced a problem with their N70 where you accept a call and begin to talk however after a few seconds I can no longer hear the caller. If I switch to loudspeaker mode it sometimes works ok again but not when in handset mode. Have been to

  • Complex use of private synonyms

    I need to write a create user script that sets up our database. for production this is easy, but for development and test it gest complicated. We have 1 user that contains all of our data tables. another user that has all our code and our logging dat

  • Location data not uploaded to flickr ?

    am i right in assuming that when uploading to flickr from iphoto, that the map places are not uploaded to flickr with the image ? i tested one that has been placed on the map in iphoto, but when viewing the image in flickr there is no location info o