How to make swf file disappear when finish playing using PHP in Drupal?

I have a flash swf file playing in a Drupal page and I would like for it disappear from the page when it is finish playing using PHP.  Is that possible?
Who is Participating?
Hmm, PHP is a server-sided language so it's not possible to do that since this is client-sided.

To do that, you need to use javascript. Of course, if you are using PHP to write the javascript, then it's possible.

The recommended way to do this is to call ExternalInterface when the swf file have finished playing. Then the javascript function generated by the PHP page will simply hide the divider(which you should be using the put the swf in, especially if you are using swfobject). shows you to hide a divider.
There are also other ways of achieving this but unless you say what you mean by making the swf disappear from page using PHP, then I won't be able to tell you how.

For example, do you mean that the SWF should just turn white, or just become hidden as I told you above. Or if there are text below the divider, the divider should disappear and the text move up?

You need to specify clearly what you mean by disappear. Otherwise, just use the above method.
Just in case I wasn't clear on what I said, that page teaches you how to hide and remove a divider. It should be able to answer your question on what you want.
prophytAuthor Commented:
thanks.... I will try your suggestions in a little...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.