JPEG images are not loaded in Flash movies - Troubleshooting
- The Flash video player JW FLV MEDIA PLAYER written in Flash and available at jeroenwijering.com does not display preview images.
- Embedded videos play just fine in the compiled exe. The trouble I am having is with the preview image. The following code works well in IE, both offline and online (showing the preview image), but when compiled, the preview image is not displayed. Everything else works:
- <html>
- <embed src="player.swf" width="318" height="260" allowscriptaccess="always" allowfullscreen="true" flashvars="file=videox.flv&autostart=false&image=preview.jpg" />
- <html>
- Problem: when compiled, everything, but the preview image, works great (the video plays, the autostart command functions as written, the menu bar is displayed, even the full screen works), except, that preview.jpg does not show
The Flash Player requires JPEG files to be extracted to the hard disk in order to display them in Flash movies (although they should not).
You have two solutions to fix this problem:
Global Solution: affects all projects
In HTML Executable, select "Tools / Environment Options" and go to "Extension manager"; in the "Special File Extension" list, add ".JPG" or ".JPEG" (the extension of your image files). Select OK and close the dialog box. That's all.
Thus Flash movies in any IE publication will always display JPEG files correctly. If you still get problems, then it may be due to a wrong path to your JPEG file.

Important: this solution is a global one so it will affect all of your publication projects. If you want to avoid this, try the second solution below.
Second Solution: affects only the current project
You have to use the Dependencies feature.
In HTML Executable, select File Manager. Choose the HTML page that contains your Flash movie and click Properties => Dependencies

Click Add File and select the preview.jpg file.
Close the dialog box and build your publication again.
Now when your publication displays the HTML page, the preview.jpg file is automatically extracted too (because it is a dependency of the HTML page) and the Flash movie can load it correctly.
This solution works for any file that should be dynamically loaded in a Flash movie.
See another demonstration about how PNG files are dynamically loaded in Flash
There are no comments on this page. [Add comment]