I'm trying to disable an instance of the Transform Manager
I have the instance created on an mc when an image has been loaded into it via MovieClipLoader
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
var manager_obj = new TransformManager({targetObjects:[mc.container], constrainScale:true});
};
So I thought if I add this to a button
myBtn.onPress=function
{
manager_obj.enabled = false;
}
it would work, but it doesn't. If I add the line right under var manager_obj = new TransformManager({targetObjects:[mc.container], constrainScale:true}); it does work but that is useless to me
I need to disable the instance or preferably the entire class on one action and re-activate it on another.
Please help me.