Share Posted July 29, 2009 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. Link to comment Share on other sites More sharing options...
Author Share Posted July 30, 2009 Anyone? Link to comment Share on other sites More sharing options...
Author Share Posted July 30, 2009 It seems that my mc loader listener is blocking the ability to enable/disable the tm. anybody else had this? Link to comment Share on other sites More sharing options...
Author Share Posted July 30, 2009 I'm having a conversation with myself here Anyway, I solved it. I needed to turn the TM off when I wanted to draw over the TM MC I turned the instance into a global and called it from the drawing function I have. All works now. Brilliant classes! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now