A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: (CS4) MouseOver Area

  1. #1
    Grandfather to the stars bigginge's Avatar
    Join Date
    Oct 2003
    Location
    UK
    Posts
    735

    (CS4) MouseOver Area

    I'm working on an image gallery using a mouseOver to scroll the thumbnails. How can I limit the area affected by the mouseOver as at the moment it scrolls wherever the cursor is on the page.
    Thanks for any help.
    Attached Files Attached Files
    To dance beneath the diamond sky with one hand waving free
    Love Light Romania Romania Blog

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518
    Code:
    controller.onEnterFrame = function() {
    	if ((this._parent.pics._y - this._ymouse / 60) > (-this._parent.pics._height + 500) && (this._parent.pics._y - this._ymouse / 60) < 0) {
    		if ((this._parent.pics._xmouse >= 0) && (this._parent.pics._xmouse <= this._parent.pics._width)) {			
    				this._parent.pics._y -= this._ymouse / 60;
    		}
    	}
    };

  3. #3
    Grandfather to the stars bigginge's Avatar
    Join Date
    Oct 2003
    Location
    UK
    Posts
    735
    Thank you so much, that's a great help.
    To dance beneath the diamond sky with one hand waving free
    Love Light Romania Romania Blog

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