XML Image Gallery

I'm creating my first xml driven image gallery in AS3 and could use  some help.  It's a pretty basic gallery that consists of a large image  with thumbnails below it.  You should see the large version of the  thumbnails when you click on them, they should rotate chronilogically on  it's own (use timer event?), and you should be able to scroll left or  right in order to view additional thumbnails.
Below is  what I have so far.  My first task is to get the thumnails to line up  correctly.  I got the y value correct, but I need to space them out by  10px appropriatley.  How can I do this? Thanks!
Jesse
import flash.events.Event;
import flash.display.MovieClip;
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.MouseEvent;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import flash.events.ProgressEvent;
var myXML:XML;
var myXMLLoader:URLLoader = new URLLoader();
myXMLLoader.load(new URLRequest("images.xml"));
myXMLLoader.addEventListener(Event.COMPLETE, processXML);
var myImagePreloader:mcPreloader = new mcPreloader();
myImagePreloader.x = stage.stageWidth / 2;
myImagePreloader.y = stage.stageHeight / 2;
myImagePreloader.width = 75;
myImagePreloader.height = 75;
var container_mc:MovieClip;
var xCounter:Number = 0;
function processXML(event:Event):void
    myXML = new XML(myXMLLoader.data);
    myXMLLoader.removeEventListener(Event.COMPLETE, processXML);
    myXMLLoader = null;
    //createContainer();
    loadThumbs();
function createContainer():void
    container_mc = new MovieClip();
    //container_mc.x = my_x;
    container_mc.y = 510;
    addChild(container_mc);
    /*container_mc.addEventListener(MouseEvent.CLICK, callFull);
    container_mc.addEventListener(MouseEvent.MOUSE_OVER, onOver);
    container_mc.addEventListener(MouseEvent.MOUSE_OUT, onOut);*/
    container_mc.buttonMode = true;
    /*preloaders_mc = new MovieClip();
    preloaders_mc.x = container_mc.x;
    preloaders_mc.y = container_mc.y;
    addChild(preloaders_mc);*/
function loadThumbs():void
    var thumbLoader:Loader = new Loader();
    for(var i:Number = 0; i < myXML.image.length(); i++)
        var thumbURL = myXML.image[i].@thumb;
        thumbLoader.load(new URLRequest(thumbURL));
        thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
        thumbLoader.y = 510;
        //trace(imageWidth);
function loadFull():void
    var fullImageLoader:Loader = new Loader();
    //var imageURL = myXML.image[i].@file;
    /*fullImageLoader.load(new URLRequest(imageURL));
    fullImageLoader.contentLoaderInfo.addEventListener(Event.OPEN, addPreloader);
    fullImageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, preloadImages);
    fullImageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);*/
/*function addPreloader(event:Event):void
    addChild(myImagePreloader);
function preloadImages(event:ProgressEvent):void
    var percent:Number = Math.round(event.bytesLoaded / event.bytesTotal * 100);
    percent_txt.text = percent + "%";
function imageLoaded(event:Event):void
    var myLoadedImage:Loader = Loader(event.target.loader);
    addChild(myLoadedImage);
    new Tween(myLoadedImage, "alpha", Strong.easeIn, 0, 1, 0.5, true);
    percent_txt.text = "";
    removeChild(myImagePreloader);
    event.target.loader.removeEventListener(Event.OPEN, addPreloader);
    event.target.loader.removeEventListener(ProgressEvent.PROGRESS, preloadImages);
    event.target.loader.removeEventListener(Event.COMPLETE, imageLoaded);
function thumbLoaded(event:Event):void
    var myLoadedThumb:Loader = Loader(event.target.loader);
    addChild(myLoadedThumb);

What you will want to do is maintain a placement variable that you adjust for each new thumbnail you add.  So the first might go at xValue = 0.  Once that thumbnail is processed you then add the width of that thumbnail plus the 10 pixels space you want.
If you know that the widths will all be the same and what that value is, then you can assign the location for the thumbnail loader prior to it loading like you do for the y property.
Otherwise, you will need to wait until the thumbnail has loaded before you can determine the width... which would mean you will need to load the thumbnails sequencially rather than using a for loop since they will not necessarily load in the order they are executed to do so.  It is basically somewhat like what relaxatraja provided except using the width property.

Similar Messages

  • Cool XML image gallery

    Hi Everyone,
    I've seen a really cool XML image gallery on the followng page: http://www.webbers.co.uk/property/view/id/6407
    Does anyone know of a tutorial which may help me create something similar?
    Regards.

    http://www.flashxml.net/cover-flow.html

  • Anyone have a good tutorial for an AS3-XML image gallery?

    I'm a pretty good Flash developer, but I've never worked with XML in Flash.  I'm looking for a good tutorial on creating an XML driven image gallery, but I have yet to really find anything.  Does anyone out there have a good tutorial?  Thanks!
    Jesse

    Your best bets for getting something more specific to your needs will either be to...
    - search Google using terms like "AS3 XML gallery tutorial" and "AS3 XML slideshow tutorial"
    - take one fairly complicated tutorial and learn how it works down to understanding each element of what is being done.  Once you a proper level of understanding you should be able to reason out how to create one of your own with whatever different features you prefer

  • HELP! - XML Image gallery, simple problem

    I've posted this problem before and gotten no response. Very
    simple I'm sure, I just don't know much Flash. Basically I've
    created an image gallery that should look like this:
    http://www.flashcomponents.net/upload/samples/1448/index.html.
    The problem is that the thumbnails are not being accessed properly
    (from what I can tell), making it look like this:
    http://shortydesigns.com/index.html.
    The images are all in the same folder and since one thumbnail is
    loading, I can't see why the others aren't. The Actionscript in the
    Flash file is as follows (it was created with Flash 10):
    First Piece of Code
    stop();
    // specify the url where folder is located below (if
    applicable)
    toadd = "";
    t = 0;
    l = 0;
    theside = 1;
    galxml = new XML();
    galxml.load(toadd+"flash/fashion/easy-xml-gallery-2.xml");
    galxml.ignoreWhite = true;
    galxml.onLoad = function(success) {
    if (success) {
    maxnum = galxml.firstChild.childNodes.length;
    for (n=0; n<maxnum; n++) {
    specs = galxml.firstChild.childNodes[n];
    // TEXT FOR SIDE NAV
    duplicateMovieClip(side.thumbs.thumbsb, "thumbs"+n, n);
    thumbclip = eval("side.thumbs.thumbs"+n);
    thumbclip._x = n*100;
    thumbclip.thetitle = specs.attributes.name;
    thumbclip.theurl = specs.attributes.theurl;
    thumbclip.thecaption = specs.attributes.caption;
    thumbclip.thenum = n+1;
    thumbclip._alpha = 100;
    loadMovie(toadd+"flash/fashion/images/"+(n+1)+"b.jpg",
    thumbclip.thumbload.thumbload2);
    play();
    side.thumbs.thumbsb._visible = false;
    mainperc.onEnterFrame = function() {
    if (mainperc.perc<98) {
    mainperc._alpha += 5;
    mainperc.perc = Math.round(l/t*100);
    mainperc.perctext = mainperc.perc+"%";
    mainperc.ltext = "OF THUMBNAILS LOADED
    ("+Math.round(t/1024)+"kb)";
    if (mainperc.perc>98) {
    // mainperc._alpha -= 5;
    if (mainperc._alpha<-50) {
    delete mainperc.onEnterFrame;
    Later in the timeline:
    stop();
    pic.info.thenum = side.thumbs.thumbs0.thenum;
    pic.info.thecaption = side.thumbs.thumbs0.thecaption;
    pic.info.thetitle = side.thumbs.thumbs0.thetitle;
    pic.info.theurl = side.thumbs.thumbs0.theurl;
    loadMovie(_root.toadd+"flash/fashion/images/1.jpg",
    pic.pic2.pic3);
    onEnterFrame = function () { side.gotoa = 110;if
    (side._alpha>99) {side._alpha = 100;delete
    onEnterFrame;}side.lefta = side.gotoa-side._alpha;side._alpha +=
    side.lefta/5;pic._alpha = side._alpha;};

    I noticed two thing:
    1. I guess the error occurs when currentImage variable is out
    of range of sortedXML array. You, perhaps need to trace this var
    and see at what point the error happens.
    2. Unless I missed someting, It seems that you always load
    images. At some point you load images that are already loaded. It
    is inefficient. You, perhaps, better off reusing already loaded
    images.

  • Preloader for xml image gallery

    Hi,
    I am a little stuck as to where to begin; I have created a
    photo gallery and now need to add some preloader capability to it.
    The images are brought in via XMLList etc... What I have in mind, I
    would like to display a preloader untill all the images are ready
    for viewing - not wanting to preload individual images one by one
    I also have a document class within the gallery swf file, I
    beleive that this may cause conflicts with attaching a preloader to
    frame 1 - I have tried preloading the gallery swf file via a
    preloader.swf; the end result still leaves me with having to
    provide a preloader within the gallery swf.
    Can anyone point me to any good examples, for me to get on
    with it. Any help would be really appreciated folks ;)
    Kind Regards,
    Boxing Boom

    Hi Kglad,
    Thank you for your response: my images are loading sequentially via the following code segment;
    //initialize the loader object
       loader=new Loader();
       //add an onInit event to the contentLoadedInfo
       loader.contentLoaderInfo.addEventListener(Event.INIT, onImageLoaded);
       //create the fake holder
       fakeHolder=new Sprite();
       //and add to it the loader
       fakeHolder.addChild(loader);
       //no need to add it to the stage
       //force the resizeHandler to be called
       resizeHandler(null);
       //Load the XML file
       xmlLoader=new URLLoader();
       //assign the Complete loading event
       xmlLoader.addEventListener(Event.COMPLETE,parseXML);
       //load the file
       xmlLoader.load(new URLRequest("data.xml"));
       //initialize the url request
       urlRequest=new URLRequest();
    What I would like to do now is preload these,
    Would the code to acheive this be:
    xmlLoader.addEventListener(ProgressEvent.PROGRESS ,onProgress);
    private function onProgress(pe:ProgressEvent):void
       // this bit is what I do not understand; i.e. your x/n + bl/(bt*n) fraction example
    Any further help on this on, would be really appreciated Kglad.
    Kind Regards,
    Boxing Boom

  • XML image gallery problem

    Hi! I've builded this XML gallery, and suddenly Im getting an
    error when Im loading the pictures.
    Its only sometimes the error comes.
    TypeError: Error #2007: Parameter url must be non-null.
    at flash.display::Loader/_load()
    at flash.display::Loader/load()
    at imageviewer_xml_subcats_fla::MainTimeline/allLoadXML()
    at
    imageviewer_xml_subcats_fla::MainTimeline/goForwardSorted()
    at imageviewer_xml_subcats_fla::MainTimeline/sortMe()
    Can anyone help me?
    Flash file incl XML
    imageview.fla

    I noticed two thing:
    1. I guess the error occurs when currentImage variable is out
    of range of sortedXML array. You, perhaps need to trace this var
    and see at what point the error happens.
    2. Unless I missed someting, It seems that you always load
    images. At some point you load images that are already loaded. It
    is inefficient. You, perhaps, better off reusing already loaded
    images.

  • Image gallery From an XML file...

    Will flash reconize an XML file that is parameter based (Call
    Functions) into a database to create a type of listing service to
    show homes for sale?
    My client is wanting a basic image gallery for now that will
    later become a a fullfledged interactive document later down the
    road for showing options in the homes they build. First, they have
    Spec homes that they want to showcase (simply put these are homes
    they already built and are sitting on the property that are move in
    ready).
    Step 1:
    The end user would visit an HTML (CFM) document where they
    would choose there search criteria.
    Step 2:
    then another page would show with an exterior photo of the
    home, and a breif description where the user would select the home
    they want to view more infomation.
    Step 3:
    This then would load the image viewer which is the flash
    file, that would call to the XML file to load the parameters to
    which home model to show.
    The home will have a unique home model name in which the
    photos are labeled accordingly the same way...
    Exterior = ModelHomeName.jpg
    Image 1 = ModelHomeName_1.jpg
    Image 2 = ModelHomeName_2.jpg
    Image 3 = ModelHomeName_3.jpg
    Image 4 = ModelHomeName_4.jpg
    Image 5 = ModelHomeName_5.jpg
    etc...
    Is there a certain way flash has to read the XML file with
    parameters to translate it? Or what is the quickest possible way?
    Thanks,
    Eric

    Any luck anyone?

  • Making clickable buttons to open xml images in gallery

    I want to do an xml grid image gallery similar to http://www.republicofcode.com/tutorials/flash/as3gridgallery/
    However, instead of using thumbnails, I already have images on my site that I want to make clickable buttons to open the images in the gallery...how would I script these buttons?
    [link removed by moderator]

    If you want it to be similar to the one you link then use the images in the grid like in the one you linked.

  • XML grid gallery not loading full images(except for one)

    hi,
    I just created my first flash website, but one of my XML image galleries is not working properly. I am using the same (code, layout, just different pics and xml files) gallery on 4 of my pages, however, one("products")  of the 4 will not load the "full" images. The thumbnails load, they decrease opacity when moused over, but once you click on one, the progress bar loads till complete and just stops. You can see the problem in action atwww.erikhigbee.com on the "Products" page. This problem, however, only occurred after I hosted it on iPage.com. When I test it (Ctrl+Enter) in Flash, test it in Dreamweaver or open the .html of it from my computer, everything works perfectly. It is only after I FTP upload all the files to iPage's server that this problem occurs. I made sure to keep the filetree the same and everything. Is it a problem with Ipage? Are too many images trying to load??
    Furthermore, for some odd reason the 1st image(left), 4th row down on the s"Products" page DOES load the full image but the others still dont and I can't for the life of me figure out why. All the code is exactly the same as on the other pages.
    Thanks for any and all help/advice you can give me!
    one thought(from posts on other forums) could be inefficient code.  Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed. pops up whenever the thumbs are clicked.  idk if that helps.
    below is the code i used for the gallery. Could anyone take a quick look over it and see if any problems/inefficiencies jump out at ya??
    [CODE]import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.events.MouseEvent;
    import fl.controls.ProgressBar;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    var columns:Number;
    var my_x:Number;
    var my_y:Number;
    var my_thumb_width:Number;
    var my_thumb_height:Number;
    var my_images:XMLList;
    var my_total:Number;
    var container_mc:MovieClip;
    var preloaders_mc:MovieClip;
    var full_mc:MovieClip;
    var x_counter:Number = 0;
    var y_counter:Number = 0;
    var my_tweens:Array = [];
    var container_mc_tween:Tween;
    var full_tween:Tween;
    var myXMLLoader:URLLoader = new URLLoader();
    myXMLLoader.load(new URLRequest("gallery_hats.xml"));
    myXMLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(e:Event):void{
    var myXML:XML = new XML(e.target.data);
    columns = myXML.@COLUMNS;
    my_x = myXML.@XPOSITION;
    my_y = myXML.@YPOSITION;
    my_thumb_width = myXML.@WIDTH;
    my_thumb_height = myXML.@HEIGHT;
    my_images = myXML.IMAGE;
    my_total = my_images.length();
    createContainer();
    callThumbs();
    myXMLLoader.removeEventListener(Event.COMPLETE, processXML);
    myXMLLoader = null;
    function createContainer():void{
    container_mc = new MovieClip();
    container_mc.x = my_x;
    container_mc.y = my_y;
    addChild(container_mc);
    container_mc.addEventListener(MouseEvent.CLICK, callFull);
    container_mc.addEventListener(MouseEvent.MOUSE_OVER, onOver);
    container_mc.addEventListener(MouseEvent.MOUSE_OUT, onOut);
    container_mc.buttonMode = true;
    preloaders_mc = new MovieClip();
    preloaders_mc.x = container_mc.x;
    preloaders_mc.y = container_mc.y;
    addChild(preloaders_mc);
    function callThumbs():void{
    for (var i:Number = 0; i < my_total; i++){
    var thumb_url = my_images[i].@THUMB;;
    var thumb_loader = new Loader();
    thumb_loader.load(new URLRequest(thumb_url));
    thumb_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
    thumb_loader.name = i;
    thumb_loader.x = (my_thumb_width+10)*x_counter;
    thumb_loader.y = (my_thumb_height+10)*y_counter;
    if (x_counter+1 < columns){
    x_counter++;
    } else {
    x_counter = 0;
    y_counter++;
    var preloader_pb:ProgressBar = new ProgressBar();
    preloader_pb.source = thumb_loader.contentLoaderInfo;
    preloader_pb.x = thumb_loader.x;
    preloader_pb.y = thumb_loader.y;
    preloader_pb.width = my_thumb_width;
    preloader_pb.height = my_thumb_height/10;
    preloaders_mc.addChild(preloader_pb);
    preloader_pb.addEventListener(Event.COMPLETE, donePb);
    function thumbLoaded(e:Event):void{
    var my_thumb:Loader = Loader(e.target.loader);
    container_mc.addChild(my_thumb);
    my_tweens[Number(my_thumb.name)]=new Tween(my_thumb, "alpha", Strong.easeIn, 0,1,0.5, true);
    my_thumb.contentLoaderInfo.removeEventListener(Event.COMPLETE, thumbLoaded);
    function callFull(e:MouseEvent):void{
    var full_loader = new Loader();
    var full_url = my_images[e.target.name].@FULL;
    full_loader.load(new URLRequest(full_url));
    full_loader.contentLoaderInfo.addEventListener(Event.INIT, fullLoaded);
    var full_pb:ProgressBar = new ProgressBar();
    full_pb.source = full_loader.contentLoaderInfo;
    full_pb.x = (stage.stageWidth - full_pb.width)/2;
    full_pb.y = (stage.stageHeight - full_pb.height)/2;
    preloaders_mc.addChild(full_pb);
    full_pb.addEventListener(Event.COMPLETE, donePb);
    container_mc.removeEventListener(MouseEvent.CLICK, callFull);
    container_mc.buttonMode = false;
    container_mc.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
    container_mc.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
    container_mc_tween = new Tween(container_mc, "alpha", Strong.easeIn, 1,0.5,0.5, true);
    function fullLoaded(e:Event):void{
    full_mc = new MovieClip();
    full_mc.buttonMode = true;
    addChild(full_mc);
    var my_loader:Loader = Loader(e.target.loader);
    full_mc.addChild(my_loader);
    full_tween = new Tween(my_loader, "alpha", Strong.easeIn, 0,1,0.5, true);
    my_loader.x = (stage.stageWidth - my_loader.width)/2;
    my_loader.y = (stage.stageHeight - my_loader.height)/2;
    my_loader.addEventListener(MouseEvent.CLICK, removeFull);
    my_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, fullLoaded);
    function removeFull(e:MouseEvent):void{
    var my_loader:Loader = Loader (e.currentTarget);
    full_tween = new Tween(my_loader, "alpha", Strong.easeOut, 1,0,0.5, true);
    full_tween.addEventListener(TweenEvent.MOTION_FINISH, tweenFinished);
    container_mc_tween = new Tween(container_mc, "alpha", Strong.easeOut, 0.5,1,0.5, true);
    function donePb(e:Event):void{
    var my_pb:ProgressBar = ProgressBar(e.target);
    preloaders_mc.removeChild(my_pb);
    my_pb.removeEventListener(Event.COMPLETE, donePb);
    function tweenFinished(e:TweenEvent):void{
    var my_loader:Loader = Loader (e.target.obj);
    my_loader.unload();
    full_mc.removeChild(my_loader);
    removeChild(full_mc);
    full_mc = null;
    container_mc.addEventListener(MouseEvent.CLICK, callFull);
    container_mc.buttonMode = true;
    container_mc.addEventListener(MouseEvent.MOUSE_OVER, onOver);
    container_mc.addEventListener(MouseEvent.MOUSE_OUT, onOut);
    var my_tween:Tween = Tween(e.target);
    my_tween.removeEventListener(TweenEvent.MOTION_FINISH, tweenFinished);
    function onOver(e:MouseEvent):void{
    var my_thumb:Loader = Loader(e.target);
    my_thumb.alpha = 0.5;
    function onOut(e:MouseEvent):void{
    var my_thumb:Loader = Loader(e.target);
    my_thumb.alpha = 1;
    [/CODE]

    Hi,
    at www.lynda.com there is a great video tutorial.
    Search for Create and Embed a Photo Gallery in a PDF

  • How can i show images from different folders  in image gallery

    Hi All,
             i have downloaded and executed photo viewer image gallery application.
              in that we r showing images sequentially what we have defined in xml file.
             but i want show images randomly or i want show images from different gallary.
    Can any one help me.
    thanks
    Raghu.

    WaqarLFC7 wrote:
    On Windows:
    Ctrl + click on the songs you want to group - then right click and click get info and it will ask you if you want to get info for multiple items click YES then under album name it whatever you want and them songs will be grouped into 1 album.
    Mac:
    Same procedure but hit SHIFT instead of CTRL.
    Actually, it's right click or ctrl click, same as windows.

  • Need Help Removing XML Photo Gallery on Button Click

    Hi, I'm new to flash so this might seem like a dumb question, but I'm right in the middle of designing a photography site and need some help.  I have 4 buttons in my timeline that go to the corresponding frame labels when clicked, above each frame label is a keyframe with actionscript applied to it, that will load an external XML photo gallery. I need the current photo gallery that's on the screen to disappear when I click on a new button to load the new XML photo gallery.  this is the code that will be above each frame label with a few changes, then below this is the code for my buttons. Any help is greatly appreciated. Thank you  Code: Select all var imageX:XML; var imageList:XMLList;  var canvas:MovieClip = new MovieClip(); var picLoader:Loader; addChild(canvas); canvas.x = -155; canvas.y = 160;   var req:URLRequest = new URLRequest("gallery.xml"); var imageLoader:URLLoader = new URLLoader(); imageLoader.addEventListener(Event.COMPLETE, onComplete); imageLoader.load(req);  function onComplete(e:Event):void { imageX = new XML(imageLoader.data); imageList = imageX.image; picLoader = new Loader(); picLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, imageLoaded); picLoader.load(new URLRequest (imageList[0].url)); }  function imageLoaded(e:Event):void  { canvas.addChild(picLoader); }    Code for the buttons in different keyframe.  Code: Select all stop();  kids_btn.addEventListener(MouseEvent.CLICK,onKidsClick); couples_btn.addEventListener(MouseEvent.CLICK,onCouplesClick); portraits_btn.addEventListener(MouseEvent.CLICK,onPortraitsClick); bellies_btn.addEventListener(MouseEvent.CLICK,onBelliesClick);  function onKidsClick(e:MouseEvent):void { gotoAndStop("kids"); }  function onCouplesClick(e:MouseEvent):void { gotoAndStop("couples"); }  function onPortraitsClick(e:MouseEvent):void { gotoAndStop("portraits"); }  function onBelliesClick(e:MouseEvent):void { gotoAndStop("bellies"); }

    Hi, I'm new to flash so this might seem like a dumb question, but I'm right in the middle of designing a photography site and need some help.  I have 4 buttons in my timeline that go to the corresponding frame labels when clicked, above each frame label is a keyframe with actionscript applied to it, that will load an external XML photo gallery. I need the current photo gallery that's on the screen to disappear when I click on a new button to load the new XML photo gallery.  this is the code that will be above each frame label with a few changes, then below this is the code for my buttons. Any help is greatly appreciated. Thank you  Code: Select all var imageX:XML; var imageList:XMLList;  var canvas:MovieClip = new MovieClip(); var picLoader:Loader; addChild(canvas); canvas.x = -155; canvas.y = 160;   var req:URLRequest = new URLRequest("gallery.xml"); var imageLoader:URLLoader = new URLLoader(); imageLoader.addEventListener(Event.COMPLETE, onComplete); imageLoader.load(req);  function onComplete(e:Event):void { imageX = new XML(imageLoader.data); imageList = imageX.image; picLoader = new Loader(); picLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, imageLoaded); picLoader.load(new URLRequest (imageList[0].url)); }  function imageLoaded(e:Event):void  { canvas.addChild(picLoader); }    Code for the buttons in different keyframe.  Code: Select all stop();  kids_btn.addEventListener(MouseEvent.CLICK,onKidsClick); couples_btn.addEventListener(MouseEvent.CLICK,onCouplesClick); portraits_btn.addEventListener(MouseEvent.CLICK,onPortraitsClick); bellies_btn.addEventListener(MouseEvent.CLICK,onBelliesClick);  function onKidsClick(e:MouseEvent):void { gotoAndStop("kids"); }  function onCouplesClick(e:MouseEvent):void { gotoAndStop("couples"); }  function onPortraitsClick(e:MouseEvent):void { gotoAndStop("portraits"); }  function onBelliesClick(e:MouseEvent):void { gotoAndStop("bellies"); }

  • XML Photo Gallery - Loader won't load :(

    Hi,
    I'm trying to make an XML Photo Gallery type thing. For each
    'Product' it creates a new instance of a MovieClip from the
    library, 'XmlItem' which contains a Loader Component and Dynamic
    Text.
    The Product Title goes into the Dynamic Text perfectly. The
    problem is with the Loader Component. It simply REFUSES to load the
    images. There's an exception. If I deliberately cause a syntax
    error in the Loader Component's code, then the pictures load! What
    the hell?
    Oh, also I'm having trouble with the placement of the XmlItem
    instances... For each of them, what position is _x relative to?
    Thanks very much in advance for any help,
    Tim.
    Code:

    my_ldr must exist on all frames or, if you navigate to a frame where it doesn't exist, you must create another loader with the "new" constructor.  in the later situation, you'll need to (re)define your button actions too because the new loader will need to before referenced in the button listener functions.  even if you use the same name, my_ldr, you'll probably need to re-define your buttons.

  • Urgent Help with Image Gallery

    Hi,
    I really need help with an image gallery i have created. Cannot think of a resolution
    So....I have a dynamic image gallery that pulls the pics into a movie clip and adds them to the container (slider)
    The issue i am having is that when i click on this i am essentially clicking on all the items collectively and i would like to be able to click on each image seperately...
    Please see code below
    var xml:XML;
    var images:Array = new Array();
    var totalImages:Number;
    var nbDisplayed:Number = 1;
    var imagesLoaded:int = 0;
    var slideTo:Number = 0;
    var imageWidth = 150;
    var titles:Array = new Array();
    var container_mc:MovieClip = new MovieClip();
    slider_mc.addChild(container_mc);
    container_mc.mask = slider_mc.mask_mc;
    function loadXML(file:String):void{
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest(file));
    xmlLoader.addEventListener(Event.COMPLETE, parseXML);
    function parseXML(e:Event):void{
    xml = new XML(e.target.data);
    totalImages = xml.children().length();
    loadImages();
    function loadImages():void{
    for(var i:int = 0; i<totalImages; i++){
      var loader:Loader = new Loader();
      loader.load(new URLRequest("images/"+String(xml.children()[i].@brand)));
      images.push(loader);
    //      loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onProgress);
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
    function onComplete(e:Event):void{
    imagesLoaded++;
    if(imagesLoaded == totalImages){
      createImages();
    function createImages():void{
    for(var i:int = 0; i < images.length; i++){
      var bm:Bitmap = new Bitmap();
      bm = Bitmap(images[i].content);
      bm.smoothing = true;
      bm.x = i*170;
      container_mc.addChild(bm);
          var caption:textfile=new textfile();
          caption.x=i*170; // fix text positions (x,y) here
       caption.y=96;
          caption.tf.text=(xml.children()[i].@brandname)   
          container_mc.addChild(caption);

    yes, sorry i do wish to click on individual images but dont know how to code that
    as i mentioned i have 6 images that load into an array and then into a container and i think that maybe the problem is that i have the listener on the container so when i click on any image it gives the same results.
    what i would like is have code thats says
    if i click on image 1 then do this
    if i click on image 2 then do something different
    etc
    hope that makes sense
    thanks for you help!

  • Image gallery issue

    If a mod could delete my other post as I am quite far on from that and now having different issues.  Thanks.
    I am really stuck.  I will try my best to explain things clearly.  I am making an image gallery and I got the code from this gallery here.
    http://www.flashmo.com/preview/flashmo_122_3d_curve_gallery
    I made some changes to make it how I wanted it, nothing drastic though.  So now I have a nice gallery.
    Explaining what I am trying to do will better help explain things.  I am creating a modelling agency website.  The gallery I created above will display an individual image of every model in the agency (which it does).  Now when one of the model images is clicked, I then need it to load another image gallery which contains the complete set of images for that model, plus some of their information etc. 
    The way I am approaching it at the moment is to create an individual image gallery for every model in its own fla file.  If say the first model is clicked (image 1) it will load the corresponding swf (1.swf).  I am not sure how good it is loading an swf into what I already have, but couldnt think of another way.  So now I have a seperate image gallery just to test things out, and I need to load it into my original image gallery.
    So, I will show the code for the first gallery (which displays the individual images of each model).  The important methods are p_click (which hides the first gallery and loads the external swf), and on_pic_loaded (which displays the external swf). 
    I hope you understand what I am attempting, as I dont know if I have explained it right as my brain is going dead! (although I am liking the challenge).
    import org.papervision3d.scenes.*;
    import org.papervision3d.cameras.*;
    import org.papervision3d.objects.*;
    import org.papervision3d.materials.*;
    import caurina.transitions.*;
    import flash.net.URLRequest;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.events.ProgressEvent;
    var container_x:Number = stage.stageWidth * 0.5;
    var container_y:Number = stage.stageHeight * 0.5 + 160;
    var container:Sprite = new Sprite();
    container.x = container_x;
    container.y = container_y;
    addChild(container);
    var scene:Scene3D = new MovieScene3D(container);
    var cam:Camera3D = new Camera3D();
    cam.zoom = 6;
    tn_url_target.visible = false;
    tn_title.text = "";
    tn_desc.text = "";
    tn_url.text = "";
    loading_info.text = "";
    url_button.visible = false;
    var no_of_ring:Number = 1;
    var angle:Number = 0;
    var p_dict:Dictionary = new Dictionary();
    var pa:Array = new Array();
    var filename_list = new Array();
    var url_list = new Array();
    var url_target_list:Array = new Array();
    var title_list = new Array();
    var description_list = new Array();
    var folder:String = "photos/thumbs/";
    var i:Number;
    var total:Number;
    var flashmo_xml:XML = new XML();
    var pic_loader:Loader = new Loader();
    var mLoader:Loader = new Loader();
    var xml_loader:URLLoader = new URLLoader();
    xml_loader.load(new URLRequest("thumbnail_list_5.xml"));
    xml_loader.addEventListener(Event.COMPLETE, create_thumbnail);
    function create_thumbnail(e:Event):void
        flashmo_xml = XML(e.target.data);
        total = flashmo_xml.thumbnail.length();
        var angle_per:Number = Math.PI * 2 * no_of_ring / total;
        for( i = 0; i < total; i++ )
            filename_list.push( flashmo_xml.thumbnail[i][email protected]() );
            url_list.push( flashmo_xml.thumbnail[i][email protected]() );
            url_target_list.push( flashmo_xml.thumbnail[i][email protected]() );
            title_list.push( flashmo_xml.thumbnail[i][email protected]() );
            description_list.push( flashmo_xml.thumbnail[i][email protected]() );
            var bfm:BitmapFileMaterial = new BitmapFileMaterial(
                folder + flashmo_xml.thumbnail[i][email protected]());
            bfm.oneSide = false;
            bfm.smooth = true;
            var p:Plane = new Plane(bfm, 100, 100, 2, 2);
            scene.addChild(p);
            var p_container:Sprite = p.container;
            p_container.name = "flashmo_" + i;
            p_dict[p_container] = p;
            p_container.buttonMode = true;
            p_container.addEventListener( MouseEvent.ROLL_OVER, p_rollover );
            p_container.addEventListener( MouseEvent.ROLL_OUT, p_rollout );
            p_container.addEventListener( MouseEvent.CLICK, p_click );
            p.rotationY = - (i * angle_per) * (180/Math.PI) + 90;
            p.x = Math.cos(i * angle_per) * 300;
            p.z = Math.sin(i * angle_per) * 300;
            p.y = Math.floor( i / 22 ) * 5;
    function startLoad()
        var mLoader:Loader = new Loader();
        var mRequest:URLRequest = new URLRequest("/subgallery/1.swf");
        mLoader.load(mRequest);
    function p_rollover(me:MouseEvent)
        var sp:Sprite = me.target as Sprite;
        Tweener.addTween( sp, {alpha: 0.5, time: 0.5, transition:"easeOutExpo"} );
    function p_rollout(me:MouseEvent)
        var sp:Sprite = me.target as Sprite;
        Tweener.addTween( sp, {alpha: 1, time: 0.4, transition:"easeInExpo"} );
    function p_click(me:MouseEvent)
        var sp:Sprite = me.target as Sprite;
        var s_no:Number = parseInt(sp.name.slice(8,10));
        var mRequest:URLRequest = new URLRequest("subgallery/1.swf");
        mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, on_pic_loaded);
        mLoader.load(mRequest);
        Tweener.addTween( container, { y: 1200, time: 0.6, transition:"easeInExpo" } );
    function goto_URL(me:MouseEvent)
        navigateToURL(new URLRequest(tn_url.text), tn_url_target.text);
    function on_open(e:Event):void
        loading_info.text = "Loading... 0%";
    function on_progress(e:ProgressEvent):void
        var percent:Number = Math.round(e.bytesLoaded / e.bytesTotal * 100);
        loading_info.text = "Loading... " + percent + "%";
    function on_pic_loaded(e:Event):void
        addChild(e.currentTarget.content);
        //addChildAt(mLoader, 1);
        mLoader.x = Math.round(stage.stageWidth - mLoader.width) * 0.5;
        mLoader.y = Math.round(stage.stageHeight - mLoader.height) * 0.5;
        //mLoader.addEventListener(MouseEvent.CLICK, remove_pic);
        Tweener.addTween( mLoader, { alpha: 1, time: 0.8, transition:"easeInExpo" } );
        removeEventListener(Event.ENTER_FRAME, render);
    function remove_pic(e:Event):void
        Tweener.addTween( pic_loader, { alpha: 0, time: 1, onComplete:function() { removeChild(this); } } );
        Tweener.addTween( container, { y: container_y, time: 1, delay: 1, transition:"easeOutExpo"} );
        addEventListener(Event.ENTER_FRAME, render);
        tn_title.text = "";
        tn_desc.text = "";
        tn_url.text = "";
        url_button.visible = false;
    addEventListener(Event.ENTER_FRAME, render);
    function render(e:Event):void
        var distance_x:Number = (stage.mouseX - 400) * 0.0001;
        angle += distance_x;
        cam.x = - Math.cos(angle) * 150;
        cam.z = Math.sin(angle) * 150;
        scene.renderCamera(cam);
    Current issues as the moment is firstly, I dont know if this is the best way to achieve what I want.  Maybe there is a better option someone could tell me about, but you have to remember that each image displayed here will have multiple images to go with it.
    In terms of what I am attempting above, I currently get
    Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/Users/Nick/Desktop/gallery/gallery.xml
        at _1_fla::MainTimeline/frame1()
    I assume its a url error so I changed all urls in both fla's to contain the whole url path.  Didnt seem to work though unless I missed something.
    Any advise on absolutely anything will be so appreciated.
    Many thanks
    Nick

    Sorry about that.  If you can check my history, I normally always thank people who have helped, and I was intending to go back on the last few to sort them out.  Just got my first job so it has been rather hectic and been stressing out to much.  Also, I do things slightly different to other people.  If I receive a correct answer (which I normally do thank), I tend not to actually reply but to thank instead, mainly because if I reply I am pushing unanswered questions further down the list and eventually out of view.  I will go back and sort out the thanks I owe.
    In terms of asking the mods, other forums I visit are normally moderated by the community, so I assumed that someone like yourself might be the moderator.
    I tottally understand what you are saying, and as I say, I am normally on top of this.  Will go back now and sort out the thanks.
    Sorry for the delay.
    Nick

  • Image Gallery or Lightbox that works for DW CS6?

    Help! I need an image gallery or lightbox that works! I tried the Lightbox Gallery in Widgets and while it works for the most part, the nav buttons don't show up and I've put the files in every directory (path) possible. Does anyone have a fix for this - I've perused forums for hours about this. OR is there something else that's easy and fast and that works? And hopefully free?
    Thank you so much!

    The page is not live, so here is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <head>
        <meta http-equiv="Content-Type" content=
        "text/html; charset=utf-8" />
        <title>
          HLG - Flagstone Driveways Walkways Paths
        </title>
        <style type="text/css">
    /*<![CDATA[*/
        body,td,th {
            font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
            font-size: 18px;
            color: #000;
        body {
        margin:10px;
        background-color:#f0f0f0; 
        font-family:verdana,arial,helvetica,sans-serif;
        font-size:16px;
        overflow-y:scroll;
        body {
            background-image: url(images/background2.gif);
        /*]]>*/
        </style>
        <link href="!-css-style.css" rel="stylesheet" type=
        "text/css" />
        <style type="text/css">
    /*<![CDATA[*/
        a:link {
            color: #FFF;
        /*]]>*/
        </style>
        <link href="css/lightbox.css" rel="stylesheet" type=
        "text/css" />
        <link href="css/sample_lightbox_layout.css" rel="stylesheet"
        type="text/css" />
        <script src="scripts/jquery.js" type="text/javascript">
    </script>
        <script src="scripts/lightbox.js" type="text/javascript">
    </script>
        <script type="text/javascript">
    //<![CDATA[
        function MM_preloadImages() { //v3.0
        var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
        function MM_swapImgRestore() { //v3.0
        var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
        function MM_findObj(n, d) { //v4.01
        var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
        if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
        for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
        if(!x && d.getElementById) x=d.getElementById(n); return x;
        function MM_swapImage() { //v3.0
        var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
        if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
        //]]>
        </script>
        <style type="text/css">
    /*<![CDATA[*/
        /* BeginOAWidget_Instance_2127022: #gallery */
                    .lbGallery {
                            /*gallery container settings*/
                            background-color: #910000;
                            padding-left: 2px; 
                            padding-top: 4px; 
                            padding-right: 2px; 
                            padding-bottom: 4px; 
                            width: 550px;
                            height: auto;
                            text-align:center;
                    .lbGallery ul { list-style: none; margin:0;padding:0; }
                    .lbGallery ul li { display: inline;margin:0;padding:0; }
                    .lbGallery ul li a{text-decoration:none;}
                    .lbGallery ul li a img {
                            /*border color, width and margin for the images*/
                            border-color: #ffffff;
                            border-left-width: 4px;
                            border-top-width: 4px;
                            border-right-width: 4px;
                            border-bottom-width: 20px;
                            margin-left:10px;
                            margin-right:10px;
                            margin-top:5px;
                            margin-bottom:5px:
                    .lbGallery ul li a:hover img { 
                            /*background color on hover*/
                            border-color: #ffcc66;
                            border-left-width: 4px;
                            border-top-width: 4px;
                            border-right-width: 4px;
                            border-bottom-width: 20px;
                    #lightbox-container-image-box {
                            border-top: 0px solid #000000;
                            border-right: 0px solid #000000;
                            border-bottom: 0px solid #000000;
                            border-left: 0px solid #000000;
                    #lightbox-container-image-data-box {
                            border-top: 0px;
                            border-right: 0px solid #000000;
                            border-bottom: 0px solid #000000;
                            border-left: 0px solid #000000;
        /* EndOAWidget_Instance_2127022 */
        /*]]>*/
        </style>
        <script type="text/xml">
    <![CDATA[
        <!--
        <oa:widgets>
        <oa:widget wid="2127022" binding="#gallery" />
        </oa:widgets>
        -->
        ]]>
        </script>
      </head>
      <body onload=
      "MM_preloadImages('buttons/directionsover.png','buttons/contactover.png','buttons/gallery over.png','buttons/homeover.png')">
      <table width="980" border="1" bordercolor="#000000" align=
      "center" cellpadding="0" cellspacing="0">
          <tr>
            <td>
              <table width="980" border="0" cellspacing="0"
              cellpadding="0">
                <tr>
                  <td height="40" align="center" bgcolor="#910000"
                  class="MaroonBanner">
                    <p>
                      Heartland Landscape Group, Inc.| Osage Beach,
                      Missouri | (573) 302-8855 | <a href=
                      "mailto:[email protected]" class=
                      "MaroonBannerEmail">[email protected]</a>
                    </p>
                  </td>
                </tr>
                <tr>
                  <td width="980" height="182" align="center" bgcolor=
                  "#000000">
                    <img src="images/plant1smlogo.jpg" width="980"
                    height="180" alt="Heartland Landscape Group" />
                  </td>
                </tr>
                <tr>
                  <td height="40" align="center" bgcolor="#910000">
                    <img src="images/escape_bnnr.png" alt=
                    "Escape the ordinary with greener landscape solutions"
                    width="980" height="40" />
                  </td>
                </tr>
                <tr>
                  <td valign="top">
                    <table width="980" border="0" cellspacing="0"
                    cellpadding="0">
                      <tr>
                        <td width="213" valign="top">
                          <table width="200" border="0" cellspacing="0"
                          cellpadding="0">
                            <tr>
                              <td height="46" colspan="2" valign=
                              "middle">
                                <a href="index.html" onmouseout=
                                "MM_swapImgRestore()" onmouseover=
                                "MM_swapImage('Homepage','','buttons/homeover.png',1)">
                                <img src="buttons/home.png" alt=
                                "Homepage" width="210" height="45" id=
                                "Homepage" border="0" /></a>
                              </td>
                            </tr>
                            <tr>
                              <td height="43" colspan="2" valign="top">
                                <a href="services.html"><img src=
                                "buttons/servicesover.png" alt=
                                "Services" width="210" height="45"
                                border="0" /></a>
                              </td>
                            </tr>
                            <tr>
                              <td height="43" colspan="2" valign="top">
                                <a href="beforeafter.html" onmouseout=
                                "MM_swapImgRestore()" onmouseover=
                                "MM_swapImage('Before &amp; After Gallery','','buttons/galleryover.png',1)">
                                <img src="buttons/gallery.png" alt=
                                "Before and After Gallery" width=
                                "210" height="45" id=
                                "Before_and_After_Gallery" border=
                                "0" /></a>
                              </td>
                            </tr>
                            <tr>
                              <td height="43" colspan="2" valign="top">
                                <a href="directions.html" onmouseout=
                                "MM_swapImgRestore()" onmouseover=
                                "MM_swapImage('Directions','','buttons/directionsover.png',1)">
                                <img src="buttons/directions.png" alt=
                                "Directions" width="210" height="45"
                                id="Directions" border="0" /></a>
                              </td>
                            </tr>
                            <tr>
                              <td height="43" colspan="2" valign="top">
                                <a href="contact.html" onmouseout=
                                "MM_swapImgRestore()" onmouseover=
                                "MM_swapImage('Contact Us','','buttons/contactover.png',1)">
                                <img src="buttons/contact.png" alt=
                                "Contact Us" width="210" height="45"
                                id="Contact_Us" border="0" /></a>
                              </td>
                            </tr>
                            <tr>
                              <td colspan="2" align="center"> 
                              </td>
                            </tr>
                            <tr>
                              <td width="53">
                                <a href=
                                "https://www.facebook.com/pages/Heartland-Landscape-Group-Inc/230076883731915"
                                target="_blank"><img src=
                                "images/fb_logo.png" alt=
                                "Follow Us on Facebook" width="50"
                                height="50" border="0" /></a>
                              </td>
                              <td width="147" valign="top" class=
                              "BodyTextsm">
                                Follow us on Facebook for project
                                ideas, tips and landscaping news!
                              </td>
                            </tr>
                            <tr>
                              <td colspan="2"> 
                              </td>
                            </tr>
                            <tr>
                              <td colspan="2" class="Textmed">
                                This Web site is best viewed with
                                Mozilla Firefox or Google Chrome.
                              </td>
                            </tr>
                          </table>
                        </td>
                        <td valign="top" class="Heading">
                          <table width="765" border="0" cellspacing="0"
                          cellpadding="0">
                            <tr>
                              <td valign="top" class="Heading">
                                <p>
                                  Our Services - Flagstone Driveways,
                                  Walkways &amp; Paths<br />
                                  <img src="images/line.png" width=
                                  "757" height="3" alt=
                                  "Horizontal Line" />
                                </p>
                                <p class="BodyText">
                                  Whether replacing or building a new
                                  driveway, walkway or path, naturally
                                  beautiful flagstone is the perfect
                                  alternative to concrete or brick
                                  pavers. Depending on the individual
                                  taste of the homeowner, there are
                                  many sizes, colors, shapes, and
                                  styles of natural stone to select
                                  from, and lend themselves to the more
                                  "natural" landscapes.<br />
                                </p>
                                <table width="550" border="0" align=
                                "center" cellpadding="0" cellspacing=
                                "0">
                                  <tr>
                                    <td align="center">
                                      <div id="gallery" class=
                                      "lbGallery">
                                        <ul>
                                          <li>
                                            <a href=
                                            "images/flagstone/images/garden_pathways.jpg"
                                            title=
                                            "Garden Pathway"><img src=
                                            "images/flagstone/thumbnails/garden_pathways.jpg"
                                            width="72" height="72" alt=
                                            "Flagstone Entrance Patio" /></a>
                                          </li>
                                          <li>
                                            <a href=
                                            "images/flagstone/images/pa_stepper_path.jpg"
                                            title=
                                            "Pennsylvania Stepper Path">
                                            <img src=
                                            "images/flagstone/thumbnails/pa_stepper_path.jpg"
                                            width="72" height="72" alt=
                                            "Pennsylvania Stepper Path" /></a>
                                          </li>
                                          <li>
                                            <a href=
                                            "images/flagstone/images/black_hills_rustic_path.jpg"
                                            title=
                                            "Black Hills Rustic Path"><img src="images/flagstone/thumbnails/black_hills_rustic_path.jpg"
                                            width="72" height="72" alt=
                                            "Black Hills Rustic Path" /></a>
                                          </li>
                                          <li>
                                            <a href=
                                            "images/flagstone/images/flagstone_path_with_firepit.jpg"
                                            title=
                                            "Flagstone Path With Firepit">
                                            <img src=
                                            "images/flagstone/thumbnails/flagstone_path_with_firepit.jpg"
                                            width="72" height="72" alt=
                                            "Flagstone Path With Firepit" /></a>
                                          </li>
                                          <li>
                                            <a href=
                                            "images/flagstone/images/flagstone_with_gravel.jpg"
                                            title=
                                            "Flagstone With Crushed Creek Gravel">
                                            <img src=
                                            "images/flagstone/thumbnails/flagstone_with_gravel.jpg"
                                            width="72" height="72" alt=
                                            "Flagstone With Gravel" /></a>
                                          </li>
                                        </ul>
                                      </div><script type=
                                      "text/javascript">
    //<![CDATA[
                                      // BeginOAWidget_Instance_2127022: #gallery
                                      $(function(){
                                      $('#gallery a').lightBox({
                                      imageLoading:                   '/images/lightbox-ico-loading.gif',            // (string) Path and the name of the loading icon
                                      imageBtnPrev:                   '/images/lightbox-btn-prev.gif',                       // (string) Path and the name of the prev button image
                                      imageBtnNext:                   '/images/lightbox-btn-next.gif',                       // (string) Path and the name of the next button image
                                      imageBtnClose:                  '/images/lightbox-btn-close.gif',              // (string) Path and the name of the close btn
                                      imageBlank:                             '/images/lightbox/lightbox-blank.gif',                  // (string) Path and the name of a blank image (one pixel)
                                      fixedNavigation:                true,           // (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface.
                                      containerResizeSpeed:   400,                     // Specify the resize duration of container image. These number are miliseconds. 400 is default.
                                      overlayBgColor:                 "#000000",              // (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color.
                                      overlayOpacity:                 0.75,           // (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9
                                      txtImage:                               'Flagstone Patios',                             //Default text of image
                                      txtOf:                                  'of'
                                      // EndOAWidget_Instance_2127022
                                      //]]>
                                      </script>
                                    </td>
                                  </tr>
                                </table><br />
                                <table width="485" border="0"
                                cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td colspan="3" valign="top" class=
                                    "BodyText">
                                      <p>
                                        - <a href="design.html" target=
                                        "_self" class=
                                        "Emailblack"><span class=
                                        "Email">Landscape Design
                                        Services</span></a>
                                      </p>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td colspan="3" valign="top">
                                      <span class="BodyText">-
                                      Landscape Services:</span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td colspan="2" valign="top">
                                      <span class="BodyText">- <a href=
                                      "index.html" target="_self"
                                      class="Emailblack"><span class=
                                      "Email">Ornamental Gravel &amp;
                                      Mulches</span></a></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td colspan="2" valign="top">
                                      <span class="BodyText">-
                                      Retaining Walls:</span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td width="391">
                                      <span class="BodyText">- <a href=
                                      "index.html" target="_self"
                                      class="Emailblack"><span class=
                                      "Email">Block</span></a></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td>
                                      <span class="BodyText">- <a href=
                                      "index.html" target="_self"
                                      class="Emailblack"><span class=
                                      "Email">Natural
                                      Stone</span></a></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td colspan="2" valign="top">
                                      <span class="BodyText">-
                                      Patios</span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td>
                                      <span class="BodyText">- <a href=
                                      "index.html" target="_self"
                                      class="Emailblack"><span class=
                                      "Email">Brick</span></a></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td>
                                      <span class="BodyText">- <a href=
                                      "index.html" target="_self"
                                      class="Emailblack"><span class=
                                      "Email">Flagstone</span></a></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td colspan="2" valign="top">
                                      <span class="BodyText">-
                                      Driveways, Walkways &amp;
                                      Paths</span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td>
                                      <span class="BodyText">- <a href=
                                      "index.html" target="_self"
                                      class="Emailblack"><span class=
                                      "Email">Brick</span></a></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td>
                                      <span class="BodyText">- <a href=
                                      "flagstonewalks.html" target=
                                      "_self" class=
                                      "Emailblack"><span class=
                                      "Email">Flagstone</span></a></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td colspan="2" valign="top">
                                      <span class="BodyText">- <a href=
                                      "index.html" target="_self"
                                      class="Emailblack"><span class=
                                      "Email">Landscape
                                      Steps</span></a></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td colspan="2" valign="top">
                                      <span class="BodyText">- <a href=
                                      "index.html" target="_self"
                                      class="Emailblack"><span class=
                                      "Email">Plantings &amp;
                                      Sod</span></a></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" valign="top"> 
                                    </td>
                                    <td colspan="2" valign="top">
                                      <span class="BodyText">- <a href=
                                      "index.html" target="_self"
                                      class="Emailblack"><span class=
                                      "Email">Water
                                      Features</span></a></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="45" height="32" valign=
                                    "top"> 
                                    </td>
                                    <td colspan="2" valign="top">
                                      <span class="BodyText">- <a href=
                                      "index.html" target="_self"
                                      class="Emailblack"><span class=
                                      "Email">Outdoor Living
                                      Fun</span></a></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td height="30" colspan="3" valign=
                                    "top">
                                      <span class="BodyText">- <a href=
                                      "irrigation.html" target="_self"
                                      class="Emailblack"><span class=
                                      "Email">Irrigation</span></a></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td colspan="3" valign="top">
                                      <span class="BodyText">- <a href=
                                      "lighting.html" target="_self"
                                      class="Emailblack"><span class=
                                      "Email">Lighting</span></a></span>
                                    </td>
                                  </tr>
                                </table><br />
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
              <table width="980" border="0" cellspacing="0"
              cellpadding="0">
                <tr>
                  <td width="211"> 
                  </td>
                  <td width="486" align="center">
                    <span class="Copyright">Copyright © 2013 Heartland
                    Landscape Group, Inc.</span>
                  </td>
                  <td width="283"> 
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </body>
    </html>

Maybe you are looking for