I'm loading this external swf file and only the graphics are loading no data or variables are being passed any idea on how i can make it to load everything?
Originally the file being loaded in to the dummy was my main movie, I decided to load it into a dummy (image_gif.swf) file for security purposes.
this is the php page that loads the dummy (image_gif.swf) ..... and the dummy (image_gif.swf) in turn loads my main swf file.
thank you
Code:
<?php
$skin = "";
$username = "";
$password = "";
if(!empty($_GET)) extract($_GET);
if(!empty($_POST)) extract($_POST);
@session_start();
if($username=="")
{
//try to detect session information from the site
$username=$_SESSION['username_sitetool'];
$password=$_SESSION['password_sitetool'];
//Check if this joomla user online or not
define('_VALID_MOS',1);
if($username!="")
{
require_once("../includes/database.php");
require_once("../configuration.php");
$database=new database($mosConfig_host,$mosConfig_user,$mosConfig_password,$mosConfig_db,$mosConfig_dbprefix);
//Get the list of logged in users
$sql = "SELECT DISTINCT a.username"
."\n FROM #__session AS a"
."\n WHERE a.guest = 0"
;
$database->setQuery($sql);
$rows=$database->loadObjectList();
$found=false;
for($i=0,$n=count($rows);$i<$n;$i++)
{
$row=$rows[$i];
if($row->username==$username)
{
$found=true;
break;
}
}
if(!$found)
{
$username="";
$password="";
session_unregister('username_sitetool');
session_unregister('password_sitetool');
}
}
//check that user online or not
}
include('config.php');
if ($adminlogin) {
include('html/header_site.html');
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width=750 height=450>
<param name=movie value="image_gif.swf">
<param name=quality value=high>
<param name=FlashVars value="<? echo "baseurl=$webroot&skin=$skin&userid=$username&password=$password&"; ?>">
<param name=bgcolor value=<? echo "$skinbgcolor"; ?>>
<param name=menu value=false>
<embed src="image_gif.swf" FlashVars="<? echo "baseurl=$webroot&skin=$skin&userid=$username&password=$password&"; ?>" menu=false quality=high bgcolor=<? echo "$skinbgcolor"; ?> width=750 height=450 type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
<?
include('html/footer_site.html');
} else {
include('install.php');
exit;
}
?>