<br><font size=2 face="sans-serif">I am attempting to load some external
content into a Xerte project but I'm having difficulty getting this to
work when the content itself gets data from an external file.</font>
<br>
<br><font size=2 face="sans-serif">The project uses a custom interface
and &nbsp;contains a couple of graphics icons together with a number of
flex style accordian panes, listitems and tabs. Selecting the appropriate
combination should load the required external content into the graphic
icons using the loadImage() method. e.g. displayGraphic.loadImage(FileLocation
+ 'Media/Pane1/Graphics.swf')</font>
<br>
<br><font size=2 face="sans-serif">The external content is always in the
form of an .swf file however there are two distinct types. </font>
<br><font size=2 face="sans-serif">One contains a number of scenes that
are linked by some actionscript. All the graphics are contained within
the .swf and this type of file loads and operates without issue.</font>
<br><font size=2 face="sans-serif">The second type contains only a single
dynamic text block together with a ScrollPane component. The timeline contains
the following ActionScript to load the text from a plaintext file at runtime:</font>
<br>
<br><font size=2 color=blue face="sans-serif">myData = new LoadVars();</font>
<br><font size=2 color=blue face="sans-serif">myData.onLoad = function(success){</font>
<br><font size=2 color=blue face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;
if (success) {</font>
<br><font size=2 color=blue face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; myText_txt.htmlText = this.text;</font>
<br><font size=2 color=blue face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;
} else {</font>
<br><font size=2 color=blue face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; myText_txt.htmlText = &quot;&lt;b&gt;Flash
has failed to load the text file!&lt;b&gt;&quot;;</font>
<br><font size=2 color=blue face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;
}</font>
<br><font size=2 color=blue face="sans-serif">};</font>
<br>
<br><font size=2 color=blue face="sans-serif">myData.load(&quot;Overview.txt&quot;);</font>
<br>
<br><font size=2 face="sans-serif">Overview.txt is located in the same
directory as the .swf and is in the form &quot;text=Required text etc.
etc. etc...&quot;</font>
<br>
<br><font size=2 face="sans-serif">When I test the .swf, it loads and displays
the content of Overview.txt as expected, however when I try to get Xerte
to load this file I get the &quot;Flash has failed to load the text file!&quot;
message.</font>
<br>
<br><font size=2 face="sans-serif">Displaying text from an external source
file is going to be a major part of this project so I need to get this
to work.</font>
<br>
<br><font size=2 face="sans-serif">Being an Authorware refugee, I'm only
just getting started with Flash and Xerte so would appreciate any help!</font>
<br>
<br><font size=2 face="sans-serif">Steve<br>
<br>
__________________________________________________________________________________<br>
Lucite International Group Limited. Registered in England No. 5671799.
<br>
Registered Office: Queens Gate, 15-17 Queens Terrace, Southampton SO14
3BP, United Kingdom<br>
Holding Company for the Lucite International Group<br>
 &nbsp;</font><br><br>
<FONT style="BACKGROUND-COLOR: #ffffff"><FONT face=Verdana size=2>
<P><STRONG>IMPORTANT NOTICE::-</STRONG> This email is confidential, may be legally privileged, and is solely for the use of the intended recipient. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. <BR>If you have received this e-mail by mistake, please notify the sender immediately by e-mail and delete this e-mail from your system. The sender has taken reasonable precautions to ensure no viruses are present in this e-mail however the company cannot accept <BR>responsibility for any loss or damage arising from the use of this e-mail or attachments. Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. <BR>We advise that you understand and consider this lack of security when e-mailing us.</P></FONT></FONT>