This is a discussion on PHP, HTML and Flash within the PHP Language forums, part of the PHP Programming Forums category; I am building a website and I am displaying an animated image. The image was originally an animated gif. However, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
Ronald Raygun wrote:
> 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 > 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. jstucklex@attglobal.net ================== |
|
|||
|
On May 7, 5:17*pm, Ronald Raygun <inva...@domain.com> wrote:
> 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? http://www.w3schools.com/flash/flash_inhtml.asp |
|
|||
|
On Wed, 07 May 2008 14:17:59 +0200, Ronald Raygun <invalid@domain.com>
wrote: > 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. 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. > 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 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 |
|
|||
|
To restore balance to the world Ronald Raygun wrote in
44GdnTUqTdNWALzVnZ2dnUVZ8v6dnZ2d@bt.com >> 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 Will give you a start Chris <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,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="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" > </embed> </object> -- Superb hosting & domain name deals http://dn-22.co.uk The Handyman http://www.looker.me.uk |