Hey there guys,
After some research into PHP and Actionscript, I think I have come close to doing what I want to do. Except now I'm stuck.
Here is what I have in my header.php file:
<?php
$c_page = $_SERVER['PHP_SELF'];
$c_page = basename($c_pag e, ".php");
?>
So I have the current file name of the php page stored in a variable called $c_page. Right?
I want to pass it on to a single Flash file, which looks like this:
<object align="middle">
<param name="quality" value="high" />
<param name="movie" value="swf/index.swf?<? echo "cPage=$c_page" ; ?>" />
<embed src="swf/index.swf?<? echo "cPage=$c_page" ; ?>" quality="high" width="780" height="440" align="middle"> </embed>
</object>
Now I want to dynamically load a different background image depending on which page the swf file is in.
But when I add this:
_root.bgHostAni m_MC.bgHost_MC. loadMovie('../images/'+cPage+'Bg.jpg ');
to the parent of the movieclip that I want to load the image into, it won't recognise cPage as a variable and comes back as undefined.
Can anyone help?
Cheers.
After some research into PHP and Actionscript, I think I have come close to doing what I want to do. Except now I'm stuck.
Here is what I have in my header.php file:
<?php
$c_page = $_SERVER['PHP_SELF'];
$c_page = basename($c_pag e, ".php");
?>
So I have the current file name of the php page stored in a variable called $c_page. Right?
I want to pass it on to a single Flash file, which looks like this:
<object align="middle">
<param name="quality" value="high" />
<param name="movie" value="swf/index.swf?<? echo "cPage=$c_page" ; ?>" />
<embed src="swf/index.swf?<? echo "cPage=$c_page" ; ?>" quality="high" width="780" height="440" align="middle"> </embed>
</object>
Now I want to dynamically load a different background image depending on which page the swf file is in.
But when I add this:
_root.bgHostAni m_MC.bgHost_MC. loadMovie('../images/'+cPage+'Bg.jpg ');
to the parent of the movieclip that I want to load the image into, it won't recognise cPage as a variable and comes back as undefined.
Can anyone help?
Cheers.
Comment