What HTML code do I need to make it function? Thanks.

Dani AI

Generated

This thread is from 2008, so first a reality check: Flash (SWF) is officially end-of-life and modern browsers no longer run the Flash plugin. That makes simply uploading a .swf and expecting visitors to see it unreliable. asked what HTML is needed; , and pointed to hosting and publishing — those steps still matter — but today the practical options are different.

If preserving the original Flash experience is required, the easiest client-side approach is an in-browser emulator like Ruffle (https://ruffle.rs/). It can run many SWFs without the Flash plugin. For long-term compatibility and accessibility, convert the animation/site to HTML5 (Adobe Animate can export to HTML5 Canvas) — this future-proofs content and fixes mobile/SEO issues. See Adobe’s Flash EOL note (https://www.adobe.com/products/flashplayer/end-of-life.html) and Animate HTML5 guidance () for options.

If you still want to host an SWF and an HTML wrapper, upload both files to your hosting account (FTP/SFTP or control panel). Confirm the server serves the correct MIME type for .swf (otherwise browsers can download rather than run it). Example server directive:

# Apache: ensure .swf served with correct MIME type
AddType application/x-shockwave-flash .swf

A minimal HTML wrapper using the object element:

<object type="application/x-shockwave-flash" data="site.swf" width="800" height="600">
  <param name="movie" value="site.swf" />
  <p>Flash content. If you see this, your browser does not support Flash. Convert to HTML5 or use an emulator.</p>
</object>

Troubleshooting tips: test in multiple current browsers, check the DevTools network tab for Content-Type, try Ruffle if the SWF fails, and prefer SFTP for uploads. Given security and compatibility problems, migrating to HTML5 is the recommended path. For embedding semantics see MDN’s object element docs (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object).

Recommended Answers

All 6 Replies

you have to buy the space in internet and then copy your website files into your space...for this you have to contact hosting company....

you have to buy the space in internet and then copy your website files into your space...for this you have to contact hosting company....

I already own a website. So no HTML is needed?

google filezilla client download

I already own a website. So no HTML is needed?

I have made a website <URL REMOVED> 1 month ago.

I went to hosting company <URL REMOVED> you also have another option of Godaddy.com but i preferred cyberhost because godaddy accepts only credit card as i don't have credit card so i decided to go for cyberhost.in,, and really it proves very good.

If you also wanna make a website then contact me at <EMAIL SNIPPED>
I will definitely help in making your website for free.
Thank You.

W3C is an excellent source for HTML info:

A Flash file, referenced by a link, will play in any Flash-enabled browser, so no code is needed for such a file.

hold on hold on buddy
just open ur flash file and hit ctrl+shift+f12 it will open a publish window in it check the html and publish it. it will generate two files one html and one swf. upload them and put them together in ur server . done!!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.