Working with XML contentOpen the gallery.xml file in Dreamweaver (File -> Open), to change the content of your gallery. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Flash Presentation). After that, in the category of 'General', click the 'Edit' button near the 'Source' field. The following example shows the basic structure of the content XML file: <?xml version="1.0" encoding="utf-8"?>
<banner>
<back>
<caption position_x="10" position_y="25">
<content><![CDATA[<p class="static">any text</p>]]></content>
</caption>
</back>
<slides>
<slide sound="sounds/sound01.mp3" link="empty" target="_blank">
<caption position_x="300" position_y="30">
<content><![CDATA[<p class="headline">any text</p>]]></content>
<show>
<transition type="Fly" direction="IN" duration="1" method="Strong.easeOut" start_point="4" />
</show>
<hide>
<transition type="Fly" direction="OUT" duration="1" method="Strong.easeOut" start_point="6" />
</hide>
</caption>
<image src="photos/photo01.jpg" position_x="125" position_y="30">
<show>
<transition type="Fly" direction="IN" duration="1" method="Strong.easeOut" start_point="4" />
<transition type="Zoom" direction="IN" duration="1" method="Strong.easeOut" />
<transition type="Iris" direction="IN" duration="1" method="Strong.easeOut" start_point="7" shape="Circle" />
<transition type="Rotate" direction="IN" duration="1" method="Strong.easeOut" ccw="false" degrees="120" />
</show>
<hide>
<transition type="Fly" direction="OUT" duration="1" method="Strong.easeOut" start_point="6" />
</hide>
</image>
</slide>
</slides>
</banner>
Each slide consists of text and graphic elements: tags <caption> and <image>. There could be any number of such elements. Tag which is situated above will be situated at the foreground, and tag which is below at background. Each of the elements <caption> and <image> has tags <show> and <hide>. The first tag contains the description of the transitions for slide show. The second tag contains the description of the transitions for slide hide. You can use any number of the combinations <transition> to make unique effects of slides appear and hide. Tag <back> hasn't tags <show> and <hide>. The content of this tag is static and it is remain visible through the presentation show. <banner>DescriptionMain tag and contains the description of the presentation (banner). <back>DescriptionContains static captions on the background. The content of this tag appears only once and it is remain visible through the presentation show. <slides>DescriptionContains slides. <slide>DescriptionContains the description of the slide. Slide contains tags <caption> and <image> and can contain any number of these tags. Attributes
<caption>DescriptionThe tag of the caption description. Consists of tags <content>, <show> and <hide>. Attributes
<image>DescriptionThe tag of the image description. Consists of tags <show> and <hide>. Attributes
<content>DescriptionContains text content of the caption. You can use HTML in this tag. Example use <show>DescriptionContains the description of the transitions for slide show. Ttransition slide is a combination of tags <transition>. <hide>DescriptionContains the description of the transitions for slide hide. Transition slide is a combination of tags <transition>. <transition>DescriptionThe description of the transition slide.Attributes
Table #1
The tag <transition> should contain a type attribute that indicates the transition effect class to apply, followed by direction, duration, and method attributes. In addition, you must include any attributes that are required by the specified transition effect class. For example, the Iris transition effect class requires additional start_point and shape attributes. So, in addition to the type, duration, and method attributes that every transition requires, you should also add the start_point and shape attributes that the Iris effect requires. The following code adds start_point and shape attributes to the Iris effect: <transition type="Iris" direction="IN" duration="1" method="Strong.easeOut" start_point="7" shape="Circle" /> Table #2
These five easing classes each have three easing methods, which are described in the following table: Table #3
|