Jump to content
Search Community

Lin510

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Lin510

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

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

×
×
  • Create New...