Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: simple gallery...errr

  1. #1
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default simple gallery...errr

    I am working on a portfolio site and have run into a bit of a problem with creating my gallery. What I planned to do was on the left, text that I created as a button (no thumbnails) and once it is clicked directly to the right is the image. I thought this would work using scenes but I never figured out the actionscripts to get the button to work.

    Is there a way that I can use scenes or a better easier way. Its best (for me) to use as little actionscript as possible, as I tend to screw it up one way or another.

  2. #2
    Join Date
    Jul 2007
    Location
    California
    Posts
    177
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    http://www.dynamicdrive.com/dynamici...getooltip.htm#

    http://www.dynamicdrive.com/dynamici...geselector.htm

    Dunno if you already looked at those... Not sure if that is what you were looking for at all.

    Even though you don't want something this extravagant you may want to peek at these: http://www.smashingmagazine.com/2007...ws-lightboxes/

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Sliight: I believe that the OP was looking for a Flash solution.

    Lirish:
    It would actually be quite easier with ActionScript, if you can get over your fear of it

    With actionscript you would have your "text" buttons on the left. On the right create a rectangle, turn it into a movieclip (with registration point in the upper left). Give it an instance name of pictureHolder

    In a dedicated actions layer on the root timeline, add the following actionscript:

    Code:
    button1.onRelease = function() {
       pictureHolder.loadMovie("image.jpg");
    }
    
    button2.onRelease = function() {
       pictureHolder.loadMovie("image2.jpg");
    }


    - OR -
    If you must do it with timeline animation (which I don't recommend AT ALL), you could:

    1) Add all your buttons on one layer (give them all instance names)
    2) On a second layer add all your pictures.

    Then add the following actionscript on a dedicated actions layer:

    Code:
    Button1.onRelease = function() {
       gotoAndStop(2)
    }
    This would take you to frame #2 where presumably the picture corresponding to the text is.


    HTH
    Post back with any more questions.

  4. #4
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Medy yeah those are good ideas, and I've thought about doing both those things but could never figure out how to. The problem I am having now is editing the actionscript so that it will work.

    Now I know that obviously I am to change "image.jpg" to whatever picture I'm going to use, but am I also supposed to edit "button1" "button2" etc? If not how does it know which is right?

    Also I did as you said although I edited button1 and button2 etc to the names of the instances but when i test the movie, none of the buttons seem to work, not even the rollover actions.

  5. #5
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Where are you chaging the instance names? Instance names are set in the properties panel at the bottom of the flash interface.

    Here are some examples I made really quickly.

    loadMovie Method - Demo / Source
    gotoAndStop Method - Demo / Source

    Also have a look at this: Page Transitions Demo - Demo / Source
    It was first posted here: http://www.dynamicdrive.com/forums/s...ad.php?t=20255

  6. #6
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks medy, i figured it out for the most part. XD

  7. #7
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Great! If you don't mind, I'd love to see how it turned out.

  8. #8
    Join Date
    Jan 2008
    Posts
    51
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default

    Medyman,

    The links aren't active anymore. Do you remember where you saw them so I can try to find them? I want to do something similar and would love to look at the sample files.

  9. #9
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    I created those examples. They're up on my server on my old domain name. I'll track down the files and post an updated link.

    The correct Page Transitions Demo files can be found in one the last posts in the original thread as stated in my previous post.

  10. The Following User Says Thank You to Medyman For This Useful Post:

    ReadyToLearn (05-03-2008)

  11. #10
    Join Date
    Jan 2008
    Posts
    51
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default

    Thank you! Please post them in this same thread when you find them. I will subscribe to this thread.

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
  •