XML/SWF Slideshow  2.64 | XML/SWF Charts | SlickBoard(New)

 next > 

 

Basics

 

1. Type the following text in a text document, name the document sample.xml, and place it on your server:


<slideshow>
</slideshow>

 


2. Using another document, create a web page on the same server, and insert the slideshows.swf flash file into it like this (copy and paste the code in your web page):

<HTML>
<BODY bgcolor="#FFFFFF">

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" 
	WIDTH="320" 
	HEIGHT="240" 
	id="slideshow">
<PARAM NAME="movie" VALUE="slideshow.swf" />
<PARAM NAME="quality" VALUE="high" />
<PARAM NAME="bgcolor" VALUE="#000000" />
<param name="allowScriptAccess" value="sameDomain" />

<EMBED src="slideshow.swf" 
	quality="high" 
	bgcolor="#000000" 
	WIDTH="320" 
	HEIGHT="240" 
	NAME="slideshow" 
	allowScriptAccess="sameDomain" 
	swLiveConnect="true" 
	TYPE="application/x-shockwave-flash" 
	PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

</BODY>
</HTML>

Notice that the slideshow.swf URL is in two different places to work on all browsers.

If slideshow.swf isn't in the same directory as your web page file, this URL must contain the appropriate relative or absolute file paths. Examples: "/graphics/slideshow.swf", "http://yourserver/graphics/slideshow.swf".

 


3. Pass the URL of sample.xml to the tool like this:

<HTML>
<BODY bgcolor="#FFFFFF">

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" 
        WIDTH="320" 
        HEIGHT="240" 
        id="slideshow">
<PARAM NAME="movie" VALUE="slideshow.swf?xml_source=sample.xml"/>
<PARAM NAME="quality" VALUE="high" />
<PARAM NAME="bgcolor" VALUE="#000000" />
<param name="allowScriptAccess" value="sameDomain" />

<EMBED src="slideshow.swf?xml_source=sample.xml" 
	quality="high" 
	bgcolor="#000000" 
	WIDTH="320" 
	HEIGHT="240" 
	NAME="slideshow" 
	allowScriptAccess="sameDomain" 
	swLiveConnect="true" 
	TYPE="application/x-shockwave-flash"  
	PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

</BODY>
</HTML>

This tells the tool to get the slideshow's data from sample.xml created in the first step.

If sample.xml isn't in the same directory as your web page file, the sample.xml URL must contain the appropriate relative or absolute file paths. Examples: "/xml/sample.xml", "http://yourserver/xml/sample.xml".

 


4. Preview the web page in a browser. Because the XML code in sample.xml doesn't describe a slideshow, this example generates a basic, default slideshow like this:

 


Slideshow Modification

To edit the slideshow, create the necessary XML elements in sample.xml like this:


<slideshow>

   <!-- show the control bar -->
   <control bar_visible='on' />

</slideshow>

 

 next > 


Copyright 2004-2016, maani.us