Jump to content
Search Community

ThomW

Members
  • Posts

    3
  • Joined

  • Last visited

ThomW's Achievements

0

Reputation

  1. Ok, it's working now ! thanks very much. Thom.
  2. thanks for your support carl. hmmm, i tried this also, but it won't execute the function also: function zoomOut (full_mc):void { var sw = stage.stageWidth; var sh = stage.stageHeight; full_mc.buttonMode = false; full_mc.removeEventListener(MouseEvent.MOUSE_MOVE, panning); TweenMax.to(full_mc, 1.5, {transformAroundCenter:{x:sw/2, y:sh/2, ease:Expo.easeOut, scale:zoomFactor-=0.25, onComplete:onFinishTween}}); trace(zoomFactor); } function onFinishTween():void { full_mc.addEventListener(MouseEvent.MOUSE_MOVE, panning); trace(isPanning); } i don't know what's wrong with this... what i wanno do is disable the panning while zooming is on. thanks anyway !
  3. I would like to use this tween, but the oncomplete function won't start. is there anything i do wrong? my code: function zoomOut (full_mc):void { var sw = stage.stageWidth; var sh = stage.stageHeight; full_mc.buttonMode = false; full_mc.removeEventListener(MouseEvent.MOUSE_MOVE, panning); TweenMax.to(full_mc, 1.5, {transformAroundCenter:{x:sw/2, y:sh/2, ease:Expo.easeOut, scale:zoomFactor-=0.25, onComplete:onFinishTween}}); trace(zoomFactor); function onFinishTween():void { full_mc.addEventListener(MouseEvent.MOUSE_MOVE, panning); trace(isPanning); } } you're welcome ! Thom.
×
×
  • Create New...