Page 1 of 1
Creating Flash Objects in PHP
Posted: Mon Jul 24, 2006 1:41 pm
by tecktalkcm0391
First I know this is semi off topic but I didn't know where to ask...
Ok I have a PHP code that generates numbers say it generates 125, 586, and 496. I want these numbers to be displayed inside of a Adobe (Macromedia) Flash 9 Document on my site. How could I "pass" the data to the flash so it would display it.
Thanks!

Posted: Mon Jul 24, 2006 1:48 pm
by neophyte
Look at a function in action script called sendAndRecieve(); It is used to get and recieve variables via post/get. If I remember right it'll even pick up on echo'd output.
Posted: Mon Jul 24, 2006 2:04 pm
by tecktalkcm0391
I couldn't find it in the help. so I don't know anybody else?
Posted: Mon Jul 24, 2006 2:10 pm
by aerodromoi
tecktalkcm0391 wrote:I couldn't find it in the help. so I don't know anybody else?
You might want to take a look at these two:
+
loadvars
+
loadvariables
Posted: Mon Jul 24, 2006 2:15 pm
by tecktalkcm0391
those could work... but I wanted to do it in a simpler way couldn't I just have something like:
Code: Select all
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="75" title="Flash">
<param name="movie" value="flash.swf" />
<param name="quality" value="high" />
This:
Code: Select all
<param name="variable1" value="125" />
<param name="variable2" value="586" />
<param name="variable3" value="496" />
Code: Select all
<embed src="flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="75"></embed>
</object>
And with the variable1, 2, 3, it would insert the value into a textbox on the flash?
Posted: Mon Jul 24, 2006 2:43 pm
by neophyte
Here's thread from sometime ago when I was trying to figure out sendAndRecieve(). I've even got a PHP script to send mail out on the thread.
http://www.actionscript.org/forums/show ... p3?t=83270
I've got no idea how to load param values.
Posted: Mon Jul 24, 2006 2:48 pm
by tecktalkcm0391
I am still so confused.
http://www.adobe.com/devnet/dreamweaver ... ttons.html <-- That kinda shows how to load text from params. But I can't figure out how. Anybody?

Posted: Mon Jul 24, 2006 3:01 pm
by kaYak
Flash has various XML functions that will grab formatted XML from a php script. Perhaps you should visit the tutorial at
http://www.adobe.com/support/flash/appl ... eshow_xml/ which tells how to create an image slideshow in XML to your application, and apply that to your application. I've tried something like this before and it isn't too difficult.
Posted: Mon Jul 24, 2006 3:18 pm
by tecktalkcm0391
Posted: Sun Jul 30, 2006 7:01 am
by mojeIme
Type "swf object" in google. It is the best way ,i have seen so far, to comunicate with flash. It uses js.