close a video player when the video is complete.....

  • hi everobody... i'm novice in as3 and i need some advise...
    i try to close the video player when the video is complete...
    here is the cose i used.... what's the matter?
    thanks

    <html>
    <head>
    <title>Ma vidéo</title>
    </head>
    <body>
    <noembed>
    <object name="player"style="width:550px;height:326px">
    <param name="movie" value="flvplayer.swf?file=video1.flv" />
    <param name="quality" value="high" />
    complete=close("flvplayer.swf?file=video1.flv")
    </object>
    </noembed>
    <embed width="320" height="260" src="flvplayer.swf?file=mavideo.flv" quality="high" type="application/x-shockwave-flash" />
    </body>
    </html>;

  • Hi,

    you have just posted html code,
    there is nothing to close

    in krpano xml and with the krpano videoplayer plugin you could close the video with this code:

    Code
    <plugin name="video" url="videoplayer.swf" videourl="video.flv" loop="false"
           onvideocomplete="closevideo();" />


    or to remove the video completely:

    Code
    <plugin name="video" url="videoplayer.swf" videourl="video.flv" loop="false"
           onvideocomplete="removeplugin(get(name));" />


    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!