Advanced Photo Album SWF Movies Playback

Hello
I linked an .swf movie into the Flash CS5 Advanced Photo Album template and have found that if I press the "next" button, the movie continues to play. You can't go back to it.
Does anyone have a tip to stop a .swf movie when I proceed to the next one?

Hello
I linked an .swf movie into the Flash CS5 Advanced Photo Album template and have found that if I press the "next" button, the movie continues to play. You can't go back to it.
Does anyone have a tip to stop a .swf movie when I proceed to the next one?

Similar Messages

  • CS5 Advanced Photo Album Template Upload Issue

    I just created a new flash ap from the template Advanced Photo Album (File->new->Templates->Media Playback->Advanced Photo Album)
    I set everything up put my photos where they needed to be and coded the xml section of the action script.  I tested it and it runs perfectly on my system.  However as soon as I upload it to my server I get the flash app to load but no images appear.  Its as if it can't find the xml file however its hardcoded into the flash app.  How can I fix this?
    Help would be greatly appreciated
    Thanks
    Stjc
    Ps all images are in the same directory as the swf and index.html files just as they were on my local machine
    Link to non working app page
    Link to non working swf
    AS Code
    import fl.data.DataProvider;
    import fl.events.ListEvent;
    import fl.transitions.*;
    import fl.controls.*;
    // USER CONFIG SETTINGS =====
    var secondsDelay:Number = 4;
    var autoStart:Boolean = true;
    var transitionOn:Boolean = true; // true, false
    var transitionType:String = "Fade"; // Blinds, Fade, Fly, Iris, Photo, PixelDissolve, Rotate, Squeeze, Wipe, Zoom, Random
    var hardcodedXML:String="<photos><image title='Exterior 1'>010.jpg</image><image title='Exterior 2'>012.jpg</image><image title='Exterior 3'>013.jpg</image><image title='Exterior 4'>014.jpg</image><image title='Exterior 5'>015.jpg</image><image title='Exterior 6'>016.jpg</image><image title='Exterior 7'>017.jpg</image><image title='Exterior 8'>018.jpg</image><image title='Kitchen 1'>019.jpg</image><image title='Kitchen 2'>020.jpg</image><image title='Kitchen 3'>031.jpg</image><image title='Dining Room 1'>021.jpg</image><image title='Dining Room 2'>022.jpg</image><image title='Basement 1'>027.jpg</image><image title='Basement 2'>028.jpg</image><image title='Great Room 1'>032.jpg</image><image title='Great Room 2'>033.jpg</image><image title='Bed Rooms 1'>034.jpg</image><image title='Bed Rooms 2'>035.jpg</image><image title='Bed Rooms 3'>036.jpg</image><image title='Bed Rooms 4'>037.jpg</image><image title='Bed Rooms 5'>038.jpg</image><image title='Bed Rooms 6'>039.jpg</image><image title='Bed Rooms 7'>040.jpg</image><image title='Bed Rooms 8'>042.jpg</image><image title='Bed Rooms 9'>043.jpg</image><image title='Bed Rooms 10'>044.jpg</image><image title='Interior 1'>041.jpg</image><image title='Interior 2'>046.jpg</image></photos>";
    // END USER CONFIG SETTINGS
    // DECLARE VARIABLES AND OBJECTS =====
    var imageList:XML = new XML();
    var currentImageID:Number = 0;
    var imageDP:DataProvider = new DataProvider();
    var slideshowTimer:Timer = new Timer((secondsDelay*1000), 0);
    // END DECLARATIONS
    // CODE FOR HARDCODED XML =====
    imageList = XML(hardcodedXML);
    fl_parseImageXML(imageList);
    // END CODE FOR HARDCODED XML
    // EVENTS =====
    imageTiles.addEventListener(ListEvent.ITEM_CLICK, fl_tileClickHandler);
    function fl_tileClickHandler(evt:ListEvent):void
    imageHolder.imageLoader.source = evt.item.source;
    currentImageID = evt.item.imgID;
    title_txt.text = imageDP.getItemAt(currentImageID).label;
    playPauseToggle_mc.addEventListener(MouseEvent.CLICK, fl_togglePlayPause);
    function fl_togglePlayPause(evt:MouseEvent):void
    if(playPauseToggle_mc.currentLabel == "play")
      fl_startSlideShow();
      playPauseToggle_mc.gotoAndStop("pause");
    else if(playPauseToggle_mc.currentLabel == "pause")
      fl_pauseSlideShow();
      playPauseToggle_mc.gotoAndStop("play");
    next_btn.addEventListener(MouseEvent.CLICK, fl_nextButtonClick);
    prev_btn.addEventListener(MouseEvent.CLICK, fl_prevButtonClick);
    function fl_nextButtonClick(evt:MouseEvent):void
    fl_nextSlide();
    function fl_prevButtonClick(evt:MouseEvent):void
    fl_prevSlide();
    slideshowTimer.addEventListener(TimerEvent.TIMER, fl_slideShowNext);
    function fl_slideShowNext(evt:TimerEvent):void
    fl_nextSlide();
    // END EVENTS
    // FUNCTIONS AND LOGIC =====
    function fl_parseImageXML(imageXML:XML):void
    var imagesNodes:XMLList = imageXML.children();
    for(var i in imagesNodes)
      var imgURL:String = imagesNodes[i];
      var imgTitle:String = imagesNodes[i].attribute("title");
      imageDP.addItem({label:imgTitle, source:imgURL, imgID:i});
    imageTiles.dataProvider = imageDP;
    imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
    title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_startSlideShow():void
    slideshowTimer.start();
    function fl_pauseSlideShow():void
    slideshowTimer.stop();
    function fl_nextSlide():void
    currentImageID++;
    if(currentImageID >= imageDP.length)
      currentImageID = 0;
    if(transitionOn == true)
      fl_doTransition();
    imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
    title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_prevSlide():void
    currentImageID--;
    if(currentImageID < 0)
      currentImageID = imageDP.length-1;
    if(transitionOn == true)
      fl_doTransition();
    imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
    title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_doTransition():void
    if(transitionType == "Blinds")
      TransitionManager.start(imageHolder, {type:Blinds, direction:Transition.IN, duration:0.25});
    } else if (transitionType == "Fade")
      TransitionManager.start(imageHolder, {type:Fade, direction:Transition.IN, duration:0.25});
    } else if (transitionType == "Fly")
      TransitionManager.start(imageHolder, {type:Fly, direction:Transition.IN, duration:0.25});
    } else if (transitionType == "Iris")
      TransitionManager.start(imageHolder, {type:Iris, direction:Transition.IN, duration:0.25});
    } else if (transitionType == "Photo")
      TransitionManager.start(imageHolder, {type:Photo, direction:Transition.IN, duration:0.25});
    } else if (transitionType == "PixelDissolve")
      TransitionManager.start(imageHolder, {type:PixelDissolve, direction:Transition.IN, duration:0.25});
    } else if (transitionType == "Rotate")
      TransitionManager.start(imageHolder, {type:Rotate, direction:Transition.IN, duration:0.25});
    } else if (transitionType == "Squeeze")
      TransitionManager.start(imageHolder, {type:Squeeze, direction:Transition.IN, duration:0.25});
    } else if (transitionType == "Wipe")
      TransitionManager.start(imageHolder, {type:Wipe, direction:Transition.IN, duration:0.25});
    } else if (transitionType == "Zoom")
      TransitionManager.start(imageHolder, {type:Zoom, direction:Transition.IN, duration:0.25});
    } else if (transitionType == "Random")
      var randomNumber:Number = Math.round(Math.random()*9) + 1;
      switch (randomNumber) {
       case 1:
        TransitionManager.start(imageHolder, {type:Blinds, direction:Transition.IN, duration:0.25});
        break;
       case 2:
        TransitionManager.start(imageHolder, {type:Fade, direction:Transition.IN, duration:0.25});
        break;
       case 3:
        TransitionManager.start(imageHolder, {type:Fly, direction:Transition.IN, duration:0.25});
        break;
       case 4:
        TransitionManager.start(imageHolder, {type:Iris, direction:Transition.IN, duration:0.25});
        break;
       case 5:
        TransitionManager.start(imageHolder, {type:Photo, direction:Transition.IN, duration:0.25});
        break;
       case 6:
        TransitionManager.start(imageHolder, {type:PixelDissolve, direction:Transition.IN, duration:0.25});
        break;
       case 7:
        TransitionManager.start(imageHolder, {type:Rotate, direction:Transition.IN, duration:0.25});
        break;
       case 8:
        TransitionManager.start(imageHolder, {type:Squeeze, direction:Transition.IN, duration:0.25});
        break;
       case 9:
        TransitionManager.start(imageHolder, {type:Wipe, direction:Transition.IN, duration:0.25});
        break;
       case 10:
        TransitionManager.start(imageHolder, {type:Zoom, direction:Transition.IN, duration:0.25});
        break;
    } else
      trace("error - transitionType not recognized");
    if(autoStart == true)
       fl_startSlideShow();
       playPauseToggle_mc.gotoAndStop("pause");
    // END FUNCTIONS AND LOGIC

    I am havign the same problem with mine and i have tried all the suggestion on this thread, nothing is working. Still doesnt show images if I send the .swf file to a co worker. Anyone have any other ideas
    my code:
    import fl.data.DataProvider;
    import fl.events.ListEvent;
    import fl.transitions.*;
    import fl.controls.*;
    // USER CONFIG SETTINGS =====
    var secondsDelay:Number = 2;
    var autoStart:Boolean = true;
    var transitionOn:Boolean = true; // true, false
    var transitionType:String = "Squeeze"; // Blinds, Fade, Fly, Iris, Photo, PixelDissolve, Rotate, Squeeze, Wipe, Zoom, Random
    var hardcodedXML:String = "<photos><image title='Quality Coverage'>images/image1.JPG</image><image title='Money Savings'>images/image2.JPG</image><image title='Home Insurance'>images/image3.JPG</image><image title='Fred Loya has Got You Covered'>images/image4.JPG</image></photos>";
    // END USER CONFIG SETTINGS
    // DECLARE VARIABLES AND OBJECTS =====
    var imageList:XML = new XML();
    var currentImageID:Number = 0;
    var imageDP:DataProvider = new DataProvider();
    var slideshowTimer:Timer = new Timer((secondsDelay*1005), 0);
    // END DECLARATIONS
    // CODE FOR HARDCODED XML =====
    imageList = XML(hardcodedXML);
    fl_parseImageXML(imageList);
    // END CODE FOR HARDCODED XML
    // EVENTS =====
    imageTiles.addEventListener(ListEvent.ITEM_CLICK, fl_tileClickHandler);
    function fl_tileClickHandler(evt:ListEvent):void
        imageHolder.imageLoader.source = evt.item.source;
        currentImageID = evt.item.imgID;
    playPauseToggle_mc.addEventListener(MouseEvent.CLICK, fl_togglePlayPause);
    function fl_togglePlayPause(evt:MouseEvent):void
        if(playPauseToggle_mc.currentLabel == "play")
            fl_startSlideShow();
            playPauseToggle_mc.gotoAndStop("pause");
        else if(playPauseToggle_mc.currentLabel == "pause")
            fl_pauseSlideShow();
            playPauseToggle_mc.gotoAndStop("play");
    next_btn.addEventListener(MouseEvent.CLICK, fl_nextButtonClick);
    prev_btn.addEventListener(MouseEvent.CLICK, fl_prevButtonClick);
    function fl_nextButtonClick(evt:MouseEvent):void
        fl_nextSlide();
    function fl_prevButtonClick(evt:MouseEvent):void
        fl_prevSlide();
    slideshowTimer.addEventListener(TimerEvent.TIMER, fl_slideShowNext);
    function fl_slideShowNext(evt:TimerEvent):void
        fl_nextSlide();
    // END EVENTS
    // FUNCTIONS AND LOGIC =====
    function fl_parseImageXML(imageXML:XML):void
        var imagesNodes:XMLList = imageXML.children();
        for(var i in imagesNodes)
            var imgURL:String = imagesNodes[i];
            var imgTitle:String = imagesNodes[i].attribute("title");
            imageDP.addItem({label:imgTitle, source:imgURL, imgID:i});
        imageTiles.dataProvider = imageDP;
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_startSlideShow():void
        slideshowTimer.start();
    function fl_pauseSlideShow():void
        slideshowTimer.stop();
    function fl_nextSlide():void
        currentImageID++;
        if(currentImageID >= imageDP.length)
            currentImageID = 0;
        if(transitionOn == true)
            fl_doTransition();
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_prevSlide():void
        currentImageID--;
        if(currentImageID < 0)
            currentImageID = imageDP.length-1;
        if(transitionOn == true)
            fl_doTransition();
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_doTransition():void
        if(transitionType == "Blinds")
            TransitionManager.start(imageHolder, {type:Blinds, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Fade")
            TransitionManager.start(imageHolder, {type:Fade, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Fly")
            TransitionManager.start(imageHolder, {type:Fly, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Iris")
            TransitionManager.start(imageHolder, {type:Iris, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Photo")
            TransitionManager.start(imageHolder, {type:Photo, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "PixelDissolve")
            TransitionManager.start(imageHolder, {type:PixelDissolve, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Rotate")
            TransitionManager.start(imageHolder, {type:Rotate, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Squeeze")
            TransitionManager.start(imageHolder, {type:Squeeze, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Wipe")
            TransitionManager.start(imageHolder, {type:Wipe, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Zoom")
            TransitionManager.start(imageHolder, {type:Zoom, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Random")
            var randomNumber:Number = Math.round(Math.random()*9) + 1;
            switch (randomNumber) {
                case 1:
                    TransitionManager.start(imageHolder, {type:Blinds, direction:Transition.IN, duration:0.25});
                    break;
                case 2:
                    TransitionManager.start(imageHolder, {type:Fade, direction:Transition.IN, duration:0.25});
                    break;
                case 3:
                    TransitionManager.start(imageHolder, {type:Fly, direction:Transition.IN, duration:0.25});
                    break;
                case 4:
                    TransitionManager.start(imageHolder, {type:Iris, direction:Transition.IN, duration:0.25});
                    break;
                case 5:
                    TransitionManager.start(imageHolder, {type:Photo, direction:Transition.IN, duration:0.25});
                    break;
                case 6:
                    TransitionManager.start(imageHolder, {type:PixelDissolve, direction:Transition.IN, duration:0.25});
                    break;
                case 7:
                    TransitionManager.start(imageHolder, {type:Rotate, direction:Transition.IN, duration:0.25});
                    break;
                case 8:
                    TransitionManager.start(imageHolder, {type:Squeeze, direction:Transition.IN, duration:0.25});
                    break;
                case 9:
                    TransitionManager.start(imageHolder, {type:Wipe, direction:Transition.IN, duration:0.25});
                    break;
                case 10:
                    TransitionManager.start(imageHolder, {type:Zoom, direction:Transition.IN, duration:0.25});
                    break;
        } else
            trace("error - transitionType not recognized");
    if(autoStart == true)
       fl_startSlideShow();
       playPauseToggle_mc.gotoAndStop("pause");
    // END FUNCTIONS AND LOGIC
    /* Click to Load/Unload SWF or Image from a URL.
    Clicking on the symbol instance loads and displays the specified SWF or image URL. Clicking on the symbol instance a second time unloads the SWF or image.
    Instructions:
    1. Replace "http://www.helpexamples.com/flash/images/image1.jpg" below with the desired URL address of the SWF or image. Keep the quotation marks ("").
    2. Files from internet domains separate from the domain where the calling SWF resides cannot be loaded without special configuration.
    imageHolder.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF);
    import fl.display.ProLoader;
    var fl_ProLoader:ProLoader;
    //This variable keeps track of whether you want to load or unload the SWF
    var fl_ToLoad:Boolean = true;
    function fl_ClickToLoadUnloadSWF(event:MouseEvent):void
        if(fl_ToLoad)
            fl_ProLoader = new ProLoader();
            fl_ProLoader.load(new URLRequest("http://www.helpexamples.com/flash/images/image1.jpg"));
            addChild(fl_ProLoader);
        else
            fl_ProLoader.unload();
            removeChild(fl_ProLoader);
            fl_ProLoader = null;
        // Toggle whether you want to load or unload the SWF
        fl_ToLoad = !fl_ToLoad;
    /* Click to Load/Unload SWF or Image from a URL.
    Clicking on the symbol instance loads and displays the specified SWF or image URL. Clicking on the symbol instance a second time unloads the SWF or image.
    Instructions:
    1. Replace "http://www.helpexamples.com/flash/images/image1.jpg" below with the desired URL address of the SWF or image. Keep the quotation marks ("").
    2. Files from internet domains separate from the domain where the calling SWF resides cannot be loaded without special configuration.
    imageHolder.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_2);
    import fl.display.ProLoader;
    var fl_ProLoader_2:ProLoader;
    //This variable keeps track of whether you want to load or unload the SWF
    var fl_ToLoad_2:Boolean = true;
    function fl_ClickToLoadUnloadSWF_2(event:MouseEvent):void
        if(fl_ToLoad_2)
            fl_ProLoader_2 = new ProLoader();
            fl_ProLoader_2.load(new URLRequest("http://www.helpexamples.com/flash/images/image1.jpg"));
            addChild(fl_ProLoader_2);
        else
            fl_ProLoader_2.unload();
            removeChild(fl_ProLoader_2);
            fl_ProLoader_2 = null;
        // Toggle whether you want to load or unload the SWF
        fl_ToLoad_2 = !fl_ToLoad_2;

  • Advanced photo album template

    Adobe Flash Professional CS5, advanced photo album template
    Hi there,
    Hope someone can help me with this easy question.
    When I use the test movie function  working with the advanced photo album template my photos can not be found. I get the error message "Error #2044: Ej hanterad ioError:. text=Error #2035: URL:enhittades inte. URL: file:"
    I've checked the spelling of the filenames, I use for the photos:  image1.jpg, image2.jpg etc. so the filenames should be correct.
    Also all the files are in the same folder, both the fla-files and the image files.
    I'm using a 64 bit Windows 7 operating system, but except for this snag the program seems to be working perfectly ok..
    Getting weary of all the time consuming problems.
    Hoping someone can straighten this one out for me.
    br/Mats Jacobsson

    Code for updating the title is missing. Add following line of code inside function fl_tileClickHandler()
    title_txt.text = imageDP.getItemAt(currentImageID).label;

  • Advanced Photo Album Template Issue

    Hey all. I tried to create a photo album using the Advanced Photo Album Template that comes in Flash CS5. Everything seems to work fine - however, when you click on the thumbnails on the left hand side, the titles do not change to the appropriate thumbnail. The title simply remains the same for any thumbnail image, until you click the play or forward/backward buttons. The titles change fine when I hit the play button or scroll through with the forward or backward buttons, but not when you click on the individual thumbnails. Any idea how to change this so it functions correctly? Thanks everyone.

    Code for updating the title is missing. Add following line of code inside function fl_tileClickHandler()
    title_txt.text = imageDP.getItemAt(currentImageID).label;

  • Flash advanced photo album

    hi
    i have created the album successfully with my pictures, but i would like to know how to remove the autostart from the code. i want to do this becasue i am putting it on the website with a couple other albums and they all start to play at once. please let me know how to remove autostart from the code.
    thanks

    What are they? Are these albums individual .swf files that are imported, are they movie clips in the Library or are they actionscript classes? How are they added to the timeline or the display list?

  • CS6 Advanced Photo Album Template Upload Issue

    When I send the .swf to my coworker the images do not load. I have already made sure they image files are in the same folder has the .swf file. Please help
    Here is my code:
    import fl.data.DataProvider;
    import fl.events.ListEvent;
    import fl.transitions.*;
    import fl.controls.*;
    // USER CONFIG SETTINGS =====
    var secondsDelay:Number = 2;
    var autoStart:Boolean = true;
    var transitionOn:Boolean = true; // true, false
    var transitionType:String = "Squeeze"; // Blinds, Fade, Fly, Iris, Photo, PixelDissolve, Rotate, Squeeze, Wipe, Zoom, Random
    var hardcodedXML:String = "<photos><image title='Quality Coverage'>image1.JPG</image><image title='Money Savings'>image2.JPG</image><image title='Home Insurance'>image3.JPG</image><image title='Fred Loya has Got You Covered'>image4.JPG</image></photos>";
    // END USER CONFIG SETTINGS
    // DECLARE VARIABLES AND OBJECTS =====
    var imageList:XML = new XML();
    var currentImageID:Number = 0;
    var imageDP:DataProvider = new DataProvider();
    var slideshowTimer:Timer = new Timer((secondsDelay*1005), 0);
    // END DECLARATIONS
    // CODE FOR HARDCODED XML =====
    imageList = XML(hardcodedXML);
    fl_parseImageXML(imageList);
    // END CODE FOR HARDCODED XML
    // EVENTS =====
    imageTiles.addEventListener(ListEvent.ITEM_CLICK, fl_tileClickHandler);
    function fl_tileClickHandler(evt:ListEvent):void
        imageHolder.imageLoader.source = evt.item.source;
        currentImageID = evt.item.imgID;
    playPauseToggle_mc.addEventListener(MouseEvent.CLICK, fl_togglePlayPause);
    function fl_togglePlayPause(evt:MouseEvent):void
        if(playPauseToggle_mc.currentLabel == "play")
            fl_startSlideShow();
            playPauseToggle_mc.gotoAndStop("pause");
        else if(playPauseToggle_mc.currentLabel == "pause")
            fl_pauseSlideShow();
            playPauseToggle_mc.gotoAndStop("play");
    next_btn.addEventListener(MouseEvent.CLICK, fl_nextButtonClick);
    prev_btn.addEventListener(MouseEvent.CLICK, fl_prevButtonClick);
    function fl_nextButtonClick(evt:MouseEvent):void
        fl_nextSlide();
    function fl_prevButtonClick(evt:MouseEvent):void
        fl_prevSlide();
    slideshowTimer.addEventListener(TimerEvent.TIMER, fl_slideShowNext);
    function fl_slideShowNext(evt:TimerEvent):void
        fl_nextSlide();
    // END EVENTS
    // FUNCTIONS AND LOGIC =====
    function fl_parseImageXML(imageXML:XML):void
        var imagesNodes:XMLList = imageXML.children();
        for(var i in imagesNodes)
            var imgURL:String = imagesNodes[i];
            var imgTitle:String = imagesNodes[i].attribute("title");
            imageDP.addItem({label:imgTitle, source:imgURL, imgID:i});
        imageTiles.dataProvider = imageDP;
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_startSlideShow():void
        slideshowTimer.start();
    function fl_pauseSlideShow():void
        slideshowTimer.stop();
    function fl_nextSlide():void
        currentImageID++;
        if(currentImageID >= imageDP.length)
            currentImageID = 0;
        if(transitionOn == true)
            fl_doTransition();
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_prevSlide():void
        currentImageID--;
        if(currentImageID < 0)
            currentImageID = imageDP.length-1;
        if(transitionOn == true)
            fl_doTransition();
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_doTransition():void
        if(transitionType == "Blinds")
            TransitionManager.start(imageHolder, {type:Blinds, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Fade")
            TransitionManager.start(imageHolder, {type:Fade, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Fly")
            TransitionManager.start(imageHolder, {type:Fly, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Iris")
            TransitionManager.start(imageHolder, {type:Iris, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Photo")
            TransitionManager.start(imageHolder, {type:Photo, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "PixelDissolve")
            TransitionManager.start(imageHolder, {type:PixelDissolve, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Rotate")
            TransitionManager.start(imageHolder, {type:Rotate, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Squeeze")
            TransitionManager.start(imageHolder, {type:Squeeze, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Wipe")
            TransitionManager.start(imageHolder, {type:Wipe, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Zoom")
            TransitionManager.start(imageHolder, {type:Zoom, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Random")
            var randomNumber:Number = Math.round(Math.random()*9) + 1;
            switch (randomNumber) {
                case 1:
                    TransitionManager.start(imageHolder, {type:Blinds, direction:Transition.IN, duration:0.25});
                    break;
                case 2:
                    TransitionManager.start(imageHolder, {type:Fade, direction:Transition.IN, duration:0.25});
                    break;
                case 3:
                    TransitionManager.start(imageHolder, {type:Fly, direction:Transition.IN, duration:0.25});
                    break;
                case 4:
                    TransitionManager.start(imageHolder, {type:Iris, direction:Transition.IN, duration:0.25});
                    break;
                case 5:
                    TransitionManager.start(imageHolder, {type:Photo, direction:Transition.IN, duration:0.25});
                    break;
                case 6:
                    TransitionManager.start(imageHolder, {type:PixelDissolve, direction:Transition.IN, duration:0.25});
                    break;
                case 7:
                    TransitionManager.start(imageHolder, {type:Rotate, direction:Transition.IN, duration:0.25});
                    break;
                case 8:
                    TransitionManager.start(imageHolder, {type:Squeeze, direction:Transition.IN, duration:0.25});
                    break;
                case 9:
                    TransitionManager.start(imageHolder, {type:Wipe, direction:Transition.IN, duration:0.25});
                    break;
                case 10:
                    TransitionManager.start(imageHolder, {type:Zoom, direction:Transition.IN, duration:0.25});
                    break;
        } else
            trace("error - transitionType not recognized");
    if(autoStart == true)
       fl_startSlideShow();
       playPauseToggle_mc.gotoAndStop("pause");
    // END FUNCTIONS AND LOGIC
    /* Click to Load/Unload SWF or Image from a URL.
    Clicking on the symbol instance loads and displays the specified SWF or image URL. Clicking on the symbol instance a second time unloads the SWF or image.
    Instructions:
    1. Replace "http://www.helpexamples.com/flash/images/image1.jpg" below with the desired URL address of the SWF or image. Keep the quotation marks ("").
    2. Files from internet domains separate from the domain where the calling SWF resides cannot be loaded without special configuration.
    imageHolder.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF);
    import fl.display.ProLoader;
    var fl_ProLoader:ProLoader;
    //This variable keeps track of whether you want to load or unload the SWF
    var fl_ToLoad:Boolean = true;
    function fl_ClickToLoadUnloadSWF(event:MouseEvent):void
        if(fl_ToLoad)
            fl_ProLoader = new ProLoader();
            addChild(fl_ProLoader);
        else
            fl_ProLoader.unload();
            removeChild(fl_ProLoader);
            fl_ProLoader = null;
        // Toggle whether you want to load or unload the SWF
        fl_ToLoad = !fl_ToLoad;
    /* Click to Load/Unload SWF or Image from a URL.
    Clicking on the symbol instance loads and displays the specified SWF or image URL. Clicking on the symbol instance a second time unloads the SWF or image.
    Instructions:
    1. Replace "http://www.helpexamples.com/flash/images/image1.jpg" below with the desired URL address of the SWF or image. Keep the quotation marks ("").
    2. Files from internet domains separate from the domain where the calling SWF resides cannot be loaded without special configuration.
    imageHolder.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_2);
    import fl.display.ProLoader;
    var fl_ProLoader_2:ProLoader;
    //This variable keeps track of whether you want to load or unload the SWF
    var fl_ToLoad_2:Boolean = true;
    function fl_ClickToLoadUnloadSWF_2(event:MouseEvent):void
        if(fl_ToLoad_2)
            fl_ProLoader_2 = new ProLoader();
            fl_ProLoader_2.load(new URLRequest("http://www.helpexamples.com/flash/images/image1.jpg"));
            addChild(fl_ProLoader_2);
        else
            fl_ProLoader_2.unload();
            removeChild(fl_ProLoader_2);
            fl_ProLoader_2 = null;
        // Toggle whether you want to load or unload the SWF
        fl_ToLoad_2 = !fl_ToLoad_2;

    how would I check to make sure I am using relative paths?

  • Cs5 Advanced Photo Album Template Live Links

    I'm using this template as a "quick & dirty" content slider for my website. I got everything to work great, there's no issues with it's functionality or actionscript. I would just like to make each image a "clickable" link. I got 4 images that I want to take users to 4 separate webpages, I've searched and searched for answers but most are over my head. Is there anybody that could help me? Here's the actions:
    import fl.data.DataProvider;
    import fl.events.ListEvent;
    import fl.transitions.*;
    import fl.controls.*;
    // USER CONFIG SETTINGS =====
    var secondsDelay:Number = 7;
    var autoStart:Boolean = true;
    var transitionOn:Boolean = true; // true, false
    var transitionType:String = "Fade"; // Blinds, Fade, Fly, Iris, Photo, PixelDissolve, Rotate, Squeeze, Wipe, Zoom, Random
    var hardcodedXML:String="<photos><image title='Your Choice'>image1.jpg</image><image title='Quick Option'>image2.jpg</image><image title='New Product'>image3.jpg</image><image title='Get Started'>image4.jpg</image></photos>";
    // END USER CONFIG SETTINGS
    // DECLARE VARIABLES AND OBJECTS =====
    var imageList:XML = new XML();
    var currentImageID:Number = 0;
    var imageDP:DataProvider = new DataProvider();
    var slideshowTimer:Timer = new Timer((secondsDelay*1000), 0);
    // END DECLARATIONS
    // CODE FOR HARDCODED XML =====
    imageList = XML(hardcodedXML);
    fl_parseImageXML(imageList);
    // END CODE FOR HARDCODED XML
    // EVENTS =====
    imageTiles.addEventListener(ListEvent.ITEM_CLICK, fl_tileClickHandler);
    function fl_tileClickHandler(evt:ListEvent):void
        imageHolder.imageLoader.source = evt.item.source;
        currentImageID = evt.item.imgID;
    playPauseToggle_mc.addEventListener(MouseEvent.CLICK, fl_togglePlayPause);
    function fl_togglePlayPause(evt:MouseEvent):void
        if(playPauseToggle_mc.currentLabel == "play")
            fl_startSlideShow();
            playPauseToggle_mc.gotoAndStop("pause");
        else if(playPauseToggle_mc.currentLabel == "pause")
            fl_pauseSlideShow();
            playPauseToggle_mc.gotoAndStop("play");
    next_btn.addEventListener(MouseEvent.CLICK, fl_nextButtonClick);
    prev_btn.addEventListener(MouseEvent.CLICK, fl_prevButtonClick);
    function fl_nextButtonClick(evt:MouseEvent):void
        fl_nextSlide();
    function fl_prevButtonClick(evt:MouseEvent):void
        fl_prevSlide();
    slideshowTimer.addEventListener(TimerEvent.TIMER, fl_slideShowNext);
    function fl_slideShowNext(evt:TimerEvent):void
        fl_nextSlide();
    // END EVENTS
    // FUNCTIONS AND LOGIC =====
    function fl_parseImageXML(imageXML:XML):void
        var imagesNodes:XMLList = imageXML.children();
        for(var i in imagesNodes)
            var imgURL:String = imagesNodes[i];
            var imgTitle:String = imagesNodes[i].attribute("title");
            imageDP.addItem({label:imgTitle, source:imgURL, imgID:i});
        imageTiles.dataProvider = imageDP;
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_startSlideShow():void
        slideshowTimer.start();
    function fl_pauseSlideShow():void
        slideshowTimer.stop();
    function fl_nextSlide():void
        currentImageID++;
        if(currentImageID >= imageDP.length)
            currentImageID = 0;
        if(transitionOn == true)
            fl_doTransition();
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_prevSlide():void
        currentImageID--;
        if(currentImageID < 0)
            currentImageID = imageDP.length-1;
        if(transitionOn == true)
            fl_doTransition();
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_doTransition():void
        if(transitionType == "Blinds")
            TransitionManager.start(imageHolder, {type:Blinds, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Fade")
            TransitionManager.start(imageHolder, {type:Fade, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Fly")
            TransitionManager.start(imageHolder, {type:Fly, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Iris")
            TransitionManager.start(imageHolder, {type:Iris, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Photo")
            TransitionManager.start(imageHolder, {type:Photo, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "PixelDissolve")
            TransitionManager.start(imageHolder, {type:PixelDissolve, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Rotate")
            TransitionManager.start(imageHolder, {type:Rotate, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Squeeze")
            TransitionManager.start(imageHolder, {type:Squeeze, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Wipe")
            TransitionManager.start(imageHolder, {type:Wipe, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Zoom")
            TransitionManager.start(imageHolder, {type:Zoom, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Random")
            var randomNumber:Number = Math.round(Math.random()*9) + 1;
            switch (randomNumber) {
                case 1:
                    TransitionManager.start(imageHolder, {type:Blinds, direction:Transition.IN, duration:0.25});
                    break;
                case 2:
                    TransitionManager.start(imageHolder, {type:Fade, direction:Transition.IN, duration:0.25});
                    break;
                case 3:
                    TransitionManager.start(imageHolder, {type:Fly, direction:Transition.IN, duration:0.25});
                    break;
                case 4:
                    TransitionManager.start(imageHolder, {type:Iris, direction:Transition.IN, duration:0.25});
                    break;
                case 5:
                    TransitionManager.start(imageHolder, {type:Photo, direction:Transition.IN, duration:0.25});
                    break;
                case 6:
                    TransitionManager.start(imageHolder, {type:PixelDissolve, direction:Transition.IN, duration:0.25});
                    break;
                case 7:
                    TransitionManager.start(imageHolder, {type:Rotate, direction:Transition.IN, duration:0.25});
                    break;
                case 8:
                    TransitionManager.start(imageHolder, {type:Squeeze, direction:Transition.IN, duration:0.25});
                    break;
                case 9:
                    TransitionManager.start(imageHolder, {type:Wipe, direction:Transition.IN, duration:0.25});
                    break;
                case 10:
                    TransitionManager.start(imageHolder, {type:Zoom, direction:Transition.IN, duration:0.25});
                    break;
        } else
            trace("error - transitionType not recognized");
    if(autoStart == true)
       fl_startSlideShow();
       playPauseToggle_mc.gotoAndStop("pause");

    Without writing the code for you, the general idea is knowing what the image number is. That seems to be your issue. Your click events need to be able to extract the name of the image that was clicked (who's instance name can have that number in it). Based on that number you can determine what to do.
    Any MouseEvent.CLICK function handlers will give you the name (if you set it) of what was clicked.
    e.g.
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    var a:Sprite = new Sprite();
    a.beginFill(0xFF0000,1);
    a.graphics.drawRect(0,0,100,100); // draw red rectangle
    a.graphics.endFill();
    addChild(a);
    // give it a name
    a.name = "a_1";
    a.addEventListener(MouseEvent.CLICK, handleClick);
    // Now on a click, extract the name and use it:
    function handleClick(e:MouseEvent):void
         // what button was clicked?
         trace(e.target.name);
         // get the number
         var num:int = int(e.target.name.toString().split('_')[1]);
         trace("Button #" + num + " clicked");
         // do something based on the number
         if (num == 1)
              // do something based on button 1
         else if (num == 2)
              // do something based on button 2
         // etc...

  • Forward button bypasses delay in photo album

    I am a novice with Flash Pro but took on the challenge of creating a slideshow for a website. I used Flash Pro CS5 and the Advanced Photo Album template. I fought it out for a while and searched around for information before eventually getting it to load the images and work as coded.
    All went well and I published the .SWF and all the images to the site's root folder but whenever I click the 'forward' button it skips an image. The delay is set to 5 seconds but it would appear that the forward button bypasses the delay i.e. if I leave an image up for 3 seconds and then press the forward button, the next image will only display for 2 seconds before siwtching to the following one, despite the delay being set to 5. If I let it run automatically all the images follow the delay rule. I have included the code below. The only thing I have altered is the duration of the 'fade' transition from 0.25 to 1.
    Note: I have had to embed the HTML not the .SWF as when embedding the .SWF on the site it brought up the flash element but none of the images. Not sure if this is having an effect on the coding.
    Many thanks for any assistance
    import fl.data.DataProvider;
    import fl.events.ListEvent;
    import fl.transitions.*;
    import fl.controls.*;
    // USER CONFIG SETTINGS =====
    var secondsDelay:Number = 5;
    var autoStart:Boolean = true;
    var transitionOn:Boolean = true; // true, false
    var transitionType:String = "Fade"; // Blinds, Fade, Fly, Iris, Photo, PixelDissolve, Rotate, Squeeze, Wipe, Zoom, Random
    var hardcodedXML:String="<photos><image title='Rank Badges'>image1.png</image><image title='How It Works'>image2.png</image><image title='First Steps'>image3.png</image><image title='Brain Crank'>image4.png</image><image title='Natural Friendship'>image5.png</image><image title='Fire Hazard'>image6.png</image><image title='I Got This'>image7.png</image><image title='Magic Act'>image8.png</image><image title='Replay'>image9.png</image><image title='Samaritan'>image10.png</image><image title='No Tag Backs'>image11.png</image></photos>";
    // END USER CONFIG SETTINGS
    // DECLARE VARIABLES AND OBJECTS =====
    var imageList:XML = new XML();
    var currentImageID:Number = 0;
    var imageDP:DataProvider = new DataProvider();
    var slideshowTimer:Timer = new Timer((secondsDelay*1000), 0);
    // END DECLARATIONS
    // CODE FOR HARDCODED XML =====
    imageList = XML(hardcodedXML);
    fl_parseImageXML(imageList);
    // END CODE FOR HARDCODED XML
    // EVENTS =====
    imageTiles.addEventListener(ListEvent.ITEM_CLICK, fl_tileClickHandler);
    function fl_tileClickHandler(evt:ListEvent):void
        imageHolder.imageLoader.source = evt.item.source;
        currentImageID = evt.item.imgID;
    playPauseToggle_mc.addEventListener(MouseEvent.CLICK, fl_togglePlayPause);
    function fl_togglePlayPause(evt:MouseEvent):void
        if(playPauseToggle_mc.currentLabel == "play")
            fl_startSlideShow();
            playPauseToggle_mc.gotoAndStop("pause");
        else if(playPauseToggle_mc.currentLabel == "pause")
            fl_pauseSlideShow();
            playPauseToggle_mc.gotoAndStop("play");
    next_btn.addEventListener(MouseEvent.CLICK, fl_nextButtonClick);
    prev_btn.addEventListener(MouseEvent.CLICK, fl_prevButtonClick);
    function fl_nextButtonClick(evt:MouseEvent):void
        fl_nextSlide();
    function fl_prevButtonClick(evt:MouseEvent):void
        fl_prevSlide();
    slideshowTimer.addEventListener(TimerEvent.TIMER, fl_slideShowNext);
    function fl_slideShowNext(evt:TimerEvent):void
        fl_nextSlide();
    // END EVENTS
    // FUNCTIONS AND LOGIC =====
    function fl_parseImageXML(imageXML:XML):void
        var imagesNodes:XMLList = imageXML.children();
        for(var i in imagesNodes)
            var imgURL:String = imagesNodes[i];
            var imgTitle:String = imagesNodes[i].attribute("title");
            imageDP.addItem({label:imgTitle, source:imgURL, imgID:i});
        imageTiles.dataProvider = imageDP;
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_startSlideShow():void
        slideshowTimer.start();
    function fl_pauseSlideShow():void
        slideshowTimer.stop();
    function fl_nextSlide():void
        currentImageID++;
        if(currentImageID >= imageDP.length)
            currentImageID = 0;
        if(transitionOn == true)
            fl_doTransition();
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_prevSlide():void
        currentImageID--;
        if(currentImageID < 0)
            currentImageID = imageDP.length-1;
        if(transitionOn == true)
            fl_doTransition();
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_doTransition():void
        if(transitionType == "Blinds")
            TransitionManager.start(imageHolder, {type:Blinds, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Fade")
            TransitionManager.start(imageHolder, {type:Fade, direction:Transition.IN, duration:1});
        } else if (transitionType == "Fly")
            TransitionManager.start(imageHolder, {type:Fly, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Iris")
            TransitionManager.start(imageHolder, {type:Iris, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Photo")
            TransitionManager.start(imageHolder, {type:Photo, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "PixelDissolve")
            TransitionManager.start(imageHolder, {type:PixelDissolve, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Rotate")
            TransitionManager.start(imageHolder, {type:Rotate, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Squeeze")
            TransitionManager.start(imageHolder, {type:Squeeze, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Wipe")
            TransitionManager.start(imageHolder, {type:Wipe, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Zoom")
            TransitionManager.start(imageHolder, {type:Zoom, direction:Transition.IN, duration:0.25});
        } else if (transitionType == "Random")
            var randomNumber:Number = Math.round(Math.random()*9) + 1;
            switch (randomNumber) {
                case 1:
                    TransitionManager.start(imageHolder, {type:Blinds, direction:Transition.IN, duration:0.25});
                    break;
                case 2:
                    TransitionManager.start(imageHolder, {type:Fade, direction:Transition.IN, duration:1});
                    break;
                case 3:
                    TransitionManager.start(imageHolder, {type:Fly, direction:Transition.IN, duration:0.25});
                    break;
                case 4:
                    TransitionManager.start(imageHolder, {type:Iris, direction:Transition.IN, duration:0.25});
                    break;
                case 5:
                    TransitionManager.start(imageHolder, {type:Photo, direction:Transition.IN, duration:0.25});
                    break;
                case 6:
                    TransitionManager.start(imageHolder, {type:PixelDissolve, direction:Transition.IN, duration:0.25});
                    break;
                case 7:
                    TransitionManager.start(imageHolder, {type:Rotate, direction:Transition.IN, duration:0.25});
                    break;
                case 8:
                    TransitionManager.start(imageHolder, {type:Squeeze, direction:Transition.IN, duration:0.25});
                    break;
                case 9:
                    TransitionManager.start(imageHolder, {type:Wipe, direction:Transition.IN, duration:0.25});
                    break;
                case 10:
                    TransitionManager.start(imageHolder, {type:Zoom, direction:Transition.IN, duration:0.25});
                    break;
        } else
            trace("error - transitionType not recognized");
    if(autoStart == true)
       fl_startSlideShow();
       playPauseToggle_mc.gotoAndStop("pause");
    // END FUNCTIONS AND LOGIC

    Yes, declared the var transition:Class
    The error it gives now is:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at flash_rank_fla::MainTimeline/fl_parseImageXML()
              at flash_rank_fla::MainTimeline/frame1()
    The template is in Flash Professional CS5. New/Templates/Media Playback/Advanced Photo Album.
    I will admit this is all alien to me but I suppose this is the par for the course - trial and error.
    I am tempted to abandon this and go with something simpler but I was looking for the ability to pause the slide show and move froward/backward between images independant of the timer.
    This is the code as it stands
    import fl.data.DataProvider;
    import fl.events.ListEvent;
    import fl.transitions.*;
    import fl.controls.*;
    import flash.events.MouseEvent;
    import flash.events.TimerEvent;
    import flash.utils.Timer;
    // USER CONFIG SETTINGS =====
    var secondsDelay:Number = 5;
    var autoStart:Boolean = true;
    var transitionOn:Boolean = true; // true, false
    var transitionsList:Object = {Blinds: Blinds, Fade: Fade, Fly: Fly, Iris: Iris, Photo: Photo, PixelDissolve: PixelDissolve, Rotate: Rotate, Rotate: Rotate, Squeeze: Squeeze, Wipe: Wipe, Zoom: Zoom};
    var randomTransitions:Array = [Blinds, Fade, Fly, Iris, Photo, PixelDissolve, Rotate, Squeeze, Wipe, Zoom];
    var transitionType:String = "Fade"; // Blinds, Fade, Fly, Iris, Photo, PixelDissolve, Rotate, Squeeze, Wipe, Zoom, Random
    var imageList:XML = new XML(<photos><image title='Rank Badges'>image1.png</image><image title='How It Works'>image2.png</image><image title='First Steps'>image3.png</image><image title='Brain Crank'>image4.png</image><image title='Natural Friendship'>image5.png</image><image title='Fire Hazard'>image6.png</image><image title='I Got This'>image7.png</image><image title='Magic Act'>image8.png</image><image title='Replay'>image9.png</image><image title='Samaritan'>image10.png</image><image title='No Tag Backs'>image11.png</image></photos>);
    fl_parseImageXML(imageList);
    // END USER CONFIG SETTINGS
    // DECLARE VARIABLES AND OBJECTS =====
    var _currentImageID:Number = 0;
    var imageDP:DataProvider = new DataProvider();
    var slideshowTimer:Timer = new Timer((secondsDelay * 1000));
    slideshowTimer.addEventListener(TimerEvent.TIMER, fl_slideShowNext);
    // END DECLARATIONS
    // EVENTS =====
    imageTiles.addEventListener(ListEvent.ITEM_CLICK, fl_tileClickHandler);
    next_btn.addEventListener(MouseEvent.CLICK, fl_nextButtonClick);
    prev_btn.addEventListener(MouseEvent.CLICK, fl_prevButtonClick);
    playPauseToggle_mc.addEventListener(MouseEvent.CLICK, fl_togglePlayPause);
    function fl_tileClickHandler(e:ListEvent):void
        imageHolder.imageLoader.source = e.item.source;
        currentImageID = e.item.imgID;
    function fl_togglePlayPause(e:MouseEvent):void
        if (playPauseToggle_mc.currentLabel == "play")
            fl_startSlideShow();
            playPauseToggle_mc.gotoAndStop("pause");
        else if (playPauseToggle_mc.currentLabel == "pause")
            fl_pauseSlideShow();
            playPauseToggle_mc.gotoAndStop("play");
    function fl_nextButtonClick(e:MouseEvent):void
        fl_pauseSlideShow();
        fl_nextSlide();
    function fl_prevButtonClick(e:MouseEvent):void
        fl_pauseSlideShow();
        fl_prevSlide();
    function fl_slideShowNext(e:TimerEvent):void
        fl_nextSlide();
    // END EVENTS
    // FUNCTIONS AND LOGIC =====
    function fl_parseImageXML(imageXML:XML):void
        var imagesNodes:XMLList = imageXML.children();
        for (var i:String in imagesNodes)
            imageDP.addItem({label: imagesNodes[i].@title, source: imagesNodes[i], imgID: int(i)});
        imageTiles.dataProvider = imageDP;
        imageHolder.imageLoader.source = imageDP.getItemAt(currentImageID).source;
        title_txt.text = imageDP.getItemAt(currentImageID).label;
    function fl_startSlideShow():void
        slideshowTimer.start();
    function fl_pauseSlideShow():void
        slideshowTimer.stop();
    function fl_nextSlide():void
        currentImageID++;
    function fl_prevSlide():void
        currentImageID--;
    function get currentImageID():Number
        return _currentImageID;
    function set currentImageID(value:Number):void
        _currentImageID = value < 0 ? imageDP.length - 1 : value;
        _currentImageID = value >= imageDP.length ? 0 : value;
        imageHolder.imageLoader.source = imageDP.getItemAt(_currentImageID).source;
        title_txt.text = imageDP.getItemAt(_currentImageID).label;
        if (transitionOn)
            fl_doTransition();
    function fl_doTransition():void
        var transition:Class;
        var duration:Number = .25;
        if (transitionType == "Random")
            transition = randomTransitions[int(randomTransitions.length * Math.random())] as Class;
            duration = transition == Fade ? 1 : duration;
        else
            transition = transitionsList[transitionType] as Class;
            if (!transition)
                return;
        TransitionManager.start(imageHolder, {type: transition, direction: Transition.IN, duration: duration});
    if (autoStart)
        fl_startSlideShow();
        playPauseToggle_mc.gotoAndStop("pause");
    // END FUNCTIONS AND LOGIC

  • Is it possible to incorporate old photo albums into a Web Gallery?

    I created 9 photo albums with the first iteration of iWeb. Now I'm using iWeb '08 and have been consistently adding new photos to an existing Web Gallery via iPhoto. But I'd like to import or add those older albums into the Web Gallery.
    Looking for answers...

    Perhaps it would be better to just direct you to what I'm talking about.
    Here is a URL to the site I maintain for our family photos and movies:
    http://www.Derners.ws
    Along the top you will see navigation links to Web Galleries, Photo Albums and Movies. The Web Galleries were created as a result of iWeb 2.0 and the overall inclusion of the Web Gallery feature with iLife '08.
    The Photo Albums and Movies however, were created back in iWeb 1. These are still online as standalone pages. What my original question alludes to are these Photo Albums. I want to pull the content of the Photo Albums and incorporate it into my Web Galleries, thereby having all of it in one place. So when I complete this process a visitor who browses Derners.ws will go directly to the Web Galleries. No more "Photo Albums", no more "Movies". Just one stop for viewing everything.
    Does that make sense?

  • Movies on photo album page not working correctly

    I have movies on some photo album pages, and only since updating to Snow Leopard, when I click on a movie, the sound begins to play, but the picture sticks on the poster frame. If I go "back to album" and click the movie again, it will usually play normally. What gives? Anyone else have this happening?

    I have a similar problem with movies. Put a movie made on the iphone into a space holder place on a Blog page. Got the green plus sign and it played on the page.
    After publishing I see the first frame on the main blog page, but when I click read more to see the movie and whole blog entry I get a faded quicktime symbol with a question mark symbol in the middle.

  • All my photos on my phone are in 1 album. Is there a way to create new albums and move some pictures to them?

    All my photos on my phone are in one album. Is there a way to create new albums and move some of them?

    With photos transferred from your computer, you create the albums or folders on your computer.
    If you manually manage photo storage on your computer, create a parent folder that will store the named folders of photos you want transferred to your iPhone. Place the named folders of photos in this parent folder and select the parent folder under the Photos tab for your iPhone sync preferences with iTunes followed by a sync. The folders of photos inside of the parent folder on your computer's hard drive will be transferred to your iPhone as separate albums. To add an additional album of photos to your iPhone, place the folder of photos in the parent folder followed by a sync. To remove an album of photos from your iPhone, move the folder of photos outside of the parent folder followed by a sync.

  • My Apple TV stops and returns to main menu during movie playback and photo slide show via homesharing. I have a second Apple TV in another room that works fine.

    My Apple TV stops and returns to main menu during movie playback and photo slide show via homesharing. I have a second Apple TV in another room that works fine.

    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel.

  • How do I move my downloaded video clips (from youtube etc) into my photo album so I can see them in the aurasma app?

    I want to use videos downloaded from youtube in the AR app Aurasma, but, I don't know how to move the video clips into my photo album to do this.

    1 - select the photo(s) in iPhoto and export (file menu ==> export) to a desktop folder - mount the USB drive and drag that folder to it.  I usually use the export custom size option to limit teh photo to the maximum pixel dimension of the photo frame letting me have more photos on the USB drive
    2 - to restore the iPhoto icon in the dock launch iPhoto from the Applications folder and right click on the icon in the Dock sleecting keep in Dock
    LN

  • How to move picture from email to photo album

    How do I move photo from email to photo album ?

    If you press and hold the photo in the email then after a second or two you should get a popup with a list of options, one being to save it to the camera roll.

  • PC Mac: How to move "saved photos" album?

    I am moving my iTunes library from my PC onto my MBP and I need help on moving my ENTIRE iPod touch's content off its iTunes onto my Mac. I have done the songs/apps/podcasts via the "Share" option.
    Anyways, I want to sync my iPod Touch w/ my MBP's iTunes asap and just need help so the pictures (from the "saved photos" section transfer over as is; I have over 6200 of them, ahem.
    Unless, of course, the "saved photos" album stays the same even if you switch to another iTunes or would it get erased when synced to a new library? I HATE ITUNES FOR THIS VERY REASON. They need to come up w/ a more efficient to transfer iTunes-to-iTunes, the hassle is way too much.
    I would love if anyone has better ideas on how to switch iPod touch content over from a PC iTunes to a Mac iTunes.

    To move iTunes from Windows to Mac see here
    http://www.macworld.com/article/146958/2010/03/moveitunes_windowsmac.html
    Photos on your Touch don't sync with iTunes but with photo programs such as iphoto or Photoshop elements. If you've never done this then photos saved on your iPod are only on your iPod. iTunes will backup your iPod, including your photos, when you sync with iTunes but you won't be able to browse them on your computer this way.
    If you've moved over your entire iTunes library as mentioned above then you will be able to continue syncing and backing up your iPod with it as normal.

Maybe you are looking for

  • Blackbery z 10 built in speakers doesnt work

    Since 2 days my blackberry z 10 built in speakers arent working,no alerts or music or video sounds,updated the software,restarted,rebooted did everything to rectify the problem,but no luck as yet,pls help...

  • Install cd doesnt work

    i have a 3rd generation ipod, and a new macbook. ive tried installing the cd, but it says i need a networking update for mac os x, which i am not sure what it is and if it will actually help. is there another way to install my ipod besides the cd? or

  • I can not open my address book.

    I can not open my address book.  I followed directions to unlock it but  that did not help and I can only hope that it didn't hurt.  Any suggestions?

  • ISE install/upgrade question

    I have an ISE 3395 appliance that comes with ISE version 1.1.1. I've decided to upgrade it to version 1.1.2 patch 5 (latest patch version) and played with it for a few days.  I set it up as a stand-alone box. Now, I need to deploy this box as adminis

  • After I installed Shockwave Flash 11.4 r402 I cannot open youtube videos with Safari 6.0.2. I still can open them with Firefox

    I get only a black screen and I cannot play the videos. I removed the flash plugin and reinstalled but this did not make any difference.