# onRollover wont work using freeTransform by senocular

**URL:** https://forum.kirupa.com/t/onrollover-wont-work-using-freetransform-by-senocular/207890
**Category:** flash
**Created:** [November 22, 2006, 2:24pm UTC](https://forum.kirupa.com/t/onrollover-wont-work-using-freetransform-by-senocular/207890 "2006-11-22T14:24:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Navarone](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Navarone](https://forum.kirupa.com/u/Navarone)
#### Post date: [November 22, 2006, 2:24pm UTC](https://forum.kirupa.com/t/onrollover-wont-work-using-freetransform-by-senocular/207890/1 "2006-11-22T14:24:15Z")

</div>

Ok, I have restled with this a hundred different ways, I don’t understand why my onRollover function fails to work. Can someone please explain why and show me how I would correct it?

```auto

count = 0;
additem_btn.onRelease = function() {
 var item_mc:MovieClip = pieceContainer.createEmptyMovieClip("item_mc"+count, this.getNextHighestDepth());
 // create a container to load the furniture swf into
 var container:MovieClip = item_mc.createEmptyMovieClip("container_mc", 0);
 // setup a MCL to handle the swf's loading 
 item_mc.mcl = new MovieClipLoader();
 item_mc.mcl.addListener(mclListener_2);
 item_mc.mcl.loadClip("decals/bed.swf", container);
 count++;
};
//
var mclListener_2:Object = new Object();
mclListener_2.onLoadInit = function(obj_mc:MovieClip) {
 // set variables to remember the original dimensions
 _global.axw = obj_mc._width;
 _global.axh = obj_mc._height;
 trace("width "+(((axw/2)/12)*12)+" inches");
 trace("height "+(((axh/2)/12)*12)+" inches");
 // center piece  
 obj_mc._y = -(axh/2);
 obj_mc._x = -(axw/2);
 // locate pieceContainer 
 pieceContainer._x = floor._x+(wide/2);
 pieceContainer._y = floor._y+(high/2);
 //
 obj_mc._parent.onPress = function() {
  this.addFreeTransform();
  //trace(this)
 };
 obj_mc._parent.onRollover = function() {
  trace(this);
 };
 // 
};

```
