# Error #1010 re: layer name

**URL:** <https://forum.kirupa.com/t/error-1010-re-layer-name/245446>\
**Category:** flash\
**Created:** [November 29, 2007, 7:40pm UTC](https://forum.kirupa.com/t/error-1010-re-layer-name/245446 "2007-11-29T19:40:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpann](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tpann](https://forum.kirupa.com/u/tpann)\
**Post date:** [November 29, 2007, 7:40pm UTC](https://forum.kirupa.com/t/error-1010-re-layer-name/245446/1 "2007-11-29T19:40:02Z")

</div>

In a class I am loading a multi-layered movieclip (MC) that sits in the library by using its linkage (MCL):

```php
var myMc = new MCL();

```

Once I have the movieclip loaded, I want to make the “Invisible” layer invisible until later. So I use…

```php
myMc.Invisible.visible = false;

```

This results in:

[FONT=Courier New]TypeError: Error #1010: A term is undefined and has no properties.[/FONT]  
[FONT=Courier New]at MyClass/::init()[/FONT]  
[FONT=Courier New]at flash.display:DisplayObjectContainer/addChild()[/FONT]  
[FONT=Courier New]at visibleLayer\_fla::MainTimeline/visibleLayer\_fla::frame1()[/FONT]

[FONT=Courier New][FONT=Verdana]I’ve seen this work in tutorials but I cannot get it to work myself. Any suggestions?[/FONT][/FONT]

[FONT=Courier New][FONT=Verdana]Thanks![/FONT]  
[/FONT]
