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?
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);
};
//
};