Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: embed on object

  1. #1
    New Coder
    Join Date
    Sep 2006
    Posts
    92
    Thanks
    4
    Thanked 1 Time in 1 Post

    embed on object

    I've embedded a flash movie on the site in an object as follows :

    PHP Code:
    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>
    </object>"
    ); 
    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?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •