# Referencing a movieclip within an attached movieclip

**URL:** <https://forum.kirupa.com/t/referencing-a-movieclip-within-an-attached-movieclip/208543>\
**Category:** flash\
**Created:** [November 29, 2006, 9:33pm UTC](https://forum.kirupa.com/t/referencing-a-movieclip-within-an-attached-movieclip/208543 "2006-11-29T21:33:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerahn](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@aerahn](https://forum.kirupa.com/u/aerahn)\
**Post date:** [November 29, 2006, 9:33pm UTC](https://forum.kirupa.com/t/referencing-a-movieclip-within-an-attached-movieclip/208543/1 "2006-11-29T21:33:21Z")

</div>

Hello,  
I am trying to reference a movieclip within a movieclip that I am loading using “attachmovie”. In the first frame of the root, I am attaching the movie. Then, from the attached movie I am calling a function that is also in the first frame of the root.  
In the function I am tring to set the property of a clip within the attached movie to visible using the following code:

\_root.logIn.loginMessage.\_visible = true;

I have also tried \_root[“logIn”].loginMessage.\_visible = true; with no luck.

(logIn is the name of the clip I am attaching using attachMovie and loginMessage is the clip I am trying to reference in the attached movie)

This is how I’m loading it and I know that part is working:  
\_root.attachMovie(“login\_mc”,“logIn”,getNextHighestDepth());

Any suggestions?
