Skip to main content
Participating Frequently
April 25, 2024
Question

Video Component behind objects, another video over objects

  • April 25, 2024
  • 1 reply
  • 431 views

Hello,

 

I am still learning Adobe Animate... I was able to find this code to put a video component behind objects on the scene:

 

var dom_container = document.getElementById("dom_overlay_container");
dom_container.style.zIndex=-1;
 
I have two additional videos that will be displayed in a pop-up that I need over the objects. Is this possible to do? 
 
See screenshots for image reference.
    This topic has been closed for replies.

    1 reply

    Participating Frequently
    April 25, 2024

    Clarification: When I add the code, all videos are in the back. When I remove that code, all videos are in front.

    kglad
    Community Expert
    Community Expert
    April 25, 2024

    what is it you want?

    Participating Frequently
    April 25, 2024

    I need one video in the background. And two in front on clickable pop-ups.


    Is there a way to make the code only affect one of the video component rather than all:

    var dom_container = document.getElementById("dom_overlay_container");
    dom_container.style.zIndex=-1;