
Nik38
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
ScrollTrigger Demos
Downloads
Posts posted by Nik38
-
-
It seems that my mc loader listener is blocking the ability to enable/disable the tm.
anybody else had this?
-
-
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.
Unable to disable??? [SOLVED]
in TransformManager (Flash)
Posted
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!