Dynamic Flash with XML
1. Create XML (generate with JSP)
jsp:
<%@ page contentType="text/xml" %> <?xml version="1.0" encoding="UTF-8"?> <itemlist> ... </itemlist>
2. Load the external XML into Flash (fla). Create swf
ActionScript:
myTest = new XML(); //create a new xml object myTest.ignoreWhite = true; //ignore whitespace myTest.load("sample.xml"); ...
3. Embed the swf (and set xml path) in HTML
HTML:
<object width="250" height="250" id="some_id"> <param name=movie value="test.swf"> <embed src="test.swf"> </embed> </object>
Bookmarks
1. JSP / XML- Development with JSP and XML-- Part II: JSP with XML in mind (Article by Sun)
- Working with XML: The Java/XML Tutorial (Tutorials by Sun)
- Generate dynamic XML using JavaServer Pages technology (Article by IBM)
- XML JSP Tag Library (Open Source JSP Tag Library for Java XML-driven Web Applications)
- Introduction to XML in Flash by kirupa.com
- XML/SWF Charts Excellent downloadable swf demo by maani.us
No comments:
Post a Comment