HTML with swf - Post ID 227035

User 467079 Photo


Registered User
2 posts

Does anyone now how to display a picture is swf format, or shockwave format. I can display it in png but not swf. I have a program that embeds hyperlinks in the png file and renames it to swf. Supposedly if you have shockwave installed it works. But I can get the page to show the picture so shockwave never starts up
User 187934 Photo


Senior Advisor
20,190 posts

Can I ask why a swf?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2088758 Photo


Senior Advisor
3,087 posts

Eric Rohloff wrote:
Can I ask why a swf?


I was thinking the same. Charles you will not be able to view these files on most mobile devices by default.
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 2147626 Photo


Ambassador
2,958 posts

Sure. Do it all the time. http://gunsmoke.me/test/animationtest/

Use this code for HTML5:
<embed src="http://yourdomain/yourfile.swf" width="550" height="400" />

Put that in an HTML box in VSD. Of course adjust height/width to fit your animation. Works like a champ. Or code it in if you're into that. :P
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2287960 Photo


Ambassador
580 posts

Full code would be like this:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0" id="preloader" width="840" height="660">
<param name="movie" value="preloader.swf">
<param name="bgcolor" value="#000000">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="preloader" width="840" height="660" src="preloader.swf" bgcolor="#000000" quality="high" swliveconnect="true" allowscriptaccess="samedomain">
<noembed>
</noembed>
</embed>
</object>


Keith
User 12358 Photo


Registered User
55 posts

Hi Charles,

Renaming a file extension won't work. The file extension tells the computer what type of file it is and how to deal with it accordingly (since every file cannot be handled the same).

In order to display a '.swf' you'll need to create a swf to contain your images with something like Firestarter:
http://www.coffeecup.com/firestarter/
(Fortunately it's Free for you)

Once you have a proper 'swf' file, then you can follow the directions the other members gave to display it as needed.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.