By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,077 Members | 2,160 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,077 IT Pros & Developers. It's quick & easy.

php and Flash?

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.