XML & Photos.xml

My other question is about the photos.xml (and gallery.xml)
file.
I don't own ColdFusion, and can't afford it. I do Dreamweaver
8, and Photoshop Elements 4 (for the Mac).
Before I embark on writing something, is there any utility I
can use to create these XML files? Typing all this information in
is tedious and error-prone. It also makes my (hopefully
forthcoming) photo site difficult to maintain.
Thanks again
Carolyn Ann

Good question. I installed PE4 and as I had hoped, the Web
Photo Gallery creator outputs a XML file of the image information.
This is the kind of file we used from Photoshop when we first
started making Spry.
So you can generate it from that, but you will notice that
they use <image> as their node name. You will have to change
that to <photo> or something other than <image> since
Safari causes trouble with that name in it's processing of Spry.
Hope this helps.
Don

Similar Messages

  • Need help with a xml photo gallery

    First, hello to everyone. My name is Tudor , i'm from Romania and i have a flash project which implies building an XML driven scrolling photo galery. Very sorry if my english will slip in some phrases. Well , the question for which i must get an answer is: I already built the gallery, everything works ok.... but ... when i want to make some changes when the pictures load .... well here is the problem. I will print the code and briefly explain and ask at the end....
    import com.greensock.TweenLite;
    import com.greensock.TweenMax;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.*;
    import fl.containers.UILoader;
    var MASK_WIDTH:Number = myMask_mc.width;
    var menuHolder:MovieClip = new MovieClip();
    //menuHolder.x = myMask_mc.x;
    //menuHolder.y = myMask_mc.y;
    addChild(menuHolder);
    var mouseIsOver:Boolean = false;
    var oldX:Number = menuHolder.x;
    menuHolder.mask = myMask_mc;
    import flash.filters.ColorMatrixFilter;
    import fl.motion.AdjustColor;
    var color : AdjustColor;
    var colorMatrix : ColorMatrixFilter;
    var matrix : Array;
    var filterBW : Array;
    color = new AdjustColor();
    color.brightness = 20;
    color.contrast = 20;
    color.hue = 0;
    color.saturation = -100;
    matrix = color.CalculateFinalFlatArray();
    colorMatrix = new ColorMatrixFilter(matrix);
    filterBW = [colorMatrix];
    /// HERE i read and parse the XML
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    xmlLoader.load(new URLRequest("C:/Documents and Settings/Sm/Desktop/feteModel.xml"));
    function LoadXML(e:Event):void
    xmlData = new XML(e.target.data);
    ParsePictures(xmlData);
    function ParsePictures(input:XML):void
    var mainPictures:Array = new Array();
    var firstPictures:Array = new Array();
    var secondPictures:Array = new Array();
    var thirdPictures:Array = new Array();
    var forthPictures:Array = new Array();
    var dimensiuniArray:Array = new Array();
    var heightArray:Array = new Array();
    var eyeColorArray:Array = new Array();
    var hairColorArray:Array = new Array();
    var numeArray:Array = new Array();
    var mainPicturesList:XMLList = input.fata.pozaPrincipala;
    var firstPicturesList:XMLList = input.fata.poza1;
    var secondPicturesList:XMLList = input.fata.poza2;
    var thirdPicturesList:XMLList = input.fata.poza3;
    var forthPicturesList:XMLList = input.fata.poza4;
    var dimensiuniList:XMLList = input.fata.dimensiuni;
    var heightList:XMLList = input.fata.inaltime;
    var eyeColorList:XMLList = input.fata.culoare_ochi;
    var hairColorList:XMLList = input.fata.culoare_par;
    var numeList:XMLList = input.fata.nume;
    for each (var element1:XML in mainPicturesList)
    mainPictures.push(element1);
    for each (var element2:XML in numeList)
    numeArray.push(element2);
       /////////// HERE I LOAD THE PICTURES ...... i must say that menuItem is a mc - exported as a class , which basically has inside a textfield, a UILoader and a preloader - also movieclip. Also i need the pictures to be black and white when they are displayed and when the mouse is over to color
    for (var i=0; i < mainPictures.length; i++)
    var menuItem:MenuItem;
    menuItem = new MenuItem();
    menuItem.y = 200;
    menuItem.x =(i * (menuItem.width+1))+150;
    menuItem.itemLoader.filters = filterBW;
    menuItem.itemText.text = numeArray[i];
    menuItem.itemLoader.source = mainPictures[i];
    menuItem.itemLoader.maintainAspectRatio = false;
    menuItem.itemLoader.addEventListener(Event.COMPLETE, completeHandler);
    //menuItem.itemLoader.addEventListener(Event.COMPLETE,uiLoaded, false, 0, true);
    //menuItem.itemLoader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    //menuItem.itemLoader.load();
    //menuItem.preloader_mc.visible = true;
    function completeHandler(event:Event)
         //trace(menuItem.itemText.text);
    menuItem.mouseChildren = false;
    menuItem.buttonMode = true;
      menuItem.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem);
      menuItem.addEventListener(MouseEvent.MOUSE_OUT, mouseOutItem);
      //Add the menuItem to the menuHolder
      menuHolder.addChild(menuItem);
    menuHolder.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMenu);
    menuHolder.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMenu);
    function mouseOverMenu(e:Event):void
    mouseIsOver = true;
    //Calculate the vertical distance of how far the mouse is from
    //the topleft  of the mask.
    var distance:Number = mouseX - myMask_mc.x;
    //Calculate the distance in percentages
    var percentage:Number = distance / MASK_WIDTH;
    //Save the holder's old y coordinate
    oldX = menuHolder.x;
    var targetX:Number = -((menuHolder.width - MASK_WIDTH +150) * percentage) + myMask_mc.x;
    //Tween the menuHolder to the target coordinate
    TweenMax.to(menuHolder, 5, {x: Math.round(targetX)});
    //This function is called when the mouse is out of the menu
    function mouseOutMenu(e:Event):void
    mouseIsOver = false;
    var tw1:Tween;
    var tw2:Tween;
    function mouseOverItem(e:Event):void
    var item:MenuItem = e.target as MenuItem;
    menuHolder.addChild(item);
    item.itemLoader.filters = [];
    //trace(item.itemText.text);
    tw1 = new Tween(item,"scaleX", Strong.easeInOut,1, 1.25,0.25,true);
    tw2 = new Tween(item,"scaleY", Strong.easeInOut,1, 1.25,0.25,true);
    //This function is called when mouse moves out of the item
    function mouseOutItem(e:Event):void
    var item:MenuItem = e.target as MenuItem;
    item.itemLoader.filters = filterBW;
    tw1 = new Tween(item,"scaleX", Strong.easeInOut,1.25, 1,0.25,true);
    tw2 = new Tween(item,"scaleY", Strong.easeInOut,1.25, 1,0.25,true);
    Now , i want each picture to scale when it fully loads ... i thought it will be enough to put it on the completeHandler function , but here is the problem - it scales only the last picture ..... eg. if there are 5 , it scales only the 5th ..... i tried to trace the name of the picture inside the completeHandler and also , i got 4 identical names - the name of the last picture ...... my question  is : why is the completeHandler firing only for the last item?   anyone has any idea why this is hapening? and more how can i fix it? PLEASE ... i'm burning my brain here for half a day here ..........  THANKS in advance!!!!!!!!!!!!!!!!!!   
                                                                                                                                                                    REGARDS, Tudor

    If you are using a "for" loop to do the loading, it can process thru the entire set of loops before the first image is loaded.  If you want to have control over the loading you should load things sequencially.
    So instead of using a for loop, build a pseudo loop using an array of the files to load, a counter variable, a loading function, and a loadComplete function.  Have the loading function load just one image using the counter variable to identify which image in the array to load.  Have the loadComplete function process the one image that was just kloaded, increment the counter, and call the loading function if the counter value does not equal the length of the array.

  • 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"); }

  • AS3 xml photo gallery

    I'm fairly new to flash, and after reading a few online
    tutorials on trying to make xml photo galleries (specifically the
    one here:
    http://www.tutorio.com/tutorial/simple-flash-xml-photogallery)
    I'm trying to figure things out.
    I want to make something similar, but have the photos line up
    in columns (not rows), and once there are a certain number of
    photos in a column (in this case, 6) have them load into another
    column.
    I have been trying to mess around with the AS given in the
    tutorial as well as what I've been reading on the net, and here is
    what I have so far:
    I'm loading the images and thumbs through the images.xml
    file. On my stage I only have 2 movie clips (loader &
    thumbnails) and a dynamic text field (title_txt). Any thoughts??? I
    really am new to this, but I'm trying hard to figure it out - I'm
    at the point now where I need help.
    Thanks!
    Mike ([email protected])

    You can add a drop shadow filter by creating a new variable
    at the top of the code:
    var dropShadow:DropShadowFilter = new
    DropShadowFilter(PARAMETERS);
    You can test different parameters to change the appearence -
    see this page on the livedocs, or look at Flash help for the
    accepted parameters:
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00001633.html
    I thought you would be asking about making a fade transition,
    it aways makes it look much better.
    I would definitely recommend downloading the "Tweener"
    library and placing the "caurina" folder in the same folder as your
    FLA or in your "global ActionScript directory". This tutorial will
    teach you all about Tweener:
    http://www.gotoandlearn.com/player.php?id=45
    Attached code includes a fade in and out transition on the
    images and adds a drop shadow to the thumbnails.
    I also realised (after testing for the first time!) that the
    thumbs were lining up vertically instead of in columns and I
    corrected the following 2 lines of code:
    thumb.x = xOffset + (thumbWidth+xspacing)*i; //j becomes i
    thumb.y = yOffset + (thumbHeight+yspacing)*j; //i becomes
    j

  • AS2 xml photo gallery

    I'm fairly new to flash, and after reading a few online
    tutorials on trying to make xml photo galleries (specifically the
    one here:
    http://www.tutorio.com/tutorial/simple-flash-xml-photogallery)
    I'm trying to figure things out.
    I want to make something similar, but have the photos line up
    in columns (not rows), and once there are a certain number of
    photos in a column (in this case, 6) have them load into another
    column.
    I have been trying to mess around with the AS given in the
    tutorial as well as what I've been reading on the net, and here is
    what I have so far:
    I'm loading the images and thumbs through the images.xml
    file. On my stage I only have 2 movie clips (loader &
    thumbnails) and a dynamic text field (title_txt). Any thoughts??? I
    really am new to this, but I'm trying hard to figure it out - I'm
    at the point now where I need help.
    Thanks!
    Mike ([email protected])
    ***

    you want to use:
    thumbnail_mc["t"+k].removeMovieClip();  // where k is defined as in your createEmptyMovieClip() method.

  • Error in creating XML photo gallery with Flash CS4 and AS 3.0

    Hello, all. I've been creating an XML photo gallery with Flash CS4 and AS 3.0 following a tutorial. I followed the instructions step-by-step but at the end I got the following error message instead:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
    Could anyone in the community assist me as to how to solve the problem? The script has no errors and last time I checked all the applicable files (the .xml file, the .jpg files, the .swf and the .fla file) are in my Documents folder on the Mac.
    Looking forward to your suggestions!

    Check the folder structure
    Flash is not able to get some file thats why the IO Error.
    trace the url path just before u load the file and u will be abel to find whether that file is in specified folder or not.
    http://www.darshanrane.com

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

  • Flash & XML Photo Gallery with Categories

    Hello friends
    i am trying but
    i want to create Flash & XML Photo Gallery with Different Categories
    please help me

    If you want to do using oop
    go throgh this article first
    http://active.tutsplus.com/tutorials/actionscript/as3-101-oop-additional-concepts/

  • XML photo Layering

    Does anyone know how to layer photos imported via an external
    source (XML) with other art elements?
    The imported XML photos always seem to arrive on top of
    anything else no matter what layer your XML code keyframe is
    on.

    You could create an empty movieclip on stage that will hold
    the pics, then when you add the pics, add them as children of that
    empty movieclip.
    So, create an empty movieclip on stage at the right layering
    and call the movieclip: picHolder or something.
    Then, in your code above, change addChild(thisBmp) to:
    picHolder.addChild(thisBmp);

  • XML Photo Album to play automatically

    Hi,
    I've come across a great tutorial and source files for the
    xml photo album:
    http://www.xmlphotoalbum.com/
    How would I implement the slideshow to play automatically and
    continuously? Also, adding some spacing in between the thumbnails
    would be nice as well.
    Any help with this would be greatly appreciated!
    Thanks

    Are you sending an album or a slideshow?  I don't think music can be assigned to an album.
    Have you tried asking this question in the iPhoto forum (assuming it's an iPhoto question) or the AppleTV forum (if it's more a question about the AppleTV?).
    Here's a link to the iPhoto forum:
    https://discussions.apple.com/community/ilife/iphoto
    If you think it's an issue with your AppleTV, you can try asking your question here:
    https://discussions.apple.com/community/appletv/appletv

  • Gallery Demo - font info in photos.xml

    <gallery
    base = ""
    background = "#FFFFFF"
    banner = "#F0F0F0"
    text = "#000000"
    link = "#0000FF"
    alink = "#FF0000"
    vlink = "#800080"
    date = "4/11/2006">
    <sitename>Standard Parking</sitename>
    <photographer></photographer>
    <contactinfo></contactinfo>
    <email></email>
    <security><![CDATA[]]> </security>
    <banner font = "Arial" fontsize = "3" color =
    "#F0F0F0"> </banner>
    <thumbnail base ="thumbnails/" font = "Arial" fontsize =
    "4" color = "#F0F0F0" border = "0" rows = "3" col = "3">
    </thumbnail>
    <large base ="images/" font = "Arial" fontsize = "3" color
    = "#F0F0F0" border = "0"></large>
    <photos id = "images">
    What is all the font stuff for? Why would you have this stuff
    here instead of using CSS to control the appearance of the data via
    a rule applicable to the element in which it appears?
    Is it ok to remove this extra stuff?

    Actually, almost all (if not absolutely all) the PS CS2 web
    galleries
    generate XML files.
    The font info is included in the XML file because it's a user
    generated
    choice from a drop-down menu in the Web Gallery creation
    dialog. So
    Photoshop writes it there in order to read it back in to
    whichever
    gallery template has been chosen.
    kinblas wrote:
    > The photos.xml file that is used by the gallery demo was
    generated from
    > Photoshop CS2 using their Flash Gallery ... there are
    only 2 galleries that
    > generate the XML file.
    >
    > I believe they use these style attributes to control the
    look of the Flash app
    > that displays the album. We don't use any of that stuff
    inside our demo. You
    > can strip it out if you'd like.
    >
    > --== Kin ==--
    >

  • Styling Spry Gallery Captions Within Photos.xml

    My Spry gallery is working just fine other than I'd like to use italics within some of my image captions. I noticed this line of code in photos.xml.
    <italics font = "georgia"> </italics>
    I'm wondering if this alludes to the fact that I should be able to use italics selectively without writing any XSLT (I'm not very experienced in that department).
    Any advice appreciated.

    Hi Flat Top,
    perhaps, you need a program that understands the structure of
    jpegs like exiftool. Momentarily i use a powershell script:
    get-childitem images\*.jpg |
    foreach {
    $image = [String]::Concat("Images\", $_.name)
    $thumb = [String]::Concat("Thumbs\", $_.name)
    perl exiftool.pl -c "%d deg %.4f min" -p FmtImage.txt $image
    | Out-File xml.xml -append
    perl exiftool.pl -c "%d deg %.4f min" -p FmtThumb.txt $thumb
    | Out-File xml.xml -append
    with FmtImage.txt:
    <photo
    path = "$FileName"
    width = "$ImageWidth"
    height = "$ImageHeight"
    Kommentar = "$Comment"
    GPSLatitude = "$GPSLatitude, $GPSLatitudeRef"
    GPSLongitude = "$GPSLongitude, $GPSLongitudeRef"
    GPSPosition = "$GPSPosition"
    Hersteller = "$Make"
    Modell = "$Model"
    ISOSpeedRatings = "$ISO"
    Date_TimeOriginal ="$DateTimeOriginal"
    F_Number = "$FNumber"
    ExposureTime = "$ExposureTime"
    FocalLength ="$FocalLength"
    Flash = "$Flash"
    and FmtThumb.txt:
    thumbpath = "$FileName"
    thumbwidth = "$ImageWidth"
    thumbheight = "$ImageHeight">
    </photo>
    this generates most of the photos.xml. Not automated are in
    the moment some problems with the german Umlauts and with the
    coordinates to bring them in a form understanable by google maps.
    Perhaps that might help you.
    I have no knowledge of php or Asp, my provider doesn't allow
    it.
    Greetings from Germany
    Hannes Löhr

  • Spry Gallery - photos.xml question

    Is there a way to generate the "photos.xml" file from a
    folder of images automatically. It seems like a lot of hand coding
    in the XML file say if you have a gallery with 20 images.

    Hi Flat Top,
    perhaps, you need a program that understands the structure of
    jpegs like exiftool. Momentarily i use a powershell script:
    get-childitem images\*.jpg |
    foreach {
    $image = [String]::Concat("Images\", $_.name)
    $thumb = [String]::Concat("Thumbs\", $_.name)
    perl exiftool.pl -c "%d deg %.4f min" -p FmtImage.txt $image
    | Out-File xml.xml -append
    perl exiftool.pl -c "%d deg %.4f min" -p FmtThumb.txt $thumb
    | Out-File xml.xml -append
    with FmtImage.txt:
    <photo
    path = "$FileName"
    width = "$ImageWidth"
    height = "$ImageHeight"
    Kommentar = "$Comment"
    GPSLatitude = "$GPSLatitude, $GPSLatitudeRef"
    GPSLongitude = "$GPSLongitude, $GPSLongitudeRef"
    GPSPosition = "$GPSPosition"
    Hersteller = "$Make"
    Modell = "$Model"
    ISOSpeedRatings = "$ISO"
    Date_TimeOriginal ="$DateTimeOriginal"
    F_Number = "$FNumber"
    ExposureTime = "$ExposureTime"
    FocalLength ="$FocalLength"
    Flash = "$Flash"
    and FmtThumb.txt:
    thumbpath = "$FileName"
    thumbwidth = "$ImageWidth"
    thumbheight = "$ImageHeight">
    </photo>
    this generates most of the photos.xml. Not automated are in
    the moment some problems with the german Umlauts and with the
    coordinates to bring them in a form understanable by google maps.
    Perhaps that might help you.
    I have no knowledge of php or Asp, my provider doesn't allow
    it.
    Greetings from Germany
    Hannes Löhr

  • XML photo gallery Adding transition

    i will add some transition on this xml gallery code. Can i do that, if so how?
    var titleArray:Array = new Array();
    var descriptionArray:Array = new Array();
    var largeImageArray:Array = new Array();
    var thumbImageArray:Array = new Array();
    //this has to be declared outside the function so it's available everywhere
    var totalImages:Number;
    //image number is always available but starts at 0
    var imageNum:Number=0;
    //Load the XML
    var xmlURLLoader:URLLoader = new URLLoader();
    xmlURLLoader.load(new URLRequest("gallery/gallery.xml"));
    //Once the XML is loaded...
    xmlURLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(event:Event):void {
    var theXMLData:XML=new XML(xmlURLLoader.data);
    totalImages=theXMLData.title.length();
    trace("totalImages: "+totalImages);
    for (var i:Number = 0; i <totalImages; i++) {
      titleArray.push(theXMLData.title[i]);
      trace("titleArray: "+titleArray[i]);
      descriptionArray.push(theXMLData.description[i]);
      trace("Description: "+theXMLData.description[i]);
      largeImageArray.push(theXMLData.largeImage[i]);
      trace("Large Image: "+largeImageArray[i]);
      thumbImageArray.push(theXMLData.thumbImage[i]);
      trace("Thumbnail: "+theXMLData.thumbImage[i]);
    loadThumbnail();
    portfolioScrollPane.source=allThumbnails;
    function loadThumbnail():void {
    trace(imageNum);
    var thumbLoader:Loader = new Loader();
    thumbLoader.load(new URLRequest(thumbImageArray[imageNum]));
    thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
    function thumbLoaded(event:Event):void {
      thumbLoader.y=100*imageNum;
      //Put the array content inside variables
      var thisLargeImage:String=largeImageArray[imageNum];
      var thisTitle:String=titleArray[imageNum];
      var thisDescription:String=descriptionArray[imageNum];
      //add the thumbnail to allThumbnails
      allThumbnails.addChild(thumbLoader);
      allThumbnails.buttonMode = true;
      thumbLoader.addEventListener(MouseEvent.CLICK, loadMainImage);
      function loadMainImage(event:MouseEvent):void {
       //Load in the correct image
       largeUILoader.source=thisLargeImage;
       //Preloader
       selectedTitle.text=thisTitle;
       selectedDesc.htmlText=thisDescription;
      portfolioScrollPane.update();
      imageNum++;
      if (imageNum<totalImages) {
       loadThumbnail();

    thank you for that.
    Transitions code
    import fl.transitions.Tween;import fl.transitions.easing.*;import
    flash.utils.Timer;//classes to use Timerimport
    flash.events.TimerEvent;
    var timer:Timer = new Timer(1500, 1);//create the timer
    timer.addEventListener(TimerEvent.TIMER, doNextTween);
    timer.start();
    var myTweenX:Tween = new Tween(bloc, "alpha", None.easeOut, 0, 1, 3, true);
    function doNextTween(e:TimerEvent):void{
      var myTweenAlpha:Tween = new Tween(bloc, "x", Strong.easeOut, 0,
    300, 3, true);
      timer.removeEventListener(TimerEvent.TIMER, doNextTween);}
    Where do i place these code above?

  • Xml in xml

    Hi,
    Here is the problem.
    I'm using the sax parser.
    I have exchanges between to servlets. Exchanges are made with xml structures.
    Now, I want to insert, into a main xml description, a field that will contain a xml content and be able to get it in this form.
    here is an example.
    <xml>
    <firstName>John</firstName>
    <lastname>Doe</lastName>
    <otherInfos>
    <address>
    <street></street>
    <phone></phone>
    </address>
    </otherinfos>
    </xml>
    because I already have a parser for the bloc <address> and this bloc coulb be very large, I'd like to get it as a String
    <address>
    <street></street>
    <phone></phone>
    </address>
    without having to re-write a part of parser.
    Have any idea ? is it possible using org.apache.xerces.parsers.SAXParser to descibe a part of xml as a unique element ?

    Feature.xml - "Defines a Feature and specifies the location of assemblies, files, dependencies,
    or properties that support the Feature."
    Manifest.xml -"Manifest.xml file is used during the deployment of a .wsp solution package.
     It tells SharePoint what files to copy, what features to install, where to put your binaries, adds SafeControl entries, as well as set code access security."
    Elements.xml -"This is a definition file for the module." 
    Onet.xml - Depending
    on where an Onet.xml file is located and whether it is part of a site definition or a web template, the markup in the file does some or all of the following:
    Specifies the web-scoped and site collection-scoped Features that are built-in to websites that are created from the site definition or web template.
    Specifies the list types, pages, files, and Web Parts that are built-in to websites that are created from the site definition or web template.
    Defines the top and side navigation areas that appear on the home page and in list views for a site definition.
    Specifies the list definitions that are used in each site definition and whether they are available for creating lists in the user interface (UI).
    Specifies document templates that are available in the site definition for creating document library lists in the UI, and specifies the files that are used in the document templates.
    Defines the base list types from which default SharePoint Foundation lists are derived. (Only the global Onet.xml file serves this function. You cannot define new base list types.)
    Specifies SharePoint Foundation components.
    Defines the footer section used in server email.
    http://msdn.microsoft.com/en-us/library/ms474369(v=office.14).aspx
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

Maybe you are looking for

  • Goods reciepts w/o Quality inspection

    Dear Friends, When we recieve the materials from the vendor,some times Quality inspection documents which are submitted by the vendor will be missing along with the materials recieved. In this case Our Quality team will not do the inspection unless a

  • To update BIOS or not to update?

    Hello, my current desktop is the Compaq Presario SR5413WM. I've recently begun upgrading some of its components, one of which will be the processor. I'm upgrading from the  AMD Athlon 64 LE-1640 Lima 2.7GHz Socket AM2 45W to the  AMD Athlon 64 X2 480

  • Screen Exit for VA25 transaction

    Hi Gurus, My requirement is to add one wbs element field on selection screen of  VA25 transaction. and in output also i need to add some fields. Pls tell me if any screen exit is available or not. points will be rewarded. regards, ravi shankar reddy

  • ADOBE DIGITAL READER

    I have downloadedbut it wont install . Help on Samsung Galaxy Tab 10.1

  • Capacity planning is not possible for this info structure

    Hi Gurus, When I create Rough cut planning profile, I am getting error message ""Capacity planning is not possible for this info structure"" I am using info structure S994 copied copied from standard info structure. Please suggest to oversome this er