Copy link to clipboard
Copied
http://stackoverflow.com/questions/23429045/actionscript-video-resizing | In Flash pro. I have a video object on stage. I would like the user be able to adjust the size of the video object at their choice. For example, when the mouse cursor hovers over the edge of the video object you can drag the video object out to either increase, or decrease the width and height of the video object. Unfortunately, I have knowledge on how to do this. All I know is how to position the video object and how to set the width and height. I don't know if its help but this is my code so far. If you can give me any advice that be great! 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); |
Copy link to clipboard
Copied
Why is there a link to another posting with the same issue, and an answer, included as part of your posting?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now