Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 3 of 3
  1. #1

    Default Scrolling picture gallery?

    Hello! I´m a total newbie and I got help here more than a year ago, from Jeet I believe (thanks again!). Since I work almost exclusively with xhtml and css I seldom need flash help, but now I do! I have searched the forums, but not found exactly what I´m looking for.

    I need to create a picture gallery. The client wants the large image to display in the middle of the screen. Below is a row of thumbnails which are scrollable. When the mouse hovers the row with images to the right, images move in from the right, and when it hovers more to the left images move in from the left. I would like to have two speeds, depending on how far to the right or left you move with the mouse pointer. Increasing speed when you move to the sides. Also, the images have to be clickable to show as a larger version of them in the middle of the screen.

    With my limited knowledge in flash, I believe I could do a movie with thumbnails in a row, they are clickable and target the larger image-area. The thumbnails movie will have to be masked in some way, I believe, since it will contain maybe up to 80 small thunbnails. The “scrolling” is my big problem. I figured I can do 4 buttons (left/right x high speed/low speed) over the thumbnails-movie which reacts to hovering, but I have no idea how to make the movie move to the left and right and possibly “loop” to make the last image in the row be followed by the first and not just stop when it comes to the end. Any suggestions on how to do this, or if my other reasoning is totally wrong?

    Unfortunately I haven´t been able to do any testing yet, since I have to run (and first find!) the flash installation CD on my new laptop. Long time ago! It could be anywhere!

    Would appreciate any help!

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    There is actually quite alot that goes into a project like that. Flash allows for many ways to accomplish the same goal. The method you mentioned of using buttons will work but will take some testing to achieve successfully. Another option is to use purely actionscript for the loading and motions. Here is a function to explore that can control the position of a movieclip based on mouse position on the screen. Speed is adjusted accordingly.....

    Frame 1 main timeline...
    Code:
    function accelScroller(myTarget) {
    	myMiddle = Stage.width/2;
    	this.onEnterFrame = function() {
    		moveDist = myMiddle-_root._xmouse;
    		myTarget._x += moveDist/10;
    		if (myTarget._x>Stage.width) {
    			myTarget._x = 0;
    		&#125; else if &#40;myTarget._x<0&#41; &#123;
    			myTarget._x = Stage.width;
    		&#125;
    	&#125;
    &#125;
    accelScroller&#40;mcInstanceName&#41;;
    Another necessary method to explore will be the loadMovie command. You can use this method to load a .swf movie or a non progressive .jpg image at runtime.

    hope it helps
    NTD
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  4. #3

    Default Thanks a lot ... .. but no luck so far.

    Thanks a lot for your reply! I´ve installed flash on my new computer, made the design and have the thumbnail gallery in a movieclip, and tried the code you suggested, but I can´t make it work. Any suggestions? Unfortunately I´m probably still too much of a novice to make this work.

    I have the design on
    www.nephila.se/jakob/jakobfridholm.html

    And if you want to look at the .fla file, you can download it from
    www.nephila.se/jakob/slidingmenu.zip

    Thanks a lot!

    Kristofer

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. need help with xml flash gallery!
    By robertr81 in forum Advanced Flash
    Replies: 1
    Last Post: 11-24-2006, 11:25 AM
  2. Art Gallery script
    By artist12 in forum Newbies
    Replies: 1
    Last Post: 03-10-2006, 06:30 AM
  3. i need rollover picture help!!!
    By ashasaurusrex in forum Flash Scripting
    Replies: 1
    Last Post: 11-24-2005, 09:10 PM
  4. Scrolling photo gallery
    By pwdesign in forum General Flash
    Replies: 1
    Last Post: 06-15-2005, 11:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial