jasonc Posted November 26, 2008 Share Posted November 26, 2008 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 https://forums.phpfreaks.com/topic/134370-passing-a-variable-to-a-swf-file/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.