PHP, HTML and Flash

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

Threaded View
I am building a website and I am displaying an animated image. The image
was originally an animated gif. However, the graphic designer has told
me that the best way forward (better animation + smaller file size),
would be to use a small .swf file.

Currently, I am using the <img/> tag in my HTML file, to have the image
loaded and displayed in the page. I will need to change this line so
that instead of the animated gif file, teh browser loads and displays
the swf file - only problem is that I have no idea how to do this. Does
anyone know how to do this?

PS: I have searched Google (PHP + embedded Flash) etc, not turning up
what I want

Re: PHP, HTML and Flash

Ronald Raygun wrote:
Quoted text here. Click to load it

Probably because you're looking for the wrong information.  PHP doesn't
display embedded flash.  HTML does.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: PHP, HTML and Flash

Quoted text here. Click to load it

Re: PHP, HTML and Flash

Quoted text here. Click to load it

A better way would be a small, animated GIF file. If it's just an animated  
image, not text that has to be selectable and no interaction, that really  
is the way to go if you need a snall animation. At the very least provide  
it as an alternative for those who don't have Flash, or have it disabled.

Quoted text here. Click to load it

Having a Flash object on your page is just pure HTML, so ask in a Flash or  
HTML group, or read one of the hundreds of tutorials on the net. This has  
little to do with PHP.

If your Flash object is interactive (i.e. it requires info based on user  
actions) it can load XML from the server, so just build some XML with one  
of the several plugins available to you in PHP.
Rik Wasmus

Re: PHP, HTML and Flash

To restore balance to the world Ronald Raygun  wrote in
Quoted text here. Click to load it

Will give you a start

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase=",0,0,0 "
  <param name=movie value="yourfile.swf">
  <param name=quality value=high><param name="BGCOLOR" value="#CCFF00">
  <embed src="files/sound.swf" quality=high
pluginspage=" "
type="application/x-shockwave-flash" >

Superb hosting & domain name deals
The Handyman

Site Timeline