What do you suggest we can do?, I am new to animate, but i believe that this is something common, and many will need something like that, if they work with Animate and web applications.
Hmmm, what if you create the "demo" 'div' within animate ?
Depending on content you might need to move the "div"s around to avoid overlapping ( Layer order, positions, etc etc. )
var blue= "blue"; // Create new div var demoLayer = document.createElement('div'); // Set its ID demoLayer.id = "demo"; // Set height and width demoLayer.style.width = '550px'; demoLayer.style.height = '400px'; // Attach the new div into default animate div document.getElementById("animation_container").appendChild(demoLayer); element1 = document.getElementById("demo"); // Lets move the div elements around, for the sake of this we will just place the new div above the default canvas div element2 = document.getElementById("animation_container"); element2.parentNode.insertBefore(element1, element2); element1.innerHTML = blue; |