ADD close/exit button icon

  • Hello I have the normal videoplayer.xml file and I need :

    1)Add a close button in the corner of the pop up

    2)Add epigraph that explain the video.

    Can you help me?

    Thansk

  • 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

Participate now!

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