# Video and its components

**URL:** <https://forum.kirupa.com/t/video-and-its-components/332316>\
**Category:** flash\
**Created:** [April 15, 2014, 6:48pm UTC](https://forum.kirupa.com/t/video-and-its-components/332316 "2014-04-15T18:48:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![as123rookies](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@as123rookies](https://forum.kirupa.com/u/as123rookies)\
**Post date:** [April 15, 2014, 6:48pm UTC](https://forum.kirupa.com/t/video-and-its-components/332316/1 "2014-04-15T18:48:50Z")

</div>

Hello, This is my first thread on this forum. Well, I have a video object on stage. I want to embed a  
volume slider component or, a mute button onto the video object to give the user greater control of the volume.  
How do I do this? I am clueless  
Any help will be appreciated!

var cam:Camera = Camera.getCamera();  
cam.setMode(350, 150, 15);  
cam.setQuality(0, 85);

cam.addEventListener(StatusEvent.STATUS, statusHandler);

var vid:Video = new Video();  
vid.width = cam.width;  
vid.height = cam.height;  
vid.x = 52;  
vid.y = 33;

vid.attachCamera(cam);  
addChild(vid);

var mic:Microphone = Microphone.getEnhancedMicrophone();  
mic.framesPerPacket = 1;  
mic.setSilenceLevel(0, 2000);  
mic.gain = 50;  
mic.codec = SoundCodec.SPEEX;

mic.addEventListener(StatusEvent.STATUS, micStatus);
