473,414 Members | 1,636 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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
Jun 2 '08 #1
4 1336
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.
js*******@attglobal.net
==================

Jun 2 '08 #2
On May 7, 5:17*pm, Ronald Raygun <inva...@domain.comwrote:
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
Jun 2 '08 #3
On Wed, 07 May 2008 14:17:59 +0200, Ronald Raygun <in*****@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
Jun 2 '08 #4
To restore balance to the world Ronald Raygun wrote in
44******************************@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
Jun 2 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bill Chiu | last post by:
Dear gurus: I need to create a real-time line plot on an html page, without resorting to java, cgi, or anything server-side or offline. I think maybe this could be done with javascript, or...
2
by: Mark | last post by:
Hi all, This is what I'm trying to do. I'm trying to load a flash movie transparently over my existing html page (not covering the full screen, but 75% of it), so it is kind of similar to a...
6
by: Dominique | last post by:
Hi all, I'm using .NET v1.1 and the scenario I have is as follows... I have IE as an ActiveX control embedded in may C# App. I generate a HTML file dynamically and within the HTML file I embed a...
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
3
roula
by: roula | last post by:
Hi, I'm modifying a template (flash menu with html pages), when you click on the flash menu (about us for example) the corresponding html page is displayed, and the "about us" flash menu is...
3
daJunkCollector
by: daJunkCollector | last post by:
I have the html/javascript posted below, I imagine the fix to my problem is something simple that I am overlooking. My script is a little bit of html and javascript, and there is an embedded flash...
6
elamberdor
by: elamberdor | last post by:
Hi All! Trying to get a drop down hide/show div on a html page triggered by a button in flash. (Intro: Very very Little experience in dynamic flash) setup: html page, flash map on page, button...
2
by: spiralof5 | last post by:
Hi. I must first say I'm not an experienced scripter. Here's my problem and how far I am so far. I struggled for awhile to get the browser to fill most of it with my flash movie and keep it...
3
by: vinnie | last post by:
i'm learning asp.net 2.0 and when i want to import a flash movieclip, what i do is this: I) First: a) create the movieclip that i need with Flash; b) publish the Flash movieclip; II) Then...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.