Jump to content
Search Community

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

Please post a simple FLA that demonstrates the issue. (don't forget to zip it first)

Posted

You aren't permitted to upload this kind of file

Posted

Did you zip it first? Does it end in ".zip"?

Posted

it was .rar, sorry

 

i didn't attached the greensock club package.

you will need the casalib package as well

 

thank you

blit.zip

Posted

I don't have casalib - please include ALL dependencies except for the GreenSock stuff.

Posted

don't worry

it works without blitmask. i wanted to experiment with that class.

i m using the regular mask now

thanks again

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...