PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 25th, 2000, 11:40 AM
Ramon Ramon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: Helden,Limburg,The Netherlands
Posts: 33 Ramon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
How can I send variables from PHP to flash? Sending variables from flash to PHP is not such a problem but the other way around is not working yet!!!

------------------
Ramon Litjens
Boradoli Web Sesign

Reply With Quote
  #2  
Old February 25th, 2000, 03:46 PM
TroutMask TroutMask is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Englewood, CO
Posts: 30 TroutMask User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
I never use Flash, but I assume that it is embedded in your HTML like any other applet/activex-type object? That is, you put it in your HTML with parameter values?

If this is the case, you could use PHP to create the HTML of the page, inserting specific parameter values wherever needed. For instance, if your object takes a parameter speed that you want set to 5 for one case or 10 for another, try this:

<OBJECT TYPE="Flash">
<PARAM speed=
<?
if (some_condition) {
print "5";
} else {
print "10";
}
?>
>
</OBJECT>

This would work for an applet or activex object for sure, but not sure about Flash.

As far as having PHP act as some kind of server to specifically call your Flash object and send it data, that's beyond me...perhaps beyond Flash or PHP.

-TM


Reply With Quote
  #3  
Old February 26th, 2000, 06:35 AM
Ramon Ramon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: Helden,Limburg,The Netherlands
Posts: 33 Ramon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Thank you,

The way to do it is to just have PHP sent a file back that is more like a txt-file than a HTML-file. It just contains name-value pairs.

If somebody had the same problem and needs some more details you can contact me at my e-mail adres.

Greetz,
Ramon.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP- variables --> flash???

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap