Creating Flash Objects in PHP

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Creating Flash Objects in PHP

Post 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! :mrgreen:
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post 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.
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

I couldn't find it in the help. so I don't know anybody else?
User avatar
aerodromoi
Forum Contributor
Posts: 230
Joined: Sun May 07, 2006 5:21 am

Post 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
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post 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?
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post 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.
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post 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? :(
kaYak
Forum Commoner
Posts: 65
Joined: Mon Feb 02, 2004 2:43 pm
Location: USA

Post 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.
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

OK, well I kinda got a lead... can somebody help me with flashvars....I think that's what I am going to use

I still need help I cant figure out anything!!! :? :? :? :( :( :(
User avatar
mojeIme
Forum Newbie
Posts: 22
Joined: Sat Jul 29, 2006 8:58 am

Post by mojeIme »

Type "swf object" in google. It is the best way ,i have seen so far, to comunicate with flash. It uses js.
Post Reply