# Naming questions

**URL:** <https://forum.kirupa.com/t/naming-questions/58750>\
**Category:** Uncategorized\
**Created:** [July 25, 2004, 10:23pm UTC](https://forum.kirupa.com/t/naming-questions/58750 "2004-07-25T22:23:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![2nd\_day](https://avatars.discourse-cdn.com/v4/letter/2/a4c791/32.png) [@2nd\_day](https://forum.kirupa.com/u/2nd_day)\
**Post date:** [July 25, 2004, 10:23pm UTC](https://forum.kirupa.com/t/naming-questions/58750/1 "2004-07-25T22:23:43Z")

</div>

i’ve this function

```auto

function change(i, k) {
 setProperty(k, _visible, false);
 setProperty(i, _visible, true);
 setProperty(i, _alpha, 10);
 i.onEnterFrame = function(){
  trace(boe);
  this._alpha = alpha;
  alpha +=2;
  if(alpha > 99){
   delete this.onEnterFrame;
  }
 }
 _root.clicked = i;
}

```

but it won’t execute the i.onEnterFrame. the var i I gave when i call the function is “\_root.menu.sub0” (WITH quotes);  
why doesn’t my function work?
