Share Posted April 25, 2012 hi i have a button on stage with a movieclip in it _view and a blitmask after the tween i need to get rid of blitmask and enable button mode. TweenMax.to(_view, 1, {y:0, onStart:_bMask.enableBitmapMode, onUpdate:_bMask.update, onComplete:animateInComplete, ease:Elastic.easeOut, easeParams:[0.2, 0.7], delay:1}); private function animateInComplete():void { _bMask.disableBitmapMode(); _bMask.dispose(); _bMask = null; enableThis(); } i still don't get the mouseevents for the button. can someone tell me howto do it? thanks Link to comment Share on other sites More sharing options...
Share Posted April 25, 2012 Are you sure you applied your MouseEvents properly? If you remove the BlitMask from the equation altogether, do they work? It's tough to diagnose with the small amount of code you posted. Link to comment Share on other sites More sharing options...
Author Share Posted April 25, 2012 yup public function enableThis():void { buttonMode = true; addEventListener(MouseEvent.ROLL_OVER, _onRollOver); addEventListener(MouseEvent.ROLL_OUT, _onRollOut); addEventListener(MouseEvent.MOUSE_DOWN, _onMouseDown); addEventListener(FocusEvent.FOCUS_IN, _onFocusIn); addEventListener(FocusEvent.FOCUS_OUT, _onFocusOut); } without blitmask works. maybe i missuse the dispose() or i remove the blitmask in the wrong way Link to comment Share on other sites More sharing options...
Share Posted April 25, 2012 Please post a simple FLA that demonstrates the issue. (don't forget to zip it first) Link to comment Share on other sites More sharing options...
Author Share Posted April 25, 2012 You aren't permitted to upload this kind of file Link to comment Share on other sites More sharing options...
Share Posted April 25, 2012 Did you zip it first? Does it end in ".zip"? Link to comment Share on other sites More sharing options...
Author Share Posted April 25, 2012 it was .rar, sorry i didn't attached the greensock club package. you will need the casalib package as well thank you blit.zip Link to comment Share on other sites More sharing options...
Share Posted April 25, 2012 I don't have casalib - please include ALL dependencies except for the GreenSock stuff. Link to comment Share on other sites More sharing options...
Author Share Posted April 25, 2012 don't worry it works without blitmask. i wanted to experiment with that class. i m using the regular mask now thanks again 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