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