How to successfully play Flash files that use external file references in DHTML?

Media Players ››

PROBLEM

How to successfully play Flash files that use external file references in DHTML?


For example, you use the Flash Player catalog object to play a Flash file.


DETAILS

The reason that 2.SWF and 3.SWF failed to play in the DHTML is because those two Flash files are accessed and played directly by 1.SWF. The ToolBook export process has no idea that the 1.SWF file contains internal references to other files, so ToolBook is unaware of the need to move those other two media files into the Web Export folder along with the other files.


Because ToolBook is unaware of these extra files, technically the playback of multi-file SWF media, it not considered supported within ToolBook. Having said that, it appears that it is possible to make this work by manually moving some files around after the export process is complete.


POSSIBLE SOLUTION

Technical Support has prepared this article to assist in understanding where to move your media files, in an attempt to make this work. In order to address this issue, you will need to manually move those two other SWF files into the Web Export folder to accompany the 1.SWF file.


WHERE TO PUT THE ACCESSORY FILES

Depending on how your multi-file Flash media was created, the 2.SWF and 3.SWF file will need to go into one of two possible places:

THE MEDIA FOLDER

Example 1

If your file structure is as below:


PROJECT\

  MyTBFile.tbk

  MYMEDIA\

     1.swf

     2.swf                

     3.swf


Then, after file MyTBFile.tbk is exported to DHTML, you need to copy 2.SWF and 3.SWF your WebExport\MyTBFile\media\ folder.


Example 2

If your file structure is as below:


PROJECT\

  MyTBFile.tbk

  MYMEDIA\

     1.swf

     EXTRAFILES\

        2.swf

        3.swf


Then, after MyTBFile.tbk is exported to DHTML, you need to the entire folder EXTRAFILES into your WebExport\MyTBFile\media\ folder.


Verify that your Flash file now loads in DHTML properly. If not, undo the changes from above and try the solution below.

THE BROWSER SPECIFIC FOLDERS

Depending on which browsers you chose to export for, you may end up with various browser-specific-folders for your web exported project, such as ie6


For this second possible location to move files into, you'll need to move them into each of the browser-specific-folders.


Example 1

If your file structure is as below:


PROJECT\

  MyTBFile.tbk

  MYMEDIA\

     1.swf

     2.swf                

     3.swf


Then, after file MyTBFile.tbk is exported to DHTML, you need to copy 2.SWF and 3SWF into the browser-specific-folders found in your WebExport\MyTBFile\ folder.


Example 2

If your file structure is as below:


PROJECT\

  MyTBFile.tbk

  MYMEDIA\

     1.swf

     EXTRAFILES\

        2.swf

        3.swf


Then, after MyTBFile.tbk is exported to DHTML, you need to the entire folder EXTRAFILES into the browser-specific-folders found in your WebExport\MyTBFile\ folder.


NOTE FOR SCORM LMS USERS

If you are creating SCORM content, utilizing ToolBook's ability to create a SCORM Package file for you during the Web Export process, the package file (a ZIP file) created by ToolBook will not include your manually moved files. Also the IMSMANIFEST.XML file (a key SCORM XML file containing information about your lesson, including a complete listing of all files in your lesson) created by ToolBook will not include your additional files within the file list.


If you need to manually add your own files, as outlined in this article, ensure you add them to the ZIP file (the package file). Also be sure you modify the IMSMANIFEST.XML file within that ZIP file - to include a precise listing of all the additional files you added. Once done, you need to upload that revised ZIP file to the LMS.



KEYWORDS: 22363 P2859




Created with the Personal Edition of HelpNDoc: Full-featured Kindle eBooks generator