Javascript to autoplay

T

Tmuldoon

Hello,

I have an .swf file on a shared directory of a local computer.

Would someone be able to show me a javascript that would automatically
open and start it playing automatically with other items on a web
page?

So I would have some text or text fields open and on the right side -
the .swf file would start automatically playing?

Thanks,

Tmuld.
 
R

Richard Cornford

David Mark wrote:>
Here is a sample. It plays automatically, streaming works
and it validates.

<object id="myflashmovie2"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200"
height="80" codebase="http://fpdownload.macromedia. ... " title="Test
movie">
<param name="movie" value="flash/testflash_streaming.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash"
data="flash/testflash_streaming.swf" width="200" height="80"
title="Test movie">
<!--<![endif]-->
<p>[Put alternate content here]</p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img
src="http://www.adobe. ... " alt="Get Adobe Flash player" height="31"
width="88" /></a></p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
<snip>

Validates as what exactly? The mark-up has the smell of XHTML about it,
but it is not even a well-formed XML fragment let alone valid XHTML
mark-up (two opening object tags and only one closing object tag). And
even in HTML to closing OBJECT tag is not optional.

Richard.
 
R

Richard Cornford

You have edited what I wrote without marking to indicate that you have
done so, or where.
Validates as XHTML strict with one more </object> at the end.
I copied one line too few.

So not actually valid in any sense then?

Richard.
 
D

David Mark

On Jul 21, 11:34 pm, "Richard Cornford" <[email protected]>
wrote:
[snip]
So not actually valid in any sense then?

Is that a question? Obviously it needed the second closing object tag
to validate. Like I said, it was a copy-and-paste error and not
really worth any further discussion.
 
R

Richard Cornford

David said:
On Jul 21, 11:34 pm, Richard Cornford wrote:
[snip]
So not actually valid in any sense then?

Is that a question?
<snip>

Yes. A rhetorical question but still grammatically a question. Was that
an answer?

Richard.
 
D

David Mark

David said:
On Jul 21, 11:34 pm, Richard Cornford wrote:
[snip]
So not actually valid in any sense then?
Is that a question?

<snip>

Yes. A rhetorical question but still grammatically a question.

In other words, it was posted to poke fun at the botched paste.
You'll start pointing out typographical errors next. I wouldn't
though as your posts are literally crawling with them.

Was that
an answer?

Yes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top