dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: ROLL_OVER jitter bug/glitch ?

Threaded View

  1. #1
    Pixel Artéést chriso20's Avatar
    Join Date
    Apr 2003
    Location
    Notts, UK
    Posts
    325

    ROLL_OVER jitter bug/glitch ?

    Hey,

    I'm working on an image gallery - when you roll over a thumbnail it enlarges it.

    Problem is the thumbnail wobbles quite often when you don't roll over fully.

    Any ideas?

    Here's the files + code:

    Code:
    obj.addEventListener(MouseEvent.ROLL_OVER, thumbRollOver);
    
    function thumbRollOver(e:MouseEvent):void {
    
    	// some crap here... nothing that'd affect it..
    
    	obj = e.target;
    	TweenLite.to(obj, 0.2, {scaleX:increase, scaleY:increase, x:offsetX, y:offsetY, rotation:0, alpha:1});
    
    	obj.removeEventListener(MouseEvent.ROLL_OVER, thumbRollOver);
    	obj.addEventListener(MouseEvent.ROLL_OUT, thumbRollOut);
    
    }
    
    function thumbRollOut(e:MouseEvent):void {
    	
    	// more crap...
    
    	obj = e.target;
    	TweenLite.to(obj, 1, {scaleX:1, scaleY:1, x:origX, y:origY, rotation:origRot, alpha:0.8});
    
    	obj.removeEventListener(MouseEvent.ROLL_OUT, thumbRollOut);
    	obj.addEventListener(MouseEvent.ROLL_OVER, thumbRollOver);
    }
    Let me know if it happens for you too (slowly mouse over the corner of a thumbnail to see the glitch, it'll appear to wobble/flicker)

    Any ideas?
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center