[Xerte] Loading External Content

steve.frank at lucite.com steve.frank at lucite.com
Wed Mar 4 15:45:38 GMT 2009


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.

The project uses a custom interface and  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')

The external content is always in the form of an .swf file however there 
are two distinct types. 
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.
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:

myData = new LoadVars();
myData.onLoad = function(success){
        if (success) {
                myText_txt.htmlText = this.text;
        } else {
                myText_txt.htmlText = "<b>Flash has failed to load the 
text file!<b>";
        }
};

myData.load("Overview.txt");

Overview.txt is located in the same directory as the .swf and is in the 
form "text=Required text etc. etc. etc..."

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 
"Flash has failed to load the text file!" message.

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.

Being an Authorware refugee, I'm only just getting started with Flash and 
Xerte so would appreciate any help!

Steve

__________________________________________________________________________________
Lucite International Group Limited. Registered in England No. 5671799. 
Registered Office: Queens Gate, 15-17 Queens Terrace, Southampton SO14 
3BP, United Kingdom
Holding Company for the Lucite International Group
 

IMPORTANT NOTICE: 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. 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 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. We advise that you understand and consider this lack of security when e-mailing us.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090304/b669111a/attachment.html


More information about the Xerte mailing list