<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - flash - 9.0 - main - 00000132.html</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T08:01:16</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000132.html#85624" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000132.html#85178" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000132.html#79951" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000132.html#73351" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000132.html#69350" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000132.html#69128" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000132.html#69073" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000132.html#68745" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000132.html#68744" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000132.html#67454" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000132.html#85624">
		<title>flash/9.0/main/00000132.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000132.html#85624</link>
		<description>princezoe23,&lt;br&gt;&lt;br&gt;Yes. See the flash.net.URLRequest.url property for information on formatting URL variables. Or, the flash.net.URLVariables class to create an object containing the variables to pass to the URLLoader.</description>
		<dc:creator>djtechwriter</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2008-07-10T11:45:41</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000132.html#85178">
		<title>flash/9.0/main/00000132.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000132.html#85178</link>
		<description>in the xml address can I send some url variable with that address using the &lt;br /&gt;&lt;br /&gt;address?variable routine</description>
		<dc:creator>princezoe23</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-06-24T09:12:29</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000132.html#79951">
		<title>flash/9.0/main/00000132.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000132.html#79951</link>
		<description>using xml its not good practice to use single data notations as you have for instance&lt;br /&gt;&lt;br /&gt;&lt;word0 &lt;br /&gt;english=&quot;I didn't understand very well&quot;&lt;br /&gt;spanish=&quot;no entendí bien&quot;&lt;br /&gt;image=&quot;imgs/iDidntUnderstandVeryWell.swf&quot;&lt;br /&gt;engAudio=&quot;engAudio/iDidntUnderstandVeryWell.mp3&quot;&lt;br /&gt;spanAudio=&quot;spanAudio/noEntendiBien.mp3&quot;&lt;br /&gt;/&gt;&lt;br /&gt;&lt;br /&gt;should be:&lt;br /&gt;&lt;br /&gt;&lt;word0&gt;&lt;br /&gt;           &lt;english&gt;I didn't understand very well&quot; &lt;/english&gt;&lt;br /&gt;           &lt;spanish&gt;no entendí bien&quot; &lt;/spanish&gt;&lt;br /&gt;           &lt;image&gt;imgs/iDidntUnderstandVeryWell.swf&quot; &lt;/image&gt;&lt;br /&gt;           &lt;engAudio&gt;engAudio/iDidntUnderstandVeryWell.mp3&quot; &lt;/engAudio&gt;&lt;br /&gt;           &lt;spanAudio&gt;spanAudio/noEntendiBien.mp3&quot; &lt;/spanAudio&gt;&lt;br /&gt;&lt;/word0&lt;br /&gt;&lt;br /&gt;you see when you use a format like:&lt;br /&gt;  &lt;Main color=&quot;red&quot; &gt;&lt;/Main&gt;&lt;br /&gt;&lt;br /&gt;it uses single data where something like this:&lt;br /&gt;   &lt;Main&gt;&lt;br /&gt;           &lt;color&gt;red&lt;/color&gt;&lt;br /&gt;   &lt;/Main&lt;br /&gt;&lt;br /&gt;then you can add multiple attributes with out hurting the layout of the structure... sure it will work both ways but its just good practice to do the way displayed...&lt;br /&gt;&lt;br /&gt;i've always told myself that if i'm gonna learn i'm gonna learn the right way.&lt;br /&gt;&lt;br /&gt;good luck on your voyage into as3...</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-01-25T23:21:59</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000132.html#73351">
		<title>flash/9.0/main/00000132.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000132.html#73351</link>
		<description>I have tried using the example code above to read an xml file but I keep getting error 1088: The markup in the document following the root element must be well-formed.&lt;br /&gt;I'd like to see an example of the form it should be in.  I have successfully parsed the same xml using actionscript 2.0.  Here is a sample of the xml I've been trying to parse:&lt;br /&gt;&lt;br /&gt;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-16&quot;?&gt;&lt;br /&gt;&lt;basePath basePath=&quot;lib/&quot;/&gt;&lt;br /&gt;&lt;br /&gt;&lt;word0 &lt;br /&gt;english=&quot;I didn't understand very well&quot;&lt;br /&gt;spanish=&quot;no entendí bien&quot;&lt;br /&gt;image=&quot;imgs/iDidntUnderstandVeryWell.swf&quot;&lt;br /&gt;engAudio=&quot;engAudio/iDidntUnderstandVeryWell.mp3&quot;&lt;br /&gt;spanAudio=&quot;spanAudio/noEntendiBien.mp3&quot;&lt;br /&gt;/&gt;&lt;br /&gt;&lt;br /&gt;&lt;word0&lt;br /&gt;english=&quot;What does _______ mean?&quot;&lt;br /&gt;spanish=&quot;qué significa      &quot;&lt;br /&gt;image=&quot;imgs/whatDoes___Mean.swf&quot;&lt;br /&gt;engAudio=&quot;engAudio/whatDoes-Mean.mp3&quot;&lt;br /&gt;spanAudio=&quot;spanAudio/queSignifica.mp3&quot;&lt;br /&gt;/&gt;</description>
		<dc:creator>danwize</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-09-06T16:21:28</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000132.html#69350">
		<title>flash/9.0/main/00000132.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000132.html#69350</link>
		<description>Hi.&lt;br /&gt;I would like to know if there is a way to reload an XML when it changes. For example at the beginning of my flash movie i load an XML in which i have information how to draw my screen. So, for as long as my XML stays the same, my screen stays the same, but when my XML changes, i would like to redraw my screen. Any way to do this? &lt;br /&gt;Thank you for help.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-07-02T03:06:19</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000132.html#69128">
		<title>flash/9.0/main/00000132.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000132.html#69128</link>
		<description>@MotionMaker:&lt;br&gt;Re: &quot;Variables are undefined...&quot;&lt;br&gt;&lt;br&gt;You noted that &quot;Variables are undefined in xmlLoaded&quot;, which isn't necessarily true (but can be true). Presumably, you're putting the non-function code (i.e. the lines from &quot;var myXML:XML = new XML(); to myLoader.addEventListener()&quot;) in a separate function, in which case the variable myLoader wouldn't be available in the scope of the xmlLoaded function. However, as it's written, if for example you paste the code into a frame script in Flash, or if you declare myLoader as a member variable in a class and wrap the rest of the code in a function, it works fine and the variables aren't undefined.&lt;br&gt;&lt;br&gt;As the code is written, the two versions are exactly equivalent -- since myLoader is the object that's dispatching the event, myLoader.data is exactly the same as event.target.data. If you do have access to the object that dispatches the event through a different variable (as in this case with myLoader) then it can be slightly better to do it that way because 1) you can get code hints while you're writing your code and 2) at run time, Flash Player doesn't have to convert the object to a different data type, like it does with event.target (since event.target's data type is Object) so using the myLoader version will have a small performance benefit. However, if you *don't* have access to the object that's dispatching the event through another variable, then you can use the event.target version to achieve the same result.</description>
		<dc:creator>adbe_paul</dc:creator>
		<dc:type>1 0</dc:type>
		<dc:date>2007-06-27T12:33:09</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000132.html#69073">
		<title>flash/9.0/main/00000132.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000132.html#69073</link>
		<description>@RavenWorks:&lt;br&gt;&lt;br&gt;It's not bad practice in the sense that it always will work. Some developers find it clearer to add the event listeners before calling the operation which results in the events, while other developers prefer to group all the addEventListener() calls at the end to separate them.&lt;br&gt;&lt;br&gt;In any case, because of the way asynchronous operations (like loading an XML file) work in ActionScript, it wouldn't be possible for the event to be dispatched before the addEventListener() call happens. The reason is because ActionScript is single-threaded, meaning there is always only one set of ActionScript instructions being executed at one time. An entire set of instructions will always be run in sequence before any other sets of instructions (such as event listeners) are called. (In fact, after something like load() is called, the event listeners are never called until at least the next &quot;frame&quot; of time.) So any time you're calling an asynchronous operation, as long as you add your event listeners within the same set of code (e.g. in the same function block or in the same timeline script) your listeners will always be added before the events are dispatched.</description>
		<dc:creator>adbe_paul</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2007-06-26T16:13:14</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000132.html#68745">
		<title>flash/9.0/main/00000132.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000132.html#68745</link>
		<description>The example of a &quot;statement&quot; function versus and &quot;expression&quot; function &lt;br /&gt;allows using it before it appears in code. I can be a less acceptable style &lt;br /&gt;practice . However the code sequence is ok.&lt;br /&gt;&lt;br /&gt;Expression function:&lt;br /&gt;expressionTest(); // run-time error&lt;br /&gt;&lt;br /&gt;var expressionTest:Function = function ()&lt;br /&gt;{&lt;br /&gt;    trace(&quot;expressionTest&quot;);&lt;br /&gt;}&lt;br /&gt;Statement function example:&lt;br /&gt;statementTest(); // statementTest in trace&lt;br /&gt;&lt;br /&gt;function statementTest():void&lt;br /&gt;{&lt;br /&gt;    trace(&quot;statementTest&quot;);&lt;br /&gt;}</description>
		<dc:creator>MotionMaker</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-06-20T10:24:08</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000132.html#68744">
		<title>flash/9.0/main/00000132.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000132.html#68744</link>
		<description>Variables are undefined in xmlLoaded&lt;br /&gt;&lt;br /&gt;Change&lt;br /&gt;&lt;br /&gt;myXML = XML(myLoader.data);&lt;br /&gt;&lt;br /&gt;to&lt;br /&gt;&lt;br /&gt;var myXML:XML = XML(event.target.data);</description>
		<dc:creator>MotionMaker</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-06-20T10:15:42</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000132.html#67454">
		<title>flash/9.0/main/00000132.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000132.html#67454</link>
		<description>Is it bad practice to add the event listener AFTER starting the load like that? This script seems to depend on the load not finishing before the listener is added. Is there a guaranteed minimum amount of time that any load is going to take before firing an event, even on a 0 byte file?</description>
		<dc:creator>RavenWorks</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-05-27T14:10:57</dc:date>
	</item>
	</rdf:RDF>

