<?xml version="1.0" encoding="utf-8"?>
		<feed xmlns="http://www.w3.org/2005/Atom">
		  <title type="text">SkillShare Forum - CSS Beauty - find and replace xml nodes in flash</title>
		  <updated>2013-05-21T21:25:04-04:00</updated>
		  <id>http://cssbeauty.com/skillshare/</id>
		  <link rel="alternate" type="text/html" hreflang="en" href="http://cssbeauty.com/skillshare/discussion/?DiscussionID=3205&amp;Focus=16396"/>
		  <link rel="self" type="application/atom+xml" href="http://cssbeauty.com/skillshare/discussion/?DiscussionID=3205&amp;Focus=16396&amp;Feed=Atom"/>
		  <generator uri="http://getvanilla.com/" version="1.1.9">
			 Lussumo Vanilla
		  </generator>
		  <entry>
		<title>find and replace xml nodes in flash</title>
		<link rel="alternate" href="http://cssbeauty.com/skillshare/discussion/3205/?Focus=16388#Comment_16388" type="application/xhtml+xml" hreflang="en"/>
		<id>http://cssbeauty.com/skillshare/discussion/3205/?Focus=16388#Comment_16388</id>
		<published>2009-09-02T00:04:14-04:00</published>
		<updated>2013-05-21T21:25:04-04:00</updated>
		<author>
			<name>chand</name>
			<uri>http://cssbeauty.com/skillshare/account/3785/</uri>
		</author>
		<summary type="text" xml:lang="en">
			I'm working on the flash flipbook and I need to make it dynamic. So that I can change the contents of the flipbook by replacing the nodes of xml. The case is that I had tabs on one side of the book ...
		</summary>
		<content type="html">
			<![CDATA[I'm working on the flash flipbook and I need to make it dynamic. So that I can change the contents of the flipbook by replacing the nodes of xml. The case is that I had tabs on one side of the book which I use as the triggers for the pages to flip them. Moreover it also used as that I can swap the positions of the tabs and when the tabs are swapped the respective page of the tab also swapped its position. Means if previously the tab was at location 2 and it also controlling page2, now after the tab location changed it also changes the page location say the page and tab now on location 5. Please let me know what should be the solution. Below is my xml file.<br />I use plocation for the location of the page but it doesn't give me any idea to solve this problem, because I use the opensource flip book and it is hard to change its parser and make it according to plocation loading. Please guide me.<br /><br /><br />&lt;?xml version="1.0"?&gt;<br />&lt;content width="382" height="650" hcover="false" transparency="true"&gt;<br />	&lt;page src="../pages/cover.jpg" plocation="0" preLoad="true"/&gt;<br />	&lt;page src="../pages/page1_left.png" plocation="1" preLoad="true"/&gt;<br />	&lt;page src="../pages/page2_right.png" plocation="2" preLoad="true"/&gt;<br />	&lt;page src="../pages/page3_left.png" plocation="3" preLoad="true"/&gt;<br />	&lt;page src="../pages/page4_right.png" plocation="4" preLoad="true"/&gt;<br />	&lt;page src="../pages/page5_left.png" plocation="5" preLoad="true"/&gt;		<br />	&lt;page src="../pages/page6_right.png" plocation="6" preLoad="true"/&gt;<br />	&lt;page src="../pages/page7_left.png" plocation="7" preLoad="true"/&gt;<br />	&lt;page src="../pages/page8_right.png" plocation="8" preLoad="true"/&gt;		<br />	&lt;page src="../pages/image67.jpg" plocation="9" preLoad="true"/&gt;<br />	<br />	&lt;page src="../pages/image106.jpg" plocation="10" preLoad="true"/&gt;<br />	&lt;page src="../pages/backend.jpg" plocation="11" preLoad="true"/&gt;<br />&lt;/content&gt;]]>
		</content>
	</entry>
	<entry>
		<title>find and replace xml nodes in flash</title>
		<link rel="alternate" href="http://cssbeauty.com/skillshare/discussion/3205/?Focus=16391#Comment_16391" type="application/xhtml+xml" hreflang="en"/>
		<id>http://cssbeauty.com/skillshare/discussion/3205/?Focus=16391#Comment_16391</id>
		<published>2009-09-02T22:22:12-04:00</published>
		<updated>2013-05-21T21:25:04-04:00</updated>
		<author>
			<name>Janeck</name>
			<uri>http://cssbeauty.com/skillshare/account/3265/</uri>
		</author>
		<summary type="text" xml:lang="en">
			My suggestion would be to have this stuff on arrays and then erase and generate the xml instaed of doing find and replace. Here's an example in javascript, i dont have flash so i cant translate to ...
		</summary>
		<content type="html">
			<![CDATA[My suggestion would be to have this stuff on arrays and then erase and generate the xml instaed of doing find and replace. Here's an example in javascript, i dont have flash so i cant translate to actionscript format, but the concept is the same:<br />var pageY= new Array();<br />pageY[0] = ../pages/cover.jpg;<br />pageY[1] = 1;<br />pageY[2] = true;<br /><br />var pageX = new Array();<br />pageX [0] = ../pages/page1_left.png;<br />pageX [1] = 2;<br />pageX [2] = true;<br /><br />var xmlArray = new Array();<br />xmlArray[0] = pageY;<br />xmlArray[1] = pageX;<br /><br />Then loop and generate the xml etc, hope that helps]]>
		</content>
	</entry>
	<entry>
		<title>find and replace xml nodes in flash</title>
		<link rel="alternate" href="http://cssbeauty.com/skillshare/discussion/3205/?Focus=16392#Comment_16392" type="application/xhtml+xml" hreflang="en"/>
		<id>http://cssbeauty.com/skillshare/discussion/3205/?Focus=16392#Comment_16392</id>
		<published>2009-09-02T22:31:21-04:00</published>
		<updated>2013-05-21T21:25:04-04:00</updated>
		<author>
			<name>chand</name>
			<uri>http://cssbeauty.com/skillshare/account/3785/</uri>
		</author>
		<summary type="text" xml:lang="en">
			@Janeck I need little more explanation, actually I don't grasp the concept. Especially from pageY and pageX, what I think this should be in actionscript and the xmlArray is also so how I can interact ...
		</summary>
		<content type="html">
			<![CDATA[@Janeck I need little more explanation, actually I don't grasp the concept. Especially from pageY and pageX, what I think this should be in actionscript and the xmlArray is also so how I can interact with xml file. Please little more explanation or send me the link of the article whose reference you give which is about javascript.]]>
		</content>
	</entry>
	<entry>
		<title>find and replace xml nodes in flash</title>
		<link rel="alternate" href="http://cssbeauty.com/skillshare/discussion/3205/?Focus=16395#Comment_16395" type="application/xhtml+xml" hreflang="en"/>
		<id>http://cssbeauty.com/skillshare/discussion/3205/?Focus=16395#Comment_16395</id>
		<published>2009-09-03T19:54:44-04:00</published>
		<updated>2013-05-21T21:25:04-04:00</updated>
		<author>
			<name>Janeck</name>
			<uri>http://cssbeauty.com/skillshare/account/3265/</uri>
		</author>
		<summary type="text" xml:lang="en">
			I dont have a reference, it was more of on the spot thinking. the concept I am suggesting is(from my understanding of what you are asking), instead of reading the xml file then switching it ...
		</summary>
		<content type="html">
			<![CDATA[I dont have a reference, it was more of on the spot thinking. the concept I am suggesting is(from my understanding of what you are asking), instead of reading the xml file then switching it dynamically, is to create it dynamically each time you change the options. so you have each option stored individually ( that being a variable, pageX and pageY in my example, you can name it whatever though), then change their index on an array (that array being xmlArray in my example), and from that array generate an xml. <br />I suppose my first question should have been : how do you intend to generate your xml dynamically?]]>
		</content>
	</entry>
	<entry>
		<title>find and replace xml nodes in flash</title>
		<link rel="alternate" href="http://cssbeauty.com/skillshare/discussion/3205/?Focus=16396#Comment_16396" type="application/xhtml+xml" hreflang="en"/>
		<id>http://cssbeauty.com/skillshare/discussion/3205/?Focus=16396#Comment_16396</id>
		<published>2009-09-03T20:49:26-04:00</published>
		<updated>2013-05-21T21:25:04-04:00</updated>
		<author>
			<name>chand</name>
			<uri>http://cssbeauty.com/skillshare/account/3785/</uri>
		</author>
		<summary type="text" xml:lang="en">
			@ Janeck
Thanks Janeck,
what I need actually is that, when I parse  the xml it loads all the images in the order as they are placed in the xml. So now when I rearrange the tabs which are changes ...
		</summary>
		<content type="html">
			<![CDATA[@ Janeck<br />Thanks Janeck,<br />what I need actually is that, when I parse  the xml it loads all the images in the order as they are placed in the xml. So now when I rearrange the tabs which are changes the pages too from their original positions. Now these pages that have new page numberings and positions in the book must be save their state in the xml file back so that, when next time I reload the data from xml file it loads in the way as we write last time. For example<br /><br />&lt;?xml version="1.0"?&gt;<br />&lt;content width="382" height="650" hcover="false" transparency="true"&gt;<br />&lt;page src="../pages/cover.jpg" plocation="0" preLoad="true"/&gt;<br />&lt;page src="../pages/page1_left.png" plocation="1" preLoad="true"/&gt;<br />&lt;page src="../pages/page2_right.png" plocation="2" preLoad="true"/&gt;<br />.<br />.<br />.<br />&lt;page src="../pages/image106.jpg" plocation="10" preLoad="true"/&gt;<br />&lt;page src="../pages/backend.jpg" plocation="11" preLoad="true"/&gt;<br />&lt;/content&gt;<br /><br />this is the original what I want to replace is only the src attribute of each node so I can easily get the user set orientation.]]>
		</content>
	</entry>
	
		</feed>