XML data not seen by Flash animation
July 7, 2009 12:00 AM
Figured it out.
In the parameters tab of the SWF animation add the following parameter
Parameter Name: Flashvars
Parameter Value: XMLFile =screenName.xml
Turns out that since the html file is grabbing the XML file, you do NOT need to have it navigate up one folder - they are in the same root html folder.
Also, I had to type in Flashvars with a capital "F" for this to work. I saw a "flashvars" with a small "f" in the drop down menu. That did not work for me.
gigard said:I have a Flash based Drag and Drop Knowledge Check that I want to use in a Lectora course. We use XML for the question data. We do this so that we only need to change the XML file and can re-use the Flash file over and over again without changing it. The Flash file correctly grabs the XML data as a standalone Flash file and when published to HTML. See URL http://www.icfhcs.com/temp/XMLIssue/standalone/flash-swf-files/index.html However, when I include this in my Lectora it will not "see" the XML data. The XML file is added as as Additional file. In doing this ,the XML file resides in the root html folder. I add the Flash file as an animation. The following are checked: Initially visible Always on Top Auto Start Preload animation when published to HTML No parameters are loaded The Flash file itself looks for ../screenName.xml" to load. Knowing that the swf file itself will be in the images folder, it needs to look up one folder level for the xml file that is loaded by Lectora into the root html folder during publishing. See this URL. It is only showing the default data ("Answer - 123") See URL http://www.icfhcs.com/temp/XMLIssue/html/index.html The problem is that the XML file is NOT being read. Any ideas on what I need to do? I've also tried adding in a flash parameter but that doesn't seem to work either.
Discussions have been disabled for this post