Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XML within XML and Flash problem

From: "Lance" <lance.botha@-----.--->
To: NULL
Date: 10/4/2006 2:00:00 AM

Hi All,

I have a SWF flash document (book.swf) that references a config.xml
file.  Within the config.xml file the following is written:

	<pages>
		<page> page01.jpg </page>
		<page> page02.jpg </page>
		<page> page02.jpg</page>
		<page> page03.jpg</page>
		<page> page04.jpg</page>
		<page> page05.jpg</page>
	</pages>

When I run the flash document (book.swf), image page01.jpg is displayed
for page 1 and image page02.jpg for page 2 etc.. Instead I would like
to display a unique xml file page1.xml, page2.xml for the various
pages.  I am hoping to create a template.swf file, which amends the
text positioning for the custom xml files similar to a style sheet.
I'm wanting to change the config.xml file so that it can display
different xml pages through the same template.swf file.  Kind of like
below: (except I don't know XML enough to programme it)

	<pages>
		<page> template.swf ? page1.xml </page>
		<page> template.swf ? page2.xml </page>
		<page> template.swf? page3.xml </page>
		<page> template.swf? page4.xml </page>
		<page> template.swf? page5.xml </page>
		<page> template.swf? page6.xml </page>
	</pages>

So when book.swf is run, it will reference the config.xml file, and see
that for page1 it will get template.swf displaying page1.xml and so on.

Can this be done?

Many thanks,

Lance



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent