External SWF Viewer

From FDT Documentation

Jump to: navigation, search

One of the options to launch your application is the External SWF viewer.

This is an alternative and simple html page view with your embedded swf without launching the full browser. The html page is generated in your output directory when you compile and deleted when completed.

Take into account, if you are doing any network calls or loading of remote assets, as the swf is running in a local machine, you are going to run into security errors.

You might encounter this error when testing your project in FDT’s external player:

Exception fault: SecurityError: Error #2148: SWF file file:////some/path/to/a/file.swf cannot access local resource data/assetlist.xml. Only local-with-filesystem and trusted local SWF files may access local resources.


To fix this you can add “-use-network=false” to your compiler arguments or add the SWF file to your list of local trusted SWF files. This last option will give you more flexibility when debugging your application with some other tools like Trazzle for example.

To get this working you would need to add your workspace directory to the Flash’s Global Security Settings Panel

E.g. Note: "/path/to/a/folder/or/file/" is not enough! The correct format should be "file:////path/to/a/folder/or/file/"

This will make that directory, and all it’s sub directories, locally trusted locations and will not throw security errors.

Be sure to check out the Run/Debug preferences in Eclipse as well for some useful settings that you may want to adjust.

Get FDT5