I am creating an eCard application. I created the front end, which passes the
info to a database, and sends out an email to notify the recipient. The Url
with the email has two variables attached to the url string. When the recipent
selects the link, they go to a page where there is another flash file that
needs to read the two variables, and then makes a call to the database (via
php) to retrieve the information and display it.
ex:
http://www.whatever.com?id=12356678&num=23455678789
I can't seem to get the movie clip application to read the two variables in
the url. I thought the main timeline of any embedded flash file can access
these variables. I have code on the main timeline to pass the info to the mc
app. What am I doing incorrectly here?
g
gs@liquidj - 31 May 2005 21:03 GMT
answering my own question:
And then the variables read
<?
$num = $_GET['num'];
$id = $_GET['id'];
$swf = "swf/ecard.swf?id=".$id."&num=".$num;
?>
object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
version=7,0,0,0" width="760" height="500" id="ecard" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="<? echo $swf?>" />
<param name="quality" value="high" />
<param name="bgcolor" value="#F4F2D7" />
<embed src="<? echo $swf?>" quality="high" bgcolor="#F4F2D7"
width="760" height="500" name="ecard" align="middle"
allowscriptaccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>
</object>