How can I neatly embed Flash in a page in a way that is cross-browser compatible?
- by Mark Hatton
When I receive Flash objects from my designer, it comes with an example HTML page which includes both <object> tags and <embed> tags as well as a whole heap of JavaScript. If I copy and paste this code in to my webpage, it works, but the code looks a mess (and there is so much of it!). If I remove the extra code and try either just <embed> or <object> on their own, it works in some browsers, but not others.
Is there a neat, minimal method that works in all the major browsers?