all groups > flash data integration > february 2005 >
You're in the

flash data integration

group:

passing variable from php url into flash


passing variable from php url into flash lou suSi
2/2/2005 5:32:29 AM
flash data integration:
ok - this is probably a real simple one - but - i have a movie that used to
load a variable into flash from asp - i switched hosting to a php environment
and would like to fix the movie so that the variable will load into the flash
piece once again here's the link to the movie
http://www.bijaxous.com/valentine previously - whatever you put in as a url
variable fed into the flash piece - so that default.asp?friend=Jessica would
thereby allow the final message to read 'Happy Valentine's Day Jessica' - you
know? any ideas? i'm not too sharp w/ dynamic language variable back-end
fantastic web magical stuff ... any help is appreciated ...
Re: passing variable from php url into flash lou suSi
2/2/2005 6:48:25 AM
so now i have it almost working if you go to
http://www.bijaxous.com/valentine/default.php?friend=Sally%20Jones you'll see
that at the end of the movie it will say 'Happy Valentine's Day friend=Sally
Jones' - not exactly what I want - I would prefer that the variable friend
simply pass the info along into flash - like described below - but - just not
sure what I'm doing wrong ... i've added the php code i have thusfar just in
case someone can figure out what i'm doing wrong ... thanks again

<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<TITLE>...::: BXOS !nteractive! wishes you a happy valentine's day
:::...</TITLE>
</HEAD>
<BODY bgcolor="#333333" leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0" scroll="no">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle">
<div align="center">
<table width="400" border="1" cellpadding="0" cellspacing="0"
bordercolor="#000000">
<tr>
<td><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=6,0,0,0"
WIDTH="400" HEIGHT="400">
<PARAM NAME=movie VALUE="valentine4.swf?friend=<? echo
$QUERY_STRING; ?>">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<PARAM NAME=menu VALUE=false>
<EMBED src="valentine4.swf?friend=<? echo $QUERY_STRING; ?>"
quality=high bgcolor=#FFFFFF WIDTH="400" HEIGHT="400"
TYPE="application/x-shockwave-flash" MENU="false"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT></td>
</tr>
</table>

</div></td>
</tr>
</table>
</BODY>
</HTML>
Re: passing variable from php url into flash lou suSi
2/2/2005 7:09:58 AM
i think i figured it out now - unless you have a better suggestion or way - i'm
just using the following url &amp; it seems to work fine now
http://www.bijaxous.com/valentine/default.php?Sally%20Jones
Re: passing variable from php url into flash adam1026
2/3/2005 11:38:14 PM
The problem was that the variabel passed through the url was "freind=sally" and
the variable you put in the object tag would read "friend=friend=sally"

The proper way to do it would be to pass:
default?friend=sally

And in the object tag, take out "friend=" and just leave the php snippet.
AddThis Social Bookmark Button