Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Nik38

Unable to disable??? [SOLVED]

Recommended Posts

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 :D

 

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

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

I'm having a conversation with myself here :lol:

 

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×