Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

embedding a flash movie into a XHTML document

Featured Replies

****Newbie Alert!****

Anybody know what the code is for embedding a flash file into an XHTML I tried it will the normal HTML but it doesn't work. plus I get loads of validation errors when I use the HTML coding.

 

oh wait sorted,

 

do I do the no repeat in the coding or in flash MX

Oliver - you've embedded flash into XHTML but your pages don't validate. I couldn't link to anything but the homepage either - guess you're still in the middle of building it...

 

I've always approached the flash / XHTML problem by using a container swf file that pulls my animation in - this is the code that I use:

 

<div id="flash">
<object type="application/x-shockwave-flash" data="headers/container.swf?path=headers/home.swf" width="698" height="160">
	<param name="movie" value="headers/container.swf?path=headers/home.swf" />
	<param name="quality" value="high" />
	<param name="menu" value="false" />
<param name="bgcolor" value="#deedf6" />
</object>
</div>

 

Basically this is called the flash satay methid as outlined in this article on the A List Apart site:

 

Flash Satay Method

 

You can also use:

 

<object type="application/x-shockwave-flash" data="images/banner.swf" width="288" height="128">
<param name="movie" value="images/banner.swf" />
<img src="banner.gif" width="288" height="128" alt="banner" />
</object>

 

Which I've found by doing a search on google - here's a link to the page that explains the code:

 

Valid Flash example

 

I've not tried this myself so can't vouch for it, but think I might give this a go next time I need to put flash into my XHTML files.

 

Hope that helps

 

E

  • Author

Ok thanks, Yeah, there a few things I need to sort out on the site.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.