Child doesn't see his parent

Hi,
I don't know if I am confusing something.
I have the base class main.as. From there I do
addChild(child);
First thing the child does is
trace ("Parent: " + MovieClip(parent));
and it always gives me null. How can this be? It actually works to launch public functions via MovieClip(parent).function(); but I can't access other public variables. For example I have a public Boolean variable. And I need to check it from the child. If I do
trace("Boolean: " + MovieClip(parent).b_boolean) it simply shows me TypeError: Error #1009: Cannot access a property or method of a null object reference. How can this be? There must be a way to check a parent's public variable, right? I don't understand.
Please, if anyone knows what is going on, explain.
Greatings,
GDdept

yes, you should use the addedtostage event.  in your child class:
//in the constructor:
this.addEventListener(Event.ADDED_TO_STAGE,init);
//outside the constructor:
private function init(e:Event):void{
trace(this.parent,this.stage,this.root);
p.s.  please mark helpful/correct responses.

Similar Messages

  • Child DC cannot Replicate to Parent DC, because of connection errors. MS PortQryUI shows that ports 3268 and 3269 are not listening,

    I started a support case with Microsoft to help me with raising the our domain Forest level because i received a message stating that there were Windows 2000 PDC still listed in the database. These PDCs were removed years ago. The tech saw all of the problems
    i was having with domain replication so that is where he started. running the MS PortQryUI shows that ports 3268 and 3269 are not listening, (TCP port 3268 (unknown service): NOT LISTENING) when run FROM a Child domain controller against the Parent
    Domain controller. Between the 2 Child domain controllers these ports are listening.
    The Windows firewall is not running on any of the controllers, i removed a virus protect client from all of the servers, although i didn't enable the firewall there either, but these ports are still not listening on the Parent DC.
    I need help debugging this. I am not very familiar with network sniffers so if i need to run one i'll need some guidance. This DC only has one NIC, all IP addresses are static, all servers are setup like this. All servers are in the same subnet, on the same
    lan, on the same cisco switch, there shouldn't be anything blocking this port from starting.
    I looked over other post that show this same problem, but they don't give a solution. If i am not using the Windows firewall why wouldn't these ports be open?
    Any ideas? web searches are all over the map on trying to find the reason for this.
    Bobby

    Try running the below command on the DCs that you think have the ports blocked or all the DCs.
    netdiag /test:ipsec /debug > c:\dcname-ipseclog.log
    Open that from the C drive and see if there is anything saying block or filters. 
    Also, just for kicks have you disabled the firewall service on the DCs? 
    And just for kicks have you tried enabling firewalls ports on all the DCs?  The KB is below
    http://support.microsoft.com/kb/555381/en-us
    Step 1 - netdiag results
    Step 2 - disable the firewall service on all DCs if step 1 was negative
    Step 3 - enable the firewalls on all DCs per KB 555381 if step 2 doesn't work
    Let us know how it goes!
    If it answered your question, remember to “Mark as Answer”.
    If you found this post helpful, please “Vote as Helpful”.
    Postings are provided “AS IS” with no warranties, and confers no rights.
    Active Directory: Ultimate Reading Collection

  • TS1544 I am the administrator of my MacBook Pro, which I share with my kids. One of them forgot his password, so as the admin I changed it for his account, but  when I try to see his account, it says I need to provide the keychain password. How can i get

    I am the administrator of my MacBook Pro, which I share with my kids. One of them forgot his password, so as the admin I changed it for his account, but  when I try to see his account, it says I need to provide the keychain password. How can i get it? I have no idea how to sort this out...

    First, make sure caps lock is not on.
    You must back up all data before continuing, unless you've already done so. If you need to back up but can't log in, ask for instructions.
    If the user account is associated with an Apple ID, and you know the Apple ID password, then maybe the Apple ID can be used to reset your user account password.
    Otherwise*, boot into Recovery mode. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window opens.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select
     ▹ Restart
    from the menu bar.
    You should now be able to log in with the new password, but your Keychain will be reset (empty.) If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it.
    *Note: If you've activated FileVault, this procedure doesn't apply. Follow instead the instructions on this page:
    If you forget the password and FileVault is on

  • One-to-Many:  New child not showing up when parent retrieved

    I have a one to many relationship. The parent contains a collection of children in a arraylist.
    A new child record is added independent of the parent, via a uow.
    The parent is retrieved.
    The new child doesn't show up.
    So the question is Does the parent first have to be retrieved and the child added to the parent. The child is not and should not be privately owned. The child is not dependent. If the parent goes away the child should still exist.

    "This last part" (as you describe it) is necessary. In a nutshell, you manage the object model (including both directions of a bi-directional relationship) and TopLink updates the database accordingly.
    This usually isn't a big issue. I.e., if you have a "addB(ClassB b)" method that looks like this, then you don't have to worry about managing the whole relationship all over the place:
    public void addB(ClassB b){
    bs.add(b);
    b.setA(this);
    At commit time the cache and database should be updated properly when you add a "b" to an "a".
    I have seen cases where the developer actually ended up not mapping the 1-M relationship in the model and had a "virtual" 1-M relationship. They would add a target to the "virtual" 1-M as you describe (just set the owner, i.e., tell the "b" it belongs to a particular "a". Then, they created a QueryKey in the Mapping Workbench in the Class "A" called "bs". Then they could build expressions and queries using "anyOf" through the "bs", even though it wasn't really mapped! I guess the point is that if you don't want to have to maintain that collection in code, and if it's not used in the application, then don't map it! Just create a QueryKey from A to B so that you can build the expressions as if it was there.
    - Don

  • IE6 child div expands width of parent div

    I have a problem that has been vexing me...hopefully someone can answer it.
    I want to have a child div expand to overlap the div next to it. It is for a calendar so that all day events that stretch for multiple days can stretch over and cover multiple days.
    In IE6, the child div expands the width of the parent div and wrecks my display. The "proper" way that FF, Safari, and IE 7 & 8 do is that the child div will overlay the parent. The parent div's width remains unchanged, no matter what the width of the child is. IE6 incorrectly expands the width of the parent div to match that of the child div.
    I've set up a small example so you can see the difference. Check it out in FF and then in IE 6. Notice that in IE6 the "parent" div is too wide. In FF it looks fine.
    Any way to get IE6 to behave like FF in this case?
    Thanks!
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Div Test</title>
    <style type="text/css">
    <!--
    .parent {
         width: 200px;
         background-color: #FFC;
         border: 1px solid #000;
         float: left;
    .child {
         width: 300px;
         background-color: #CAEDFF;
         border: 1px solid #000;
         z-index: 20;
         position: relative;
    -->
    </style>
    </head>
    <body>
        <div class="parent">
        Parent Content
        </div>
        <div class="parent">
        Parent Content
        </div>
        <br>
        <br>
        <div class="parent">
          <div class="child">Child Content</div>
        </div>
        <div class="parent">
        Parent Content
        </div>
    </body>
    </html>

    I see now you posted your code.  Thanks.
    For best cross browser results, the floated container needs to be wide enough to accomodate everything inside it. Some browsers will resize others won't.   For another approach see my code.  This uses a disjointed rollover method.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Div Test</title>
    <style type="text/css">
    .parent {
         padding: 8px;
         width: 200px;
         background-color: #FFC;
         border: 1px solid #000;
         float: left;
    /**formerly know as .child**/
    .parent a span {
         width: 300px;
         padding: 10px;
         background-color: #CAEDFF;
         border: 1px solid #000;
         position:absolute;
         top:55px; /**adjust as required**/
         left:55px; /**adjust as required**/
         display:block;
         visibility:hidden;
    .parent a:hover span,
    .parent a:active span,
    .parent a:focus span {visibility:visible}
    .parent a:hover,
    .parent a:active,
    .parent a:focus {text-decoration:none; visibility:visible;}
    </style>
    </head>
    <body>
    <div class="parent">
    <p>Parent content</p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis purus. </p>
    <a href="http://alt-web.com/DEMOS/CSS-Disjointed-Text-Rollover.shtml">Link to Child Layer<span>Child Content renamed to <strong>.parent span</strong>.  Content inside the span tag is absolutely positioned. <br>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis purus.</span></a>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis purus. </p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis purus. </p>
    </div> <!--end parent -->
    </body>
    </html>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • ITunes doesn't see new iPod nano and creates 'iPod' folders on the Desktop

    My mom got a new 5th Gen Nano. When it is connected to my parents' iMac (G5 with built in iSight running Leopard), iTunes doesn't see it. The strange thing is that the iPod itself goes through the normal synching procedures about every 30 seconds, and every time it happens, it creates a new 'iPod' folder on the desktop. The really strange thing is that each folder is actually a mounted volume that cannot be ejected and the only way to remove them is to reboot the system. Right now, there are 11 of those folders on the desktop (I am connected via screen sharing in iChat.
    Any idea what to do about this one?
    jorj

    So, I found out how to fix this issue. In "My Computer" right click on the iPod and format it. I chose to format it using FAT and Default allocation size. After that, I opened iTunes and it recognized my iPod Shuffle. It said it wasn't formatted properly but gave me the option to restore it to factory defaults which fixed everything. Way to go Self. Thank you. You're Welcome

  • GetURL spawned new window doesn't have a parent

    I have a Flash application that is opening a new window via
    getURL.
    getURL("
    http://www.microsoft.com",
    "EMMWindow");
    The new window has a link that triggers a javascript that
    attempts to redirect the parent window via
    opener.location.href='x';
    However, when that javascript is called, it returns an error
    that shows that the opener is undefined - e.g., the window that was
    opened is effectively an orphan - it doesn't know its parent.
    Is this an issue with getURL or am I doing something wrong?
    Any help would be appreciated.

    I think this is an html/javascript issue. I don't think
    GetURL is not going to create a child window, just a plane ole
    window, so there is no opener associated with it. That window would
    have to have been opened by the other window and named EMMWindow
    before getURL filled it up with something.
    You may have to communicate via javascript to get the page to
    open the window as an opener.
    Of course, I could be wrong.

  • My grandad has a 1st edition iPad and when he tries to download certain apps it says he needs at least iOS 5? Shouldn't this be updated automatically? Or can this be updated another way? I haven't been to see his iPad so he may not be looking properly???

    My grandad has a 1st edition iPad and when he tries to download certain apps it says he needs at least iOS 5? Shouldn't this be updated automatically? Or can this be updated another way? I haven't been to see his iPad so he may not be looking properly??? Any helpers???

    The iOS version is not updated automatically, though if he connects it to his computer's iTunes (if it's a recent enough version) he should be prompted as to whether he wants to update.
    He should connect the iPad to his computer's iTunes and copy any purchases off the iPad to his computer via File > Transfer Purchases. He may also want to copy photos and any important documents off the iPad as well e.g. via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via wifi, email, dropbox etc - they should be included in the backup, but it's best to have a copy of them outside of the backup just in case. He can then force a backup of the iPad by right-clicking the iPad 'Device' on the left-hand side of iTunes and selecting 'Backup'.
    He can then start the update by selecting the iPad on the left-hand side of iTunes, and on the Summary tab on the right-hand side clicking the Check For Updates button
    Updating to iOS 5+ : http://support.apple.com/kb/HT4972
    His iPad should update to iOS 5.1.1 (which is the only version that is 'signed' by Apple for the iPad 1, it doesn't support iOS 6).

  • Exchange 2013 on-premises doesn't see Exchange Online profile pictures

    Hello!
    We are on an hybrid deployment with some users on Exchange 2013 on-premises and others on Exchange Online (Office 365 E3 plan). We have enabled photo sync (PhotosEnabled attribute) in the organization relationship, both on-premises and online, but while
    Exchange Online users can see all profile pictures, Exchange on-premises can see only on-premises pictures.
    It also looks like that online users can see only a low resolution version of on-premises users' pictures.
    Do you have any idea how to troubleshoot or fix this, please?
    Thanks!

    ... but Exchange Online doesn't copy his his-res photo to online AD. This would explain why on-premises users cannot see online photos, but vice versa works...
    Hi,
    Generally, if you upload a hi-res photo in Exchange Online,  Exchange will automatically create a 48 pixel by 48 pixel version of that photo and update the user's thumbnailPhoto attribute. Note, however, that the reverse is not true: if
    you manually update the thumbnailPhoto attribute in Active Directory, the photo in the user's Exchange 2013 mailbox will not automatically be updated.
    Therefore, the user photo would be read by the following method in order:
    1. The higher-resolution photo which is cached to 648 pixels by 648 pixels in Exchange Online\2013 used for Lync 2013.
    2. The higher-resolution photo which is cached to 96 pixels by 96 pixels in Exchange Online\2013 used for OWA, Outlook and Lync 2013.
    3. The low-resolution photo which is stored in the user’s ThumbnailPhoto attribute in Active Directory.
    In your scenario, please upload a higher-resolution photo in OWA (Settings > Options > account > Edit information > photo > change) for a test Exchange Online user, wait for the photo updates in Exchange and AD. Then check whether this photo
    can be viewed by other Exchange Online users and Exchange 2013 users.
    Regards,
    Winnie Liang
    TechNet Community Support

  • How can a parent restrict a child's access to a PARENT'S PRE-EXSISTING iTunes account via iCloud's Family Sharing Program?

    How can a parent restrict a child's access to a PARENT'S PRE-EXSISTING iTunes account via iCloud's Family Sharing Program?  To explain further... I have a young son who is on my iCloud family sharing program... I am excited to be able to share SOME of my music in my iTunes library, but there are some songs and music videos that are not age appropriate for him and currently there is no way to restrict him from viewing and downloading anything off of my iTunes library.  Yes, I suppose I can delete the songs he shouldn't have access to, but I don't think I should have to do that... I paid for them and still like them and listen to them while I work out or am without my kids.  Is there a way for me to personally select which songs/videos I would like to "hide" from my children in an effort to shield them from inappropriate content?

    Hello ggg39,
    Welcome to the Apple Support Communities!
    I understand that you have some content in your iTunes library that you would like to restrict access for the child set up on Family Sharing with you. To do this, you can set restrictions on the child’s device as described in the attached article. 
    Family Sharing - Apple Support
    Now kids under 13 can have their own Apple IDs. As a parent or legal guardian, the family organizer can create an Apple ID for a child and add the child to the family group automatically. Ask to Buy is turned on by default, and the organizer can also limit the content kids have access to on their devices through Restrictions on an iOS device or parental controls in OS X and iTunes.
    For more information on restrictions and how to set them up, please reference the next attached article. 
    About Restrictions (parental controls) on iPhone, iPad, and iPod touch - Apple Support
    Have a great day,
    Joe

  • I have a big problem! My ipod touch is stuck! it won't open, all I see when I open it is the itunes icon with a USB cable and an arrow! What can I do? I've tried connectingit with itunes, but itunes doesn't see it. plus i have windows 8

    Can't connect my ipod toch to itunes!!! It doesn't see it! I use windows 8, don't know if that's the problem. Anyways, my ipod is stuck! Every time I open it, it stays stuck with the image of a USB cable with an arrow pointing towards an itunes icon. but whatever I do, my computer doesn't see it, and neither does itunes. What to do???!!!

    The the remaining items of the following, you may have to let the battery fully drain.
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • I am trying to share calendars with my husband (using Google calendars). He can see my calendars, but I am having trouble seeing his. We both use iPhones.

    I am trying to share calendars with my husband (using Google calendars). He can see my calendars, but I am having trouble seeing his. We both use iPhones. We both have company email addresses. I have had to install and uninstall my gmail info on my iPhone multiple times due to errors sending and receiving emails from my company email address on my phone. For some reason, all of my emails are getting stuck in my outbox when my gmail account is installed on my phone. When I delete it, my emails get sent automatically. This is really annoying! I would do without the gmail account, but I need to share calendars with my husband. How do I fix this?

    If you have two-step verification turned on in your email account, you'll have to log in with a browser and turn it off.

  • PSE 12 for Mac doesn't see my scanner

    PSE12 for Mac refused to work with my scanner. In preferences I checked "Additional Plug-Ins Folder" and selected the Optional Plug-Ins Folder which contains the TWAIN.plugin. I restarted the PSE and the File> Import... command remains dimmed out. Tried resstarting the iMac and PSE still doesn't see the scanner. PSE 11 used to recognize the scanner right away. I hope this isn't a permanent change in PSE 12!
    Thanks for any help!
    OS X 10.8.5
    Canon 8800F Scanner
    TWAIN.plugin v12.0.4x001

    Hi Barbara - I reinstalled PSE 11 on my iMac and verified that it still works with the Canon 8800F scanner. I also installed PSE 12 on my Macbook Air, moved the Twain plug into the right spot, and found that it doesn't see the scanner either. Preview on the Macbook does see the scanner OK so it's not a connection problem there either.
    I noticed that the Twain plugins in PSE 11 and 12 are the same version but different sizes. The get info windows for the two versions of PSE on the iMac (Kahawalu) and the PSE 12 on the Airbook (Niumalu) are below. Would you be able to let me know the PSE 12 Twain file version and file size that is working with your Canon scanner? It might help narrow this thing down.
    Thanks again for your assistance!  William

  • HT201274 I have my brothers icloud account on my ipad and i want my icloud account back I have all my games from my acount but I can see his massages notes etc how can I get my icloud account back I tried so many things please help .???

    I have my brothers icloud account on my ipad and i want my icloud account back I have all my games from my acount but I can see his massages notes etc how can I get my icloud account back I tried so many things please help .???

    go to settings and sign out his apple id in the sections i tell you:
    1.game center
    2.itunes and appstore
    3.messages
    4.icloud(delete acount;it wont realy delete it will only remove from your ipad)
    5.facetime
    and then enter your icloud in each and every section

  • I have prepared a book on iPhoto, ready to buy book. There is amessage above about half the pages that says "drag photo to place in background" as if it doesn't see the picture there. Its a MAC 08X  10.6.8 and iPhoto '08 7.1.5. I have made iBooks before b

    I have prepared an 82 page book on iPhoto, ready to buy. There is a message over about half the photos saying "drag photo to place in background" as if it doesn't see the photo already there. I have spent over 20 hours getting to this point and can't bear to start over! Its a Mac 08X 10.6.8 and iPhoto 08  7.1.5. I have made other iBooks on this software and computer with no problems. Help please!

    Look for a page that has a similar layout:
    The one photo per page layout is the easiest to miss. Just click on a background color to remove the problem.
    OT

Maybe you are looking for