# Target movieclip with e.target

**URL:** <https://forum.kirupa.com/t/target-movieclip-with-e-target/313448>\
**Category:** Uncategorized\
**Created:** [August 30, 2010, 9:43pm UTC](https://forum.kirupa.com/t/target-movieclip-with-e-target/313448 "2010-08-30T21:43:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phastings](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@phastings](https://forum.kirupa.com/u/phastings)\
**Post date:** [August 30, 2010, 9:43pm UTC](https://forum.kirupa.com/t/target-movieclip-with-e-target/313448/1 "2010-08-30T21:43:25Z")

</div>

i have a movieclip which is added to the stage:

var profileholder:profileHolder=new profileHolder ;

inside of profileholder is another movieclip(infoBtn) that acts as a button.

when the mouse is over profileholder i want to do something with infoBtn like:

//profOver is the over state of profileholder  
function profOver(e:Event) {  
e.target.infoBtn.alpha=1;  
}

this doesn’t work and brings up this error:  
ReferenceError: Error #1069: Property infoBtn not found on flash.display.Loader and there is no default value.  
at main\_fla::MainTimeline/profOver()

i also tried:  
function profOver(e:Event) {  
var item:profileHolder=e.target as profileHolder;  
item.infoBtn.alpha=1;  
}

and get this error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
