473,407 Members | 2,306 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,407 software developers and data experts.

php and Flash?

Hi

I have a page written with php and a MySQL Database. Now, I want to redesign
the whole, but still with the Database and php. is it possible to design the
page with Flash and then to put all the php commands into the source code?
specially, I still need the extension *.php?

Greets and thanks in advance
mirco
Jul 16 '05 #1
5 3358
RG

"Mirco" <mi****@gmx.net> wrote in message
news:3f********@news.swissonline.ch...
Hi

I have a page written with php and a MySQL Database. Now, I want to redesign the whole, but still with the Database and php. is it possible to design the page with Flash and then to put all the php commands into the source code?
specially, I still need the extension *.php?

Greets and thanks in advance
mirco

Think about it.
Flash is loaded onto the client. How can a php script execute on the client?
Think of Flash as being a HTML page that is loaded into a users browser, you
can use it to make requests to php scripts, just like you can click a link
or submit a form in an HTML page.
Once a request is processed, the generated information is sent back to the
users browser.

Hope this helps
RG

Jul 16 '05 #2
Hi.

Although, you can use small Flash objects in your page and give them
arguments comming from PHP.

I use this to display text in a non-standard font:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=6,0,0,0" width="550" height="44">
<param name="movie" value="myflash.swf<? echo "?title=$title" ?>">
<param name="quality" value="high">
<embed src="myflash.swf<? echo "?title=$title" ?>" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="550" height="44"></embed>
</object>

Note that the code comes from the published HTML file, I only added '<? echo
"?title=$title" ?>' two times. In Flash you can use the argument. Just make
a text object, make it 'Dynamic Text' and set Var: to e.g. "my_var". Then in
the first frame add the actions varText = t; and you're done. A
Stage.showMenu=false; can be nice, to hide the big flash-right-mouse-menu.

In this fashion you could also give all content attributes to Flash. You'd
first do all your PHP things, then echo the <object><embed> tags and add
every variable as ?name=$name&text=$text&date=$date etc. This will be sent
to the client. The client will request the Flash file and it will be sent.
Then, client-side, Flash would have to deal with all the attributes. It's
not a pretty solution, but it is one.

Greetings and good luck,

- John

"RG" <Me@NotTellingYa.com> wrote in message
news:3f***********************@mercury.nildram.net ...

"Mirco" <mi****@gmx.net> wrote in message
news:3f********@news.swissonline.ch...
Hi

I have a page written with php and a MySQL Database. Now, I want to redesign
the whole, but still with the Database and php. is it possible to design

the
page with Flash and then to put all the php commands into the source code? specially, I still need the extension *.php?

Greets and thanks in advance
mirco

Think about it.
Flash is loaded onto the client. How can a php script execute on the

client? Think of Flash as being a HTML page that is loaded into a users browser, you can use it to make requests to php scripts, just like you can click a link
or submit a form in an HTML page.
Once a request is processed, the generated information is sent back to the
users browser.

Hope this helps
RG

Jul 16 '05 #3
Have you looked at PHP Ming library - you could generate a Flash movie
dynamically from the database.

Your HTML page contains a Flash movie whose src is the php script
generating the Flash.

http://uk2.php.net/manual/en/ref.ming.php

John Beardsworth
www.beardsworth.co.uk


"RG" <Me@NotTellingYa.com> wrote in message news:<3f***********************@mercury.nildram.ne t>...
"Mirco" <mi****@gmx.net> wrote in message
news:3f********@news.swissonline.ch...
Hi

I have a page written with php and a MySQL Database. Now, I want to

redesign
the whole, but still with the Database and php. is it possible to design

the
page with Flash and then to put all the php commands into the source code?
specially, I still need the extension *.php?

Greets and thanks in advance
mirco

Think about it.
Flash is loaded onto the client. How can a php script execute on the client?
Think of Flash as being a HTML page that is loaded into a users browser, you
can use it to make requests to php scripts, just like you can click a link
or submit a form in an HTML page.
Once a request is processed, the generated information is sent back to the
users browser.

Hope this helps
RG

Jul 16 '05 #4
in article 3f********@news.swissonline.ch, Mirco at mi****@gmx.net wrote on
24/7/03 8:41 am:
Hi

I have a page written with php and a MySQL Database. Now, I want to redesign
the whole, but still with the Database and php. is it possible to design the
page with Flash and then to put all the php commands into the source code?
specially, I still need the extension *.php?

Greets and thanks in advance
mirco

The best way IMHO to use flash and PHP is to create XML and read that into
flash using the XML object also you might like to look at www.ghostwire.com
which does an open source version of the flash remoting server. Not used it
but it looks cool.
Richard

Jul 16 '05 #5
Oops, varText=t should be my_var=t.

"JohnVT" <jo********@foobar.nl> wrote in message
news:3f*********************@news.versatel.net...
Hi.

Although, you can use small Flash objects in your page and give them
arguments comming from PHP.

I use this to display text in a non-standard font:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca b#version=6,0,0,0" width="550" height="44">
<param name="movie" value="myflash.swf<? echo "?title=$title" ?>">
<param name="quality" value="high">
<embed src="myflash.swf<? echo "?title=$title" ?>" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="550" height="44"></embed>
</object>

Note that the code comes from the published HTML file, I only added '<? echo "?title=$title" ?>' two times. In Flash you can use the argument. Just make a text object, make it 'Dynamic Text' and set Var: to e.g. "my_var". Then in the first frame add the actions varText = t; and you're done. A
Stage.showMenu=false; can be nice, to hide the big flash-right-mouse-menu.

In this fashion you could also give all content attributes to Flash. You'd
first do all your PHP things, then echo the <object><embed> tags and add
every variable as ?name=$name&text=$text&date=$date etc. This will be sent
to the client. The client will request the Flash file and it will be sent.
Then, client-side, Flash would have to deal with all the attributes. It's
not a pretty solution, but it is one.

Greetings and good luck,

- John

"RG" <Me@NotTellingYa.com> wrote in message
news:3f***********************@mercury.nildram.net ...

"Mirco" <mi****@gmx.net> wrote in message
news:3f********@news.swissonline.ch...
Hi

I have a page written with php and a MySQL Database. Now, I want to

redesign
the whole, but still with the Database and php. is it possible to
design
the
page with Flash and then to put all the php commands into the source code? specially, I still need the extension *.php?

Greets and thanks in advance
mirco

Think about it.
Flash is loaded onto the client. How can a php script execute on the

client?
Think of Flash as being a HTML page that is loaded into a users browser,

you
can use it to make requests to php scripts, just like you can click a

link or submit a form in an HTML page.
Once a request is processed, the generated information is sent back to the users browser.

Hope this helps
RG


Jul 16 '05 #6

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

Similar topics

9
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
8
by: Ben Bartsch | last post by:
Looking for opinions on the use of Flash with ASP.NET. Has anyone here seen or conducted any implementations of Flash that are actually useful or otherwise complement ASP.NET?
4
by: vivek | last post by:
I am new to flash and want someone to guide me, Is it possible to create a UI entirely in Flash and that will inetract with C# components (backend) and these components will in return interact...
1
by: dscriv | last post by:
Hello, I have Netscape 8.0.4 (in Firefox mode) and Flash 8.0.24.0. I also have IE and Firefox installed. If I go to this page, which contains a Flash detection movie:...
115
by: post2google | last post by:
I was thinking about where to go for lunch the other day, so I went to hardees.com to see what the menu looked like these days. What comes up is a big note that my flash version is not new enough...
10
by: Steve Cook | last post by:
Hi, I have an upload application written in PHP and Flash. The PHP page gets the file information via $_POST. Moreover, the user never actually visits the PHP page, rather Flash sends the...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
1
by: critchey1 | last post by:
Hey everyone, i've been playing around with trying to get some scripts to work with detecting whether flash player is installed on your computer or not. I found a flash detection kit on the adobe...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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.