Jump to content

passing a variable to a SWF file


jasonc

Recommended Posts

i have the following method i am using and needs to be used like this for the rest of the site to work.

 

for example...

 

showimage.php...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<? $owner = "Daniel"; ?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="670" height="670">
  <param name="movie" value="photoalbum_show_imagesV2a.swf">
  <param name=quality value=high>
  <embed src="photoalbum_show_imagesV2a.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="670" height="670"></embed> 
</object>
</body>
</html>

 

the SWF file uses the following code to get the images..

 

<?php echo('<?xml version="1.0" encoding="utf-8" standalone="yes"?>'); ?>
<?php
include("dbconfigfile.php");

// some how get the info of the variable $owner

$xmls = @mysql_query("SELECT * FROM `photo_album_xmls` WHERE `owner` = '" . $owner . "'") or die(mysql_error());
?>

<images>
<?php
while($rows=@mysql_fetch_array($xmls)){
?>
    <pic>
        <image>./../<?php echo($rows[url]);?></image>
        <caption><?php echo($rows[desc]);?></caption>
    </pic>
<?php
}
?>
</images>

 

and the variable $owner  will contain the album to show in that page.

the variable will be used by the SWF file but i need to some how get the SWF to know what is in this variable, how do i do this

 

would i use one of the parameters or something?  just a guess.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.