Creating a simple photo gallery.. buttons not working.

Im trying to create a photo gallery that when you click on the thumbnail image you get a blown up image on the screen. The user will then hit the little "x" button to return to the thumbnail page.
I have attached pictures of what they look like. My issues is that when the user clicks on the little "x" nothing happens on images 2-5. It works fine on image 1. I have fiddled with the code, creating different buttons, using the same button both with different instance names and with different. Still does not work. I do not get any error messages during test either. Im at a loss. Please help!
Here is the code as it stands: (ActionScript 3.0 using Flash CC)
function go_back1(event:MouseEvent):void {
  gotoAndStop(1)
close1.addEventListener(MouseEvent.CLICK, go_back1);
close2.addEventListener(MouseEvent.CLICK, go_back1);
close3.addEventListener(MouseEvent.CLICK, go_back1);
close4.addEventListener(MouseEvent.CLICK, go_back1);
close5.addEventListener(MouseEvent.CLICK, go_back1);
close6.addEventListener(MouseEvent.CLICK, go_back1);

I think the problem lies in skipping the frame where the button gets the listener assigned to it.  If you are at frame 1 and then jump frame 5 or beyond you skip the code that would be assigned in frame 4.
Try the following.  Have the close button start from frame 1, but in frame 1 make it invisible.  Also move the listener code and event handler function there as well
          close1.visible = false;
          function go_back1(event:MouseEvent):void {
            gotoAndStop(1)
          close1.addEventListener(MouseEvent.CLICK, go_back1);
Then in whatever function(s) you have for going to one of the large picture frames include the line to make close1 visible.
        close1.visible = true;

Similar Messages

  • IWeb photo gallery does not work in IE

    Does anyone know why iWeb photo gallery does not work in Internet Explorer but does work in Safari, Chrome & Firefox?

    What kind of a response are you looking for with a post like that, seriously? Change this or that in your unprovided code? Use this or that gallery, which may be the gallery you're already using. We don't know because you haven't mention specifics, provided any code, or any other relevant information to produce a helpful response. All you've said is you click a link and it's white. Kudos.
    We're not mind readers and no one is looking over your shoulder watching what you're doing. Get it together... and when you do, post a link so we can see what you're talking about. jeez.

  • The Web photo gallery does not work in Dreamweaver!

    I made a web photo gallery in photo shop using CS3.  The destination folder is the web site I'm using it in.  It links OK in the rollover image and will work if you click on it(swf_file) in the site file, but it will not show any pictures when I try to preview it with a browser or load it on the remote site. It loads the file but all the images are whited out.   This is very frustrating and it must be something simple...please advise...Thank You..Thagoodsport

    What kind of a response are you looking for with a post like that, seriously? Change this or that in your unprovided code? Use this or that gallery, which may be the gallery you're already using. We don't know because you haven't mention specifics, provided any code, or any other relevant information to produce a helpful response. All you've said is you click a link and it's white. Kudos.
    We're not mind readers and no one is looking over your shoulder watching what you're doing. Get it together... and when you do, post a link so we can see what you're talking about. jeez.

  • My "Show Photo Settings" button not working.

    The button is light grey and won't function. I'm sure it's an easy fix and I just am forgetting something obvious.

    There must be a photo selected in the Photos list — or a previously-imported photo clip in the Timeline — for the Show Photo Settings button to be enabled.
    Karl

  • Nokia 808 gallery button not working whilst in cam...

    Hi all
    Had my 808 for a week, and I have been delighted with it, in fact I had no issues with it until an hour ago!
    I was taking some pics of my kids when the screnen when black, it would still take photos but I cannot see anything on screen. This is not great but a restart sorted it
    But since this incident when I am in camera and I click on the gallery in bottom right to see my latest photo, nothing happens, this is really annoying. I have to go into the gallery to view photos. The transition still works and the photo thumbnail in the camera UI works, but button is useless
    I have restarted phone a few times
    Any ideas guys?!

    nope... had never heard of that feature, let alone use it......in my case, i beleive it was because of a video file that somehow remained always open, and i figured it was overloading the processor somehow, like it happens in windows sometimes, so i removed the video and restarted the phone and voila, problemo solved...'
    i just have to mention that the pureview takes photos with amazing bokeh effects... kudos to nokia again for the excellent camera......screw the belle criticisers... for they just didn't experience the pureview for want of  a couple million apps that they won't use anyways....
    thanks for the tip with uninstalling the extra buttons app matthewleech.

  • Photo Album buttons not working

    Hi, I created a photo album in Photoshop. This is how it
    views after it's created:
    http://oxford2.readyhosting.com/test/gallery/test.html
    When I put the file into my template the pause/play buttons
    aren't displaying.
    http://oxford2.readyhosting.com/test/gallery/index2.htm
    I can't figure out why. I am not great with coding but I am
    going blurry eyed. I can't tell if it's calling to something else?
    Help! and Thanks!!

    Sure, this is in the script:
    var isMainPageLoaded = false;
    function init() {
    //Create a timer to check to see if the bottom frame is
    loaded
    //before calling into it.
    if (top.BottomFrame.isBottomFrameLoaded) {
    top.BottomFrame.setArrows();
    } else {
    setTimeout("init()", 10);
    And this is the code for the arrows/button
    <a onMouseOver="window.status='Previous Image'; return
    true;" onmouseout="window.status=''; return true;"
    href="javascript:top.BottomFrame.previousImage();"><img
    name="previous1" src="images/previous_disabled.gif" width="36"
    height="19" vspace="2" hspace="1" border="0" alt="Previous
    Image"></a>
    </td>
    <td>
    <a
    onMouseOver="top.BottomFrame.togglePlayPauseImg('over');
    window.status='Start or Stop Slide Show'; return true;"
    onMouseOut="top.BottomFrame.togglePlayPauseImg('out');
    window.status=''; return true;"
    href="javascript:top.BottomFrame.togglePlayPauseState();"><img
    name="pausePlay1" src="images/spacer.gif" width="19" height="19"
    vspace="2" hspace="1" border="0" alt="Play/Pause"></a>
    </td>
    <td>
    <a onMouseOver="window.status='Next Image'; return true;"
    onmouseout="window.status=''; return true;"
    href="javascript:top.BottomFrame.nextImage();"><img
    name="next1" src="images/next_disabled.gif" width="36" height="19"
    vspace="2" hspace="1" border="0" alt="Next Image"></a>
    </td>

  • Simple photo gallery

    I used a very old version of Fireworks some time ago, which I
    think had the ability to do this but I'm now uing CS3 and wanted to
    know:
    I would like to create a simple photo gallery whereby there
    is a grid of 4x3 image thumbnails and then when you click on one of
    the thumbnails it enlarges the photo to take up the occupied space
    of where the thumbnails exist - click close and then it takes you
    back to the thumbnails.
    Is there any way of doing this in CS3? I'm presuming I could
    use slices and layers with hotspots but I'm not entirely sure how -
    are there any tuturials on this.
    Thanks in advance for any help on this subject.

    Hi,
    Not exactly what you're asking for but are you aware of the,
    new to CS3,
    'Create SlideShow' Command?
    There are six (I think) different layouts, one of which may
    suit.
    An example of one I threw together can be seen here
    http://www.fasterthanu.com/
    There are also a couple of links on bridge to tutorials as
    well as some on
    the Adobe site
    Peter
    "greencode75" <[email protected]> wrote in
    message
    news:fgjvai$qg$[email protected]..
    |I used a very old version of Fireworks some time ago, which
    I think had the
    | ability to do this but I'm now uing CS3 and wanted to know:
    |
    | I would like to create a simple photo gallery whereby there
    is a grid of
    4x3
    | image thumbnails and then when you click on one of the
    thumbnails it
    enlarges
    | the photo to take up the occupied space of where the
    thumbnails exist -
    click
    | close and then it takes you back to the thumbnails.
    |
    | Is there any way of doing this in CS3? I'm presuming I
    could use slices
    and
    | layers with hotspots but I'm not entirely sure how - are
    there any
    tuturials on
    | this.
    |
    | Thanks in advance for any help on this subject.
    |

  • Create a web photo gallery, in PSE8????

    In a old version of elements, like verssion 2, you could create a web photo gallery.  You can also do this in Photshop.
    I just purchased PSE8 and I cannot find it in there.  Since this the bulk of my work, uploading photo galleries to car websites I look after, this could be a real problem for me.
    Is it in there & I'm just looking in the wrong palce or is there a plug inn I can get/purchase?
    Any advise would be greatly appreciated
    Kind Regads
    Cam

    I still have PSE2 so it's no drama.
    It just defeats the purpose of me upgrading from that point of view.
    Like Eric says I too do not want the "flash-based web pages " as nice as they are.
    I cant see why they couldn't have left in the html gallery feature in as well as having the flash.  I see it all the time.  Packages move forward at the expense of other features being removed.
    I got the new package PSE8 and PRE8 as they could supposedly talk to each other.  Now I find I'm still having to use an older and much simpler application to get the job done.
    I also run two screens and when I move one of these new applications to the second larger screen it spits the dummy.
    Me thinks I'll just stick with my old proven products that never fail or hang.  Every time I try to move with the times something like this happens.
    I fear application/software creators/designers of the day have lost the plot.
    Ahh, I feel better now.  LOL!!

  • Iweb 8 photo gallery doesn't work.

    Hey
    I created a homepage i iweb 8. I publish the homepage to a folder and upload to the ftp server of my webhost. homepage works fine, but the photo gallery does not show any pictures. Can anyone help me with this? When I go to the folder on my homepage and open index file, it shows perfect. so something goes wrong when I upload to ftp.
    Thanks in advance... more details can be provided if needed.

    your other photos page: Træskåle_%28klik_på_billedet_for_at_se_galleriet%29
    contains special characters %28 = (  %29 = )
    But most of all, characters that you use in Danish probably had lost in javascript translation, this is expected:
    http://www.drudssnedkerfirma.dk/Sted_2/Galleri/Sider/Træskåle_(klik_på_billedet_for_at_se_galleriet)_files/Træskåle_(klik_på_billedet_for_at_se_galleriet).js
    but note the erros show different:
    Træskåle_(klik_på_billedet_for_at_se_galleriet)_files/Træskåle_(klik_på_billedet_for_at_se_galleriet).js
    consider change the page name.

  • Photo gallery will not show first folder

    Hello,
    My Photo Gallery will not show the first folder.  It is 'under' the albums header.  Anyone seen this, or know how to fix this?
    I have the most recent update (4.3.3)

    If you can open the Multitask bar, find the photo app, tap on it until it shakes and hit the little "minus" icon to close the app completely. After that go to your home screen again, open photos, it should work now.
    If multitasking is not supported for your device, a reset, by holding the sleep and home button until the Apple logo comes back again, will do the same.
    This is a known bug, hopefully Apple will take care of that in iOS5 or in a coming update for 4.3.x

  • Scrollable frames. Buttons not working.

    Hello.
    I have a problem with buttons in the scrollable frames.
    I have a slideshow with a thumb's. Each thumb consist of MSO (non active icon and active icon) and clear frame - button to that MSO and to slide foto. The thumb's grouped and placed into the frame with horizontal scroll overlay effect.
    That frame placed into another frame-pull out tab, which have vertical scroll effect. And when I pressed the button, slide fotos changes correctly, but button MSO not working.
    See files from dropbox --  https://www.dropbox.com/sh/rsbf1jto3a39jug/IVcQxaYJOW
    Sorry for my english. I need help very much.
    Thanks.

    Hi,
    I understand that I can use two 'states'  of the buttons. And I tried it. But. Buttons renditions are raster images. And on the retina display we had bad quality. My target was to create vector buttons. With good quality on both displays.
    Any suggestions?
    04.10.2013, в 12:03, Christophe_Quinzoni <[email protected]> написал(а):
    Re: Scrollable frames. Buttons not working.
    created by Christophe_Quinzoni in Digital Publishing Suite - View the full discussion
    Hi (again),
    It seems that you built your stuff in a very complicated way.
    First, try to make simple!
    You mixed MSO and buttons functions. Useless and unfonctional.
    Yous should use only button panel, with two different 'states' ('Normal' and 'Clic').
    See below (no MSO function used at all for the button):
    http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-5735625-468602/445-605/Button_ 1.jpg http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-5735625-468603/448-605/Button_ 2.jpg
    Use the layer panel to easily select the objects you want to modify.
    Please find your file here: https://dl.dropboxusercontent.com/u/46115208/slideshowButton.indd
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5735625#5735625
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5735625#5735625
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5735625#5735625. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Digital Publishing Suite at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Button not working in browser

    I am coding a video player in Netbeans 6.8. just find two problems:
    1. the browser button not working in browser when I run the project from Netbeans under "run in browser" mode. however under "standard execution" mode, everything is fine.
    2. can not run the jar file in the project's dist directory directly. in other word, I can not run the jar file outside of Netbeans.
    I appreciate any help. thanks.
    Main.fx:
    package gui;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.paint.Color.*;
    * @author Jethro
    var face=Face{};
    function run(){
        Stage{
            title: "player"
            resizable:false
            scene: Scene{
                width:800
                height:600
                fill:DARKBLUE
                content: [face]
    }Face.fx:
    package gui;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.Node;
    import javafx.scene.control.Button;
    import javafx.scene.layout.VBox;
    import javafx.scene.media.Media;
    import javafx.scene.media.MediaPlayer;
    import javafx.scene.media.MediaError;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.media.MediaView;
    import javafx.scene.control.ProgressBar;
    * @author Jethro
    public class Face extends CustomNode {
        public var lbf=LBF{};
        public var enable=true;
        public var mark="play";
        public var sourceOfMedia:String;
        public def player=MediaPlayer {
            repeatCount:MediaPlayer.REPEAT_FOREVER
            onError:function(e:MediaError){
                var er=e.message;
         media : bind Media {
              source: sourceOfMedia
        public def view=MediaView {
                mediaPlayer:bind player
                preserveRatio: true                    
        public def bar=ProgressBar {
                height:10
                width:bind scene.width
                progress: bind
                    if(player.media !=null){
                        player.currentTime.toMillis()
                            /player.media.duration.toMillis();
                    }else{
                        0.0
        public var play=Button {      
            onMousePressed:function(e:MouseEvent){
                if(enable and player.media != null){
                            mark="pause"; println("playing...");                       
                            sourceOfMedia=lbf.uri;
                            player.play();
                            enable=false;
                }else{
                    mark="play";
                    player.pause();println("paused...");
                    enable=true;
         text: bind mark       
        public override function create(): Node {
            return Group {
                content: [
                    VBox{
                        content: [
                            lbf,
                            bar,
                            play,
                            view,
    }LBF.fx:
    package gui;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.control.TextBox;
    import javafx.scene.layout.HBox;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.text.Font;
    import javafx.scene.text.Text;
    import javafx.scene.Node;
    import javafx.geometry.HPos;
    import javafx.geometry.VPos;
    import javafx.scene.control.Button;
    import javax.swing.JFileChooser;
    * @author Jethro
    public class LBF extends CustomNode{
        public var uri:String;
        public var whereis=Text {
            fill:Color.BLUE
         font : Font {
              size: 20
         x: 10, y: 30
         content: "location: "
        public var location=TextBox{
            text:"the song's location"
            columns:40
            selectOnFocus:true
        public var browser=Button {
         text: "Browser"
         action: function() {
                    var jfc=new JFileChooser();               
              jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
                    var val = jfc.showOpenDialog(null);
                    if(val == JFileChooser.APPROVE_OPTION) {                   
                        location.text = jfc.getSelectedFile().getAbsolutePath();
                        uri=jfc.getSelectedFile().toURI().toString();
                        println(location.text);
        public var face=Group {
         content: [
              Rectangle {
                        x: 0, y: 0
                        width: 800, height: 50
                        fill: Color.SILVER
                     HBox{
                         width:800
                         height:50
                         hpos:HPos.CENTER
                         vpos:VPos.CENTER
                         spacing:5
                         content: [whereis,location,browser]
        public override function create():Node{
            return face;
    }

    thanks for your reply but I need more specific operation.
    maybe I am not very clear about the problem one. I mean when I run the code in standard mode, if I click the browse button, a window will pop out and I can choose a video file from my local harddisk. but if I run it in "web start execution" mode and "run in browser" mode. the browse button make no response when I click it.
    Edited by: Phoenix2006 on Feb 8, 2010 2:35 PM
    Edited by: Phoenix2006 on Feb 8, 2010 2:37 PM
    Edited by: Phoenix2006 on Feb 8, 2010 2:42 PM

  • How do I create a web photo gallery in Photoshop CC?

    In previous versions of Photoshop I go to "file", "automate", and create a web photo gallery.  That option is not available in Photoshop CC.  Tutorials online teach how to create this through Bridge but I can't seem to find it there either.  Please help!

    Maybe this will help ( a bit )
    http://helpx.adobe.com/bridge/kb/pdf-presentation-web-gallery-available.html

  • Navigation button not working in JSP

    JDeveloper10g JSP:
    "NestSet", "PreviousSet" button not working after a search is done on a read-only table. Is this a know bug?
    Please help!!!

    Vishal,
    I dont think the Notification Create Button from line item is pretty much dependent on the Customization Settings or any sap note concerning this has not been as yet brought into my notice. In my system, this is working appropriately. The problem with this which i can think of is either an authorization issue or you should raise an oss for this.
    Regards,
    Usman

  • Lightroom 4.1 flash web gallery does not work in 32 bit Internet Explorer 9.0

    I have a web site with a Web Gallery I created in Lightroom 4.1. . The Web Gallery will not work in the IE 9.0 32 bit browser. It does work in the IE 9.0 64 bit browser. Also, all other flash material seems to work fine in my 32 bit browser such as Youtube and other flash sites material. I have a flash menu created from another product on my web site which also works fine in the 32 bit IE browser but I cannot get the Lightroom Flash Gallery to work in this browser.
    Any suggestions?

    I am not sure to know where I can do this ...
    is it this ?: I selected all images
    unfortunatly result is the same ...

Maybe you are looking for

  • Ipod nano 2gb has error 1418

    Well I had over 2gb of music on my itunes...so it said if i wanted to create a playlist that the ipod will go to so the new music will show up...i clicked yes...and then later that day i deleted the old music and then had 1.8 gb so that the ipod coul

  • How to change localized numbers in iGrid V11.5

    Hi, we use MII Version 11.5SR4 and I have a client which use a german localization on his PC. When the user call an irpt page with an iGrid then this iGrid is displaying numbers for this german client allways with a comma for a decimal delimiter like

  • Please Help with iTunes Download- Error 1606

    OKay, so you had me try to download itunes and I did try. When it did start to download it was checking for something on my computer and gave me this error- Error1606: Could not access network location bin. Then when I closed the download is said Err

  • Robohelp 5 vs robohelp 6

    Hi, I have to decide if my company should buy Robohelp 6. At this moment we using Robohelp 5. What are the differences between Robohelp 5 and Robohelp 6? What are the advantages of Robohelp 6?

  • Strange Quicktime behavior in 10.4.8

    I have hit some bugs in the OS since the last update. Both seem to involve Quicktime which I have running (watching an .avi file). When I launched Google Earth yesterday the computer froze, which is exceedingly rare for me. I could still move the cur