Remove Video from HTML5 Ad
I am a designer, NOT a coder, but I make html5 banners all the time. This project needs to lead off with video in the ad, and then play the rest of the animation.
I dug around and found a bit of code to load the video:
video = document.createElement('video');
video.src = 'GameMockUp_Clip.mp4'; video.autoplay =true; video.controls=false;
video.volume = 0; var Video = new createjs.Bitmap(video); stage.addChild(Video);
and it works! Now I need to remove the video, but I can't get it to go away. It plays on top of the rest of the animation.
I tried the logical solution:
stage.removeChild(Video);
but this does not work. Help! Time is an issue as of course the client needs this "yesterday". -_-
