A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [RESOLVED] Another AK Gallery Question

  1. #1
    Senior Member etuom's Avatar
    Join Date
    Sep 2006
    Location
    Minnesota
    Posts
    193

    resolved [RESOLVED] Another AK Gallery Question

    In using Necro's AK Gallery, I have resized the movie to 700 wide and placed a 300 wide mask over the thumbs to only show 3 of the thumb images. I would like to have the scroll action only active while the mouse is inside the mask rather than the whole thumbnail strip. I've seen the examples that use the stroke and panel code (as in the sliding panel example from the exchange) but have no idea how this might be done with the AK Gallery.

    Necro or anyone?

  2. #2
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    Just follow these steps:
    - draw a rectangle (300x124), use the black color with alpha=100 (invisible).
    - convert the rectangle into a movieclip and rename it (msk).
    - edit this movieclip, use transforms and move the rectangle to X=0, Y=0
    - place this msk movieclip in the proper position on your stage.
    - modify the timeline actionscript in this way
    Code:
    this.onEnterFrame = function() {
    	if(msk.hitTest(_xmouse,_ymouse,true)){
    		thmbs._x += (msk._width/2 - _xmouse + msk._x)/40;
    		if (thmbs._x > msk._x ){
    			thmbs._x = msk._x;
    		}else if (thmbs._x < (msk._x + msk._width - thmbs._width)){
    			thmbs._x = msk._x + msk._width - thmbs._width;
    		}
    	}
    ...
    ...
    ...
    That's all.

    cheers

  3. #3
    Senior Member etuom's Avatar
    Join Date
    Sep 2006
    Location
    Minnesota
    Posts
    193
    Thanks Necro! Works exactly how I need.

    For anyone interested here is a link to my working example of Necro's superb AK Gallery resized, with a mask, and without info and gallery boxes. Uses sample pics from Windows. When I first uploaded it it took awhile to load in the browser, so if anyone has any problems viewing it please let me know.

    URL deleted

    I guess I jumped the gun a bit, I'll update when ready
    Last edited by etuom; 07-16-2009 at 03:37 PM. Reason: Further testing

  4. #4
    Senior Member etuom's Avatar
    Join Date
    Sep 2006
    Location
    Minnesota
    Posts
    193
    Here it is. still having browser problems. Have to hit refresh after the page loads and then the Gallery shows up. Any ideas?

    http://www.heritagecustomwoodworking...KHeritage.html

  5. #5
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    Quote Originally Posted by etuom View Post
    Here it is. still having browser problems. Have to hit refresh after the page loads and then the Gallery shows up. Any ideas?

    http://www.heritagecustomwoodworking...KHeritage.html
    It works perfect from here.
    You should double check the browser cache settings.
    Also be sure your browser is not buggy (the market is full of them).

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