Hi, I try to hide a plugin when video is ready to play :
Code
<plugin name="chargement" devices="html5"
url="%SWFPATH%/skin/icons/loader.gif"
align="center"
zorder="1000"
visible="false"
/>
<action name="show_loading">
set(plugin[chargement].visible,true);
</action>
<action name="hide_loading">
set(plugin[chargement].visible,false);
</action>
<action name="video1">
addplugin(v1);
set(plugin[v1].url,%SWFPATH%/plugins/videoplayer.swf);
set(plugin[v1].alturl,%SWFPATH%/plugins/videoplayer.js);
set(plugin[v1].videourl,%SWFPATH%/videos/01_Lesplaces.mp4);
set(plugin[v1].posterurl,%SWFPATH%/skin/icons/videoposter.jpg);
set(plugin[v1].align,center);
set(plugin[v1].width, 480);
set(plugin[v1].height, 264);
set(plugin[v1].loop, false);
set(plugin[v1].onclick, show_loading();play());
set(plugin[v1].onvideoready, hide_loading());
set(plugin[v1].onvideocomplete, closevideo());
set(plugin[fermer_video_v1].enabled, true);
set(plugin[fermer_video_v1].visible, true);
</action>
Display More
the action show_loading works, but the action hide_loading is not called by onvideoready ?
WHY ???
THANX !!!