Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash/XML Image Viwer question

Status
Not open for further replies.

camcim

Programmer
Jan 25, 2003
20
US
Hello all,
I'm currently working on a modified version of Macromedias Image Viewer.
With the added features from tupps my movie now has auto play, stop, go to end slide (swf's) etc.
At the moment i have the following code:
Code:
<?xml version=&quot;1.0&quot;?>

<Slides>
  <slideNode jpegURL=&quot;images/pic_1.swf&quot;>Picture 1</slideNode>
  <slideNode jpegURL=&quot;images/pic_2.swf&quot;>Picture 2</slideNode>
  <slideNode jpegURL=&quot;images/pic_3.swf&quot;>Picture 3</slideNode>
  <slideNode jpegURL=&quot;images/pic_4.swf&quot;>Picture 4</slideNode>
  <slideNode jpegURL=&quot;images/pic_5.swf&quot;>Picture 5</slideNode>
  <slideNode jpegURL=&quot;images/pic_6.swf&quot;>Picture 6</slideNode>
  <slideNode jpegURL=&quot;images/pic_7.swf&quot;>Picture 7</slideNode>
  <slideNode jpegURL=&quot;images/pic_8.swf&quot;>Picture 8</slideNode>
  <slideNode jpegURL=&quot;images/pic_9.swf&quot;>Picture 9</slideNode>
</Slides>
This group of slides (swf's) is one Presentation
What i now want to be able to do is add a combo box that displays the Presentation title in it and any other Presentation titles that may exist (at a later date).
Can anyone tell me how i go about this? Can i add a <Presentation> tag to my xml file with the name of that Presentation or do i need to create a new xml file for each Presentation?

Any ideas greatly appreciated.

Regards,
camcim
 
try doing this:

<presentations>
<presentation title=&quot;mytitle&quot;>
<slideNode jpegURL=&quot;images/pic_1.swf&quot;>Picture 1</slideNode>
<slideNode jpegURL=&quot;images/pic_2.swf&quot;>Picture 2</slideNode>
<slideNode jpegURL=&quot;images/pic_3.swf&quot;>Picture 3</slideNode>
<slideNode jpegURL=&quot;images/pic_4.swf&quot;>Picture 4</slideNode>
<slideNode jpegURL=&quot;images/pic_5.swf&quot;>Picture 5</slideNode>
<slideNode jpegURL=&quot;images/pic_6.swf&quot;>Picture 6</slideNode>
<slideNode jpegURL=&quot;images/pic_7.swf&quot;>Picture 7</slideNode>
<slideNode jpegURL=&quot;images/pic_8.swf&quot;>Picture 8</slideNode>
<slideNode jpegURL=&quot;images/pic_9.swf&quot;>Picture 9</slideNode>
</presentation>
<presentation name=&quot;presentation2&quot;>
.... other slides ....
</presentation>
</presentations>

so instead of using <Slides> use <presention> with the attribute name in it.

hope that helps

matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top