ADD close/exit button icon

  • If you take a look at the video-player.xml code you can see that it's build up from layers. The background layer which also has the close function is the parent of the video player. You could ad these features you want to the videoplayer_bg layer in a similar fashion. A layer for the button and one for the text.

    The Q&D method is to implement it in the video-player.xml itself. I think the nice way to do it, is to make your own video actions that append and extend the videoplayer which will involve a bit more code, but will make upgrading a bit easier perhaps.

  • Thanks!, I added :


    set(layer[videoplayer_icon].parent, layer[videoplayer_plugin]);
    set(layer[videoplayer_icon].url,%SWFPATH%/skin/paso0.png);
    set(layer[videoplayer_icon].align,righttop);
    set(layer[videoplayer_icon].x,-35);
    set(layer[videoplayer_icon].y,-30);
    set(layer[videoplayer_icon].onclick, videoplayer_close() );

    And it's fine. Now I need a "lightbox" style, I need to learn to do it.

    Thanks again

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!