0 Replies Latest reply on Jun 29, 2009 3:56 PM by srabadan

    In over my head with component and xml file.

    srabadan

      I am trying to achieve a more elegant solution to this file:

       

      http://home.comcast.net/~srabadan1/Douglas%20House/page2/floorplan.html

       

      The user floats the mouse over the blueprint and chooses a room, the user then sees a few photos and a description of the room. right now the file is setup as independent movieclips on the main timeline attached to each button on the blueprint. The client would like more features though, to that end I picked up slideshow pro (it's a prebuilt component that makes some great slideshows).

       

      I would like to add just one instance of this component and then have flash load the appropriate gallery into this component after the user selects the room. I would also like to dynamically load the title and description into their textboxes I know this is possible by using actionscript to interact with the xml file that the component is using but setting this up is proving beyond my abilities.

       

      I have requested help from the people at the Slideshow pro website but the answers so far just seem cryptic to me, here is a link to my post on their forum.

       

      http://forums.slideshowpro.net/viewtopic.php?id=19205

       

      It seems I need to attach a variable to each button and that variable will then be used to tell the component which gallery use after the button is pressed. I think I know what needs to happen, I just don't know how to write it.

       

      Please help, my client has been very patient with me and I am almost there but I am really stuck.

       

      Here are example of the actionscript I am using for two of the buttons and the corresponding entries to the xml file.

       

      Actionscript from my file:

       

      stop();

       

      ToSecondFloorBtn.onRelease = function() {

      _root.gotoAndStop ("ssp");

      }

       

      KitchenBtn.onRelease = function() {

      _root.gotoAndStop ("ssp");

      var album_name = "Kitchen"

      }

       

      DenGalleryBtn.onRelease = function() {

      _root.gotoAndStop ("ssp");

      ar album_name = "Kitchen"

       

      from xml file:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <gallery>

       

      <album id="Kitchen" description="Album Description: "for album description" lgpath="gallery/Kitchen/large/" tnpath="gallery/Kitchen/thumb/">

      <img src="01.jpg"/>

      <img src="02.jpg"/>

      <img src="03.jpg"/>

      </album>

       

      <album id="Den" description="Album Description: "for album description" lgpath="gallery/Den/large/" tnpath="gallery/Den/thumb/">

      <img src="01.jpg"/>

      <img src="02.jpg"/>

      <img src="03.jpg"/>

      <img src="04.jpg"/>

      </album>