View Full Version : embed on object

06-30-2007, 07:21 PM
I've embedded a flash movie on the site in an object as follows :

echo ("<object width=\"250\" height=\"200\">
<param name=\"movie\" value=\"target.swf\">
<embed src=\"images/swf/target.swf\" width=\"250\" height=\"200\" loop=\"false\"></embed>

Now, once this flash file has played, I want the object to kind of disappear and not leave a "box" behind with the latest scene of the movie.

Is there an easy way of doing this?

06-30-2007, 07:49 PM
Not with PHP. You would need to put something in the flash file that calls a javascript function once its done playing to hide it by changing its style properties.