Jump to content
Search Community

Blitmask & Buttons

Lin510 test
Moderator Tag

Recommended Posts

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

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

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.
×
×
  • Create New...