Embedded Flash

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

The below markup was provided by the web site where I host
simulation games. I cannot get it to validate. I've never
used embedded Flash before so I am out of my league. I've
researched the use of <object> and <embed> but nothing I
find sheds any light (that I can see) on how to correct the

I've studied the validation error comments. I understand
what the comments say, but do not know what to do,
specifically, to correct the strings in the URLs. I can see
that there is an issue of doctype, but in like fashion, do
not know what change I should make.

Any help is appreciated. Thank you.

Bill B

- - o - -

URL: http://brightside.basicbusinesssim.com/supplychainsim.html

Relevant markup:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns="http://www.w3.org/1999/xhtml ">
   <meta http-equiv="content-type" content="text/html;
charset=UTF-8" />
   <title>Bright Side Inc - Supply Chain Simulation</title>
   <meta name="generator" content="Amaya, see
http://www.w3.org/Amaya /" />
   <link rel="stylesheet" href="style.css" type="text/css" />
   <link rel="shortcut icon" href="images/favicon.ico"
type="image/x-icon" />


<div class="detailcoliframe">

<object width="800" height="600">
<param name="movie"
value="http://forio.com/simulate/resources/swf/sim-frame.swf?userPath=bbraun&simPath=supply-chain-learning-tool "></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
src="http://forio.com/simulate/resources/swf/sim-frame.swf?userPath=bbraun&simPath=supply-chain-learning-tool "
allowscriptaccess="always" allowfullscreen="true"
width="800" height="600"></embed>



Re: Embedded Flash

Quoted text here. Click to load it

Escape ampersands like so &amp; and since you are using XHTML (though I
don't know why), embed gets closed as <embed /> not <embed attributes>

Quoted text here. Click to load it

Adrienne Boswell at Home
Arbpen Web Site Design Services
Please respond to the group so others can share

Re: Embedded Flash

Adrienne Boswell kirjoitti:

Quoted text here. Click to load it

The OP was concerned about validation. AFAIK, embed is not part of
(X)HTML, so it does not matter, AFAICS, how one closes them.

OP: ISTM, that you have changed the original from XHTML to HTML. You
have to decide one way or the other, if you desire to correct validation

Best wishes,

Re: Embedded Flash

Osmo Saarikumpu wrote:
Quoted text here. Click to load it

Quite correct. I have been looking in a number of sources
trying to understand the best/proper alignment between using
DOCTYPE and markup. I got distracted with other work and it
has sat fallow for a while.

I apologize - bad manners to ask for help then change the
markup on the page in question.

Bill B

Re: Embedded Flash

On 05/03/2010 05:29 PM, Bill Braun wrote:
Quoted text here. Click to load it

<object type="mimetype" data="src">
    Fallback HTML

Where mimetype should be application/x-shockwave-flash and src
your flash file.

Re: Embedded Flash

Osmo Saarikumpu wrote:

Quoted text here. Click to load it

(Just stumbled over this old unread posting.)  It should be noted, though,
that the `X' in XHTML means "eXtensible" for a reason.  IOW, you *can* have
a Valid `embed' element in an XHTML document.

Since parameter entities (`% foo') may not be referred to (`%foo;') in an
internal subset (which suffices for attributes, see below), you would need
to use an XHTML module for a new element:

<!DOCTYPE html PUBLIC "-//PE//DTD XHTML 1.0 Transitional with Embed//EN"
  "http://site.example/dtd/xhtml1-transitional-with-embed.dtd ">

In that xhtml1-transitional-with-embed.dtd:

  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

<!-- Includes the XHTML 1.0 Transitional DTD -->

<!-- Allows the new `embed' element where `object' is allowed -->
<!ENTITY % special.extra
   "embed | object | applet | img | map | iframe">

<!-- Declares the `embed' element and its attributes -->
<!ELEMENT embed (#PCDATA | param | %block; | form | %inline; | %misc;)*>
<!ATTLIST embed
  src     %URI;          #REQUIRED
  type    %ContentType;  #IMPLIED
  width   %Length;       #IMPLIED
  height  %Length;       #IMPLIED>

Doing that is not of much use here, since, as has been noted, the `embed'
element is largely unnecessary nowadays.  Also note that HTML 5 (WD)
specifies an `embed' element with the attributes above; so for the time
being it would pass "HTML 5 (experimental)" W3C Validation with

  <!DOCTYPE html>

But extending XHTML can be useful in order to support proprietary
attributes, as I have found out recently:

<http://PointedEars.de/markup/xml/XHTML/body-onbeforeprint-with -

Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.

Re: Embedded Flash

On 04/27/2010 05:50 AM, Bill Braun wrote:
Quoted text here. Click to load it
  <http://www.alistapart.com/articles/flashsatay covers this pretty well.
  Basically you drop the <embed> part. It is redundant.

James Moe
jmm-list at sohnen-moe dot com

Site Timeline