HTML Executable Wiki : JPEGinFlash

HomePage :: Site News :: HTML Executable Homepage :: Glossary :: RecentChanges :: Login/Register

JPEG images are not loaded in Flash movies - Troubleshooting



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.
environment options
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
environment options
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]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0433 seconds