|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
PHP to Flash
HI,
Is there a way to write a subfunction in a PHP page that when it's called it tells a Flash movie that is in the PHP page to do something, like run one of it's subfunctions? Thanks, Travis
__________________
Travis |
|
#2
|
|||
|
|||
|
You want to control an SWF in a php page?
|
|
#3
|
||||
|
||||
|
Yea, like have a function written in the swf that runs an update, and have a submit on the php page with select choices and when the select choice gets changed it runs a subfunction in the php or maybe directly to the swf that tells it to run the update subfunction coded in the swf.
|
|
#4
|
|||
|
|||
|
You should take a look at the loadVars class. Just press F1 in flash and search for it.
|
|
#5
|
||||
|
||||
|
Right, I know how to do that. I want the PHP page that the swf is in to tell the swf do stuff when certain things happen.
|
|
#6
|
|||
|
|||
|
For a php-script to be executed you have to reload the page right? Is that what you want to accomplish?
|
|
#7
|
||||
|
||||
|
Nope, when you have a java select form you can write into it "onChange" so when it changes it runs a subfunction in the PHP script. I want that subfunction to activate the swf.
|
|
#8
|
||||
|
||||
|
Quote:
I've seen some posts about passing variables to the swf using the attributes tag, and you could certianly do it that way. Perhaps you could have the javascript change the attributes of the swf object tag client side though. P.S. See this post: http://forums.devshed.com/t119579/s...882543af48.html Last edited by blatant : February 6th, 2004 at 05:05 PM. |
|
#9
|
||||
|
||||
|
That might work, I'll test it out.
Thanks |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > PHP to Flash |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|