Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Video Resizing Adjustments

Guest
May 13, 2014 May 13, 2014

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); 

TOPICS
ActionScript
128
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 13, 2014 May 13, 2014
LATEST

Why is there a link to another posting with the same issue, and an answer, included as part of your posting?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines