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?

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 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?

  • 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;

  • 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;

  • 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

  • How do I solve this problem:Photo's no longer displayed (Adobe Flash player 13,0,0,214) in online photo album maker (Webprint.nl) after update to Firefox 29.0.1

    After I (automatically) updated to Mozilla Firefox version 29.0.1, the online photo album crreator of Webprint.nl no longer displayes the photo's that I uploaded.
    The photo's are displayed again when I use an older Firefox browser (version 28.*) from an another computer. This is my old (WIndows Vista) computer that I use when my new Windows 7 computer has problems.
    It looks like the new Firefox has a problem with Adobe Flash player 13,0,0,214; which is the newest version according to Adobe.
    Please help!
    Kid regards, Rob from Gouda, NL.

    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache
    Press the '''<Alt>''' or '''<F10>''' key to bring up the tool bar.
    Followed by; Windows; '''Tools > Options''' Linux; '''Edit > Preferences'''
    Mac; ''application name'' '''> Preferences'''
    Then '''Advanced > Network > Cached Web Content: Clear Now'''
    and
    * Remove Cookies
    Press the '''<Alt>''' or '''<F10>''' key to bring up the tool bar.
    Followed by; Windows; '''Tools > Options''' Linux; '''Edit > Preferences'''
    Mac; ''application name'' '''> Preferences'''
    Then '''Privacy.'''
    Under '''History''', select Firefox will '''Use Custom Settings'''.
    There is a button on the right side called '''Show Cookies'''.
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''''' {web link}
    While you are in safe mode;
    Press the '''<Alt>''' or '''<F10>''' key to bring up the tool bar.
    Followed by; Windows; '''Tools > Options''' Linux; '''Edit > Preferences'''
    Mac; ''application name'' '''> Preferences'''
    Then '''Advanced > General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites and see if there is still a problem. Then restart.

  • Best way to insert non-flash photo album in Dreamweaver CS5.5

    Using Dreamweaver CS4, I created my wife's art website.  It is:  www.tanglewoodbrushstrokes.com
    To insert photo albums, I used Bridge and Fireworks.  Once past the initial learning curve, I was able to create these albums fairly easily.  However, these albums have two limitations that I would like to address.
    1.  Adding or deleting an image requires creating a new album and then posting it on the page.  Now that I have practice, it doesn't take me very long to do this but there must be a simpler way.  As you will see on my wife's site, she has many pages of photo albums.  Moving photos from her "Recent Creations" page means those images my be disbursed over three or four different albums.  So this can be very time consuming.
    2.  The albums created in this manner are flash galleries and are not visible on Iphones or Ipads.
    I recently purchased Dreamweaver CS5.5 so I could use HTML5 in order to make my site work on Iphones and Ipads as well as PC's.  I have nearly completed the tutorial and am about ready to create a new site.  Today I have done some searching for ways to use non-flash galleries and have not come up with a definitive answer.
    As you can see on my wife's website, the galleries are fairly simple.  All I really need is a page of thumbnails leading to a larger image with a description.  I want to keep it that way.
    Any suggestions?

    There is no one size fits all solution to this.  You're using DW to make a gallery and it's not really a gallery creation tool per se.  It's web authoring software.  So whichever gallery solution you choose it's going to come from someplace else.  And then you must integrate it into your HTML pages.
    Personally, I really like dynamic slideshows with jQuery.  Add some PHP code to your page.  Upload jQuery   scripts and optimized images to your server.  Done.
    To swap images later, add/delete files from image folder on server. Done.
    You can see a live demo of this below:
    http://alt-web.com/DynamicSlides/
    http://jalbum.net/
    If you want to generate a lot of different galleries quickly, look at JAlbum.  It's a commercial product that creates the thumbnail images & HTML pages for you.  There are lots of skins (styles) to choose from and you can further customize layouts with CSS.
    http://www.projectseven.com/products/galleries/ssm/index.htm
    PVII Slide Show Magic - extension for Dreamweaver
    jQuery Fancy Box ~
    http://fancybox.net/
    57 Free Image Gallery Solutions with jQuery ~
    http://www.1stwebdesigner.com/css/57-free-image-gallery-slideshow-and-lightbox-solutions/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • What is your favorite flash photo album?

    Looking to see what people are using for flash photo albums.
    I know I scan search for google and I know if I had flash I could
    make it. I dont have it, I have cold fusion and I program cold
    fusion, but for my needs I want to use flash.
    I like an automated slideshow function with forward back
    buttons, watermarking.
    Loaded through URL variables or through a text file is fine
    as I can deal with that through Cold Fusion.
    Free open source code is preferred, but I would like to know
    what people are using.
    Thanks!
    KM

    Can you please suggest a better software to purchase that if much more "user friendly" and creates a high quality product?
    No.
    using Macs since '86, I've seen PaintBoxes and Quantel systems at work, sit aside when Masters used Premiere Pro, I do own & use FCE… I have knowledge of Hyperengine, and Avid free …-
    I never saw a simpler metaphor then "sorting slides" as in iM; most post we read here are, because people start to edit their movies with zero-manual-reading…- which works in 90% of cases…
    and, iM supports the same codec as any miniDV camcorder (or even HD)… => not bit gets lost in quality…
    more user friendly with high quality?
    no idea...... (even with less quality…)
    (iM has its hurdles and some real bugs, ask forum members Matti or Karl… but for me, the average user - no problems so far....)

  • Flash Prof. CS5 simple photo album/slideshow template

    I am trying to use the "simple photo album" template that comes with Flash Prof. CS5. I have it working except I want it to play by default. The actionscript that came with the template is below (in blue), but if I set var autoStart:Boolean = true; I get the following error and the controls do not work:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at nt_fla::MainTimeline/fl_startSlideShow()
    at nt_fla::MainTimeline/frame1()
    // USER CONFIG SETTINGS =====
    var autoStart:Boolean = false; //true, false
    var secondsDelay:Number = 2; // 1-60
    // END USER CONFIG SETTINGS
    // EVENTS =====
    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();
    var currentImageID:Number;
    var slideshowTimer:Timer;
    var appInit:Boolean;
    function fl_slideShowNext(evt:TimerEvent):void
    fl_nextSlide();
    // END EVENTS
    // FUNCTIONS AND LOGIC =====
    function fl_pauseSlideShow():void
    slideshowTimer.stop();
    function fl_startSlideShow():void
    slideshowTimer.start();
    function fl_nextSlide():void
    currentImageID++;
    if(currentImageID >= totalFrames)
      currentImageID = 0;
    gotoAndStop(currentImageID+1);
    function fl_prevSlide():void
    currentImageID--;
    if(currentImageID < 0)
      currentImageID = totalFrames+1;
    gotoAndStop(currentImageID-1);
    if(autoStart == true)
       fl_startSlideShow();
       playPauseToggle_mc.gotoAndStop("pause");
    } else {
      gotoAndStop(1);
    function initApp(){
    currentImageID = 0;
    slideshowTimer = new Timer((secondsDelay*1000), 0);
    slideshowTimer.addEventListener(TimerEvent.TIMER, fl_slideShowNext);
    if(appInit != true){
    initApp();
    appInit = true;
    // END FUNCTIONS AND LOGIC
    Does anyone have any idea how to fix this so that the slideshow starts automatically and stops when the pause button is clicked?
    Thanks,
    Lisa

    I finally got it to work, but had to edit the action script because it seemed to have a logic error. Here is the action script I finally used; maybe this will help you:
    // USER CONFIG SETTINGS =====
    var autoStart:Boolean = false; //true, false
    var secondsDelay:Number = 3; // 1-60
    // END USER CONFIG SETTINGS
    // EVENTS =====
    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
    if(playPauseToggle_mc.currentLabel == "pause")
      fl_pauseSlideShow();
      playPauseToggle_mc.gotoAndStop("play");
    fl_nextSlide();
    function fl_prevButtonClick(evt:MouseEvent):void
      fl_pauseSlideShow();
      playPauseToggle_mc.gotoAndStop("play");
    fl_prevSlide();
    var currentImageID:Number;
    var slideshowTimer:Timer;
    var appInit:Boolean;
    function fl_slideShowNext(evt:TimerEvent):void
    fl_nextSlide();
    // END EVENTS
    // FUNCTIONS AND LOGIC =====
    function fl_pauseSlideShow():void
    slideshowTimer.stop();
    function fl_startSlideShow():void
    slideshowTimer.start();
    function fl_nextSlide():void
    currentImageID++;
    if(currentImageID > totalFrames)
      currentImageID = 1;
    gotoAndStop(currentImageID);
    function fl_prevSlide():void
    currentImageID--;
    if(currentImageID <= 0)
      currentImageID = totalFrames;
    gotoAndStop(currentImageID);
    if(autoStart == true)
       fl_startSlideShow();
       playPauseToggle_mc.gotoAndStop("pause");
    } else {
      gotoAndStop(1);
    function initApp(){
    currentImageID = 0;
    slideshowTimer = new Timer((secondsDelay*1000), 0);
    slideshowTimer.addEventListener(TimerEvent.TIMER, fl_slideShowNext);
    slideshowTimer.start();
        playPauseToggle_mc.gotoAndStop("pause");
    if(appInit != true){
    initApp();
    appInit = true;
    // END FUNCTIONS AND LOGIC

  • Flash Photo Album

    I'm looking for a really good flash photo album that I can
    use/install within a webpage built by Dreamweaver. I've seen lots
    of different applications out there that are designed to do this.
    I'm not necessarily looking for freeware. But I am looking for
    something that is decent, allows for customization, and flash
    driven...
    Good afternoon,
    Kareem
    (from soggy California)

    Try slideshowpro.net - its very good!
    Brendon
    "Heyjoojoo" <[email protected]> wrote in
    message
    news:fntklf$6l9$[email protected]..
    > I'm looking for a really good flash photo album that I
    can use/install
    > within a
    > webpage built by Dreamweaver. I've seen lots of
    different applications out
    > there that are designed to do this. I'm not necessarily
    looking for
    > freeware.
    > But I am looking for something that is decent, allows
    for customization,
    > and
    > flash driven...
    >
    > Good afternoon,
    > Kareem
    > (from soggy California)
    >

  • Flash Photo Albums

    Is there a way to include a flash photo album in an iWeb site without messing with the html code after the site is created?
    Of course, the problem with that approach is that the html is changed each time the site is republished.
    Thanks.

    The easiest thing to do would probably to link to an external (outside of iWeb) URL where the flash photo album resides. You could have the flash photo albums inside the Sites folder on your iDisk and then designate hyperlinks to the appropriate albums on an iWeb page. I think the hyperlink will be of the format: "http://homepage.mac.com/yourname/photoalbumfoldername/"
    Hopefully this is helpful.
    James
    http://www.dirtdoog.com/

  • Can't select any photos in camera roll or photo album... help!

    I have a iphone 3Gs on 4.2.1
    If I go to my camera roll or any photo album, I can enter but if I select an image in the camera roll or photo album it just automatically closes and goes back to the home screen. Hard reboot, reboot is still the same.
    Any suggestions as to the cause?
    Thanks in advance!

    I am having the same thing as well. I click the photos app, I try view the photos I have taken, it just closed out of the photos app and goes straight back to the home screen. There is another way to see the photos you have taken. You click on the camera, then you click on the photos on the bottom left corner, it works for me. I can see all the pictures I have taken.
    I've been having problems with my camera, whenever I take a picture (with/without flash) my photos turn out black, was wondering if anyone can help us out about this problem.

Maybe you are looking for

  • How can I copy a table from a web file and paste it into a word document on a pc?

    I am having diffculty getting a pdf file from a web document pasted into my word document.  I do no get the option to copy or save as a table.  I can copy and paste the text but I lose the table and the format and just get the text.  Anybody know wha

  • Screen is magnified after viewing movie on television.

    Screen is magnified after viewing movie on television.  It automatically goes larger when connecting to TV and usually goes smaller when disconnecting .  This time it has remained large.

  • Background image not displaying

    I'm developing pages that will each have a different background image. i've defined a div with the bg image in it and put that div in the code, but the bg image doesn't show up. i've also tried adding a bg color to the div and that doesn't show up ei

  • RPRAPA000 : Change Employee vendor record

    Using RPRAPA000 pgm we should be able to update following fields: Names Address Email address- User exit Tax No Bank Details Payment Method Search Term is updated with last name Company Code Fields from Reference vendor u2013 Non HR data Reconciliati

  • JLabel spacing

    I have a component with a JLabel above it. Both of these components are centered relative to the component that is next to it. However, it is not coming out quite right. It appears that the JLabel has 4 pixels of extra space above it. This spacing I