PHP, HTML and Flash

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, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-07-2008
Ronald Raygun
 
Posts: n/a
Default PHP, HTML and Flash

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
Reply With Quote
  #2 (permalink)  
Old 05-07-2008
Jerry Stuckle
 
Posts: n/a
Default Re: PHP, HTML and Flash

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
==================

Reply With Quote
  #3 (permalink)  
Old 05-07-2008
sivaji
 
Posts: n/a
Default Re: PHP, HTML and Flash

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


Reply With Quote
  #4 (permalink)  
Old 05-07-2008
Rik Wasmus
 
Posts: n/a
Default Re: PHP, HTML and Flash

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
Reply With Quote
  #5 (permalink)  
Old 05-07-2008
Joker7
 
Posts: n/a
Default Re: PHP, HTML and Flash

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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:38 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0