Hi!
I am publishing a video on a virtual tour through a hotspot.
Right now, the video pop up onclick and play as a loop, to close it I have to click on the video. I would like to
know the code for the video to stop and close by itself when complete.
So
far here is the code:
<hotspot name="spot0" width="4%"
height="prop"
onclick="action(closeallobjects);set(plugin[spot0object].visible,true);tween(plugin[spot0object].alpha,
1);playbackgroundsound(none);plugin[spot0object].play()"
url="videodata/graphics/spots/spot2.swf" onhover="showtext(video);"
ath="299.324" atv="-3.29577"/>
<plugin name="spot0object"
visible="false" url="videodata/graphics/videoplayer.swf"
videourl="videodata/graphics/spots/object3.flv" pausedonstart="true"
align="lefttop" x="10" y="10" alpha="0" onclick="tween(alpha,
0);delayedcall(0.5,set(visible,false));
playbackgroundsound(videodata/sounds/sound4.mp3,0);stop();" width="40%"
height="prop" onhover="showtext(click to close);"/>
I've tried
to add loop="false" but the video doesn't close and stay on pause. As
well to add an event: <events onvideocomplete="
closevideo(spot0object);"/>
...doesn't work!
Any tips?
Thanks
a lot for your help!
tom