# Is there any reason this shouldn't work?

**URL:** https://forum.kirupa.com/t/is-there-any-reason-this-shouldnt-work/200772
**Category:** flash
**Created:** [September 15, 2006, 12:28am UTC](https://forum.kirupa.com/t/is-there-any-reason-this-shouldnt-work/200772 "2006-09-15T00:28:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Flaevo](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@Flaevo](https://forum.kirupa.com/u/Flaevo)
#### Post date: [September 15, 2006, 12:28am UTC](https://forum.kirupa.com/t/is-there-any-reason-this-shouldnt-work/200772/1 "2006-09-15T00:28:57Z")

</div>

```auto

if (itemType == "file") {
			trace("Is File");
			mc_File._visible = true;
			trace("mc_File vis: "+mc_File._visible);
		}

```

It is tracing “Is File” and then “mc\_File vis: undefined”;

This code is inside a ContentItem.as class script and it works the first time but not the second?
