# \_parent, \_root ? help with targeting

**URL:** <https://forum.kirupa.com/t/-parent--root-help-with-targeting/203579>\
**Category:** Uncategorized\
**Created:** [October 12, 2006, 5:42am UTC](https://forum.kirupa.com/t/-parent--root-help-with-targeting/203579 "2006-10-12T05:42:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![emacksey](https://avatars.discourse-cdn.com/v4/letter/e/43a26b/32.png) [@emacksey](https://forum.kirupa.com/u/emacksey)\
**Post date:** [October 12, 2006, 5:42am UTC](https://forum.kirupa.com/t/-parent--root-help-with-targeting/203579/1 "2006-10-12T05:42:10Z")

</div>

Hello. I need some help with targeting a MC inside a MC.  
I got the nested mc buttons to work but can’t seem to get the parent MC to work.  
Any help would be great. Thanks also here is the fla.

```
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#808080]*/*--------------Main Header (Parent)---------------------*/*[/COLOR]

```

[COLOR=#0000FF]\_parent[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#0000FF]onRollOver[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]\_parent[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#0000FF]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000FF]updateAfterEvent[/COLOR]COLOR=#000000[/COLOR];

[COLOR=#000000]}[/COLOR]

[COLOR=#0000FF]\_parent[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#0000FF]onRollOut[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]\_parent[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#0000FF]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000FF]updateAfterEvent[/COLOR]COLOR=#000000[/COLOR];

[COLOR=#000000]}[/COLOR]

[COLOR=#0000FF]\_parent[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#0000FF]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]\_parent[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#0000FF]gotoAndStop[/COLOR]COLOR=#000000[/COLOR];

[COLOR=#000000]}[/COLOR]

[COLOR=#808080]_/_--------------Photographers Button (Child)------------_/_[/COLOR]

[COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#000080]B\_photo[/COLOR].[COLOR=#0000FF]onRollOver[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#000080]B\_photo[/COLOR].[COLOR=#0000FF]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000FF]updateAfterEvent[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]

```
[COLOR=#0000FF]_root[/COLOR].[COLOR=#000080]Header_mc[/COLOR].[COLOR=#000080]B_photo[/COLOR].[COLOR=#0000FF]onRollOut[/COLOR] = [COLOR=#000000] **function** [/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]_root[/COLOR].[COLOR=#000080]Header_mc[/COLOR].[COLOR=#000080]B_photo[/COLOR].[COLOR=#0000FF]gotoAndPlay[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]"_out"[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#0000FF]updateAfterEvent[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];

```

[COLOR=#000000]}[/COLOR]

[COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#000080]B\_photo[/COLOR].[COLOR=#0000FF]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
B\_photo.[COLOR=#0000FF]getURL[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]“[http://www.macromedia.com](http://www.macromedia.com)”[/COLOR], [COLOR=#FF0000]"\_parent"[/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#000000]}[/COLOR]

[COLOR=#808080]_/_--------------Contact Button (Child)---------------------_/_[/COLOR]

[COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#000080]B\_Contact[/COLOR].[COLOR=#0000FF]onRollOver[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#000080]B\_Contact[/COLOR].[COLOR=#0000FF]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000FF]updateAfterEvent[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]

```
[COLOR=#0000FF]_root[/COLOR].[COLOR=#000080]Header_mc[/COLOR].[COLOR=#000080]B_Contact[/COLOR].[COLOR=#0000FF]onRollOut[/COLOR] = [COLOR=#000000] **function** [/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]_root[/COLOR].[COLOR=#000080]B_Contact[/COLOR].[COLOR=#0000FF]gotoAndPlay[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]"_out"[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#0000FF]updateAfterEvent[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];

```

[COLOR=#000000]}[/COLOR]

[COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]Header\_mc[/COLOR].[COLOR=#000080]B\_Contact[/COLOR].[COLOR=#0000FF]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
B\_Contact.[COLOR=#0000FF]getURL[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]“[http://www.macromedia.com](http://www.macromedia.com)”[/COLOR], [COLOR=#FF0000]"\_parent"[/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]
