Engage Embedded Flash XML
Oct 11, 2011
Hello
I have an embedded flash file in my engage template.
The flash file has one connected xml file for text.
in flash the text input is ok when embedding the flash file in engage the text does not load and the swf file keeps looping like there is no stop keyframe.
do you know how to solve this?
i use the presenter to publish my presentation and i have tried to copy the swf to the folder that the presenter uses for the published presentation swf input.
16 Replies
WHere are you putting the xml, I would put it in the root of th published file if this does not work use data\swf or then find the engage in data/swf and add it there
Sounds like your embedded Flash file might be AS3. Engage only supports AS2 swf's.
Losing it, that is normally my first response, thanks Steve
thanks for fast answer
Yeah exactly
the published folder from presenter looks like this:
if you are using as2 where is the file looking for the xml, I would start with the root of the published folder, so the folder with the player .html file
Why not as3 support?
current version of studio does not support as3
Thanks for feedback
I have another question...
I have converted the files now to as2...
I also published them for flash player 9
however when i try to embedd or add them to the engage presentation the engage program freezes...
so i can embedd as3 files but not as2? and as3 does not work...
ok so can you help me add as2 files to engage
Hi Robert,
As long as your SWF file was created using our best practices, they should work as expected:
http://www.articulate.com/support/presenter09/kb/?p=76
ok
i think my flash files follows the guidelines
however engage crashes, problem still remains
can i send the .fla to you brian?
Hi Robert,
I don't have Flash installed on my system. However, we don't support troubleshooting custom SWF files. Feel free to post your FLA as an attachment. I'm sure someone in the community will be happy to check it out for you.
ok thanks
has anyone had success with using xml in as2 .flas?
i use adobe code for importing xml text in as2 fla.... however engage freezes...
how did you solve this? help appreciated!
ok so it is not possible to connect xml via as2 into engage?
has anyone tried this?
Robert,
This is possible. When the Engage interaction is hosted inside a Presenter presentation, the xml file has to be in the root folder or the same folder as the 'data' and 'player' folders.
NOT:
\course title XXXX\data\swf\engage_269\engage_content
In regard to the crashing, there might be something in your code that is in conflict. Without seeing this I don't know.
The sample code below is AS2 Flash Player 6. I have created 3 Dynamic Text boxes with instance names (text_box1, text_box2, text_box3). I embedded this custom swf file into a Tab Interaction. This Tab Interaction is inserted into a Presenter slide.
// define an XML object called "my_xml"
my_xml = new XML();
// load data from an external XML file into "my_xml" object
my_xml.load("sample.xml");
// what to do when data is loaded ... Call a function ("my_function" in this case)
my_xml.onLoad = my_function;
// ignore "white spaces", text nodes that only contain white space are discarded
my_xml.ignoreWhite = 1;
// function contents
function my_function() {
// take the data from the XML lines (line 0,1,2) and place that data inside text fields
text_box1.text = my_xml.firstChild.childNodes[0].attributes.product_name;
text_box2.text = my_xml.firstChild.childNodes[1].attributes.product_name;
text_box3.text = my_xml.firstChild.childNodes[2].attributes.product_name;
}
The following file is a sample xml formatted file and should be used with the code above. This file was placed in my Presenter published root folder (same folder as the 'data' and 'player' folders.)
"
<?xml version="1.0" encoding= "UTF-8" ?>
<products>
<product product_name="Flash Book" price="25.00"></product>
<product product_name="Flash CD" price="10.00"></product>
<product product_name="Dreamweaver CD" price="50.00"></product>
</products>
"
I hope this helps!
awesome
BIG thank you!
Robert,
After reading my post back this morning I noticed I had a typo. I have since corrected this.
Correction:
The following file is a sample xml formatted file and should be used with the code above. This file was placed in my Presenter published root folder (same folder as the 'data' and 'player' folders.)
This discussion is closed. You can start a new discussion or contact Articulate Support.