Re: [flexcoders] VideoDisplay Object
Hi percy, I used its width and height property and everything resize fine... --- On Fri, 9/5/08, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: From: [p e r c e p t i c o n] [EMAIL PROTECTED] Subject: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy
Re: [flexcoders] VideoDisplay Object
So am i. I made it smaller and the video itself stays the same size but the component shrinks and displays scrollbars Percy Sent via BlackBerry by ATT -Original Message- From: Mario Falomir [EMAIL PROTECTED] Date: Fri, 5 Sep 2008 12:12:40 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] VideoDisplay Object Hi percy, I used its width and height property and everything resize fine... --- On Fri, 9/5/08, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: From: [p e r c e p t i c o n] [EMAIL PROTECTED] Subject: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy
Re: [flexcoders] VideoDisplay Object
You are using the Flex 3 VideoDisplay component ? Weirdit works fine with me.. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=init(event) mx:VideoDisplay x=146.5 y=157 width=395 height=258 id=videoObj/ mx:Script ![CDATA[ import mx.events.SliderEvent; private var iniW:Number; private var iniH:Number; private function init(e:Event):void { iniW = videoObj.width; iniH = videoObj.height; try { videoObj.source = http://localhost/surf.flv;; } catch (e:Error) { output_txt.text = e.message; } sizeSlider.addEventListener(SliderEvent.CHANGE, resizeVideo); } private function resizeVideo(e:SliderEvent):void { var nw:Number = iniW + (sizeSlider.value * 25); var nh:Number = iniH + (sizeSlider.value * 25); videoObj.setActualSize( nw, nh ); } ]] /mx:Script mx:HSlider x=264 y=131 id=sizeSlider liveDragging=true minimum=0 maximum=20 snapInterval=1/ /mx:Application --- On Fri, 9/5/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Re: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 4:04 PM So am i. I made it smaller and the video itself stays the same size but the component shrinks and displays scrollbars PercySent via BlackBerry by ATTFrom: Mario Falomir mario_falomir@ yahoo.com Date: Fri, 5 Sep 2008 12:12:40 -0700 (PDT) To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] VideoDisplay Object Hi percy, I used its width and height property and everything resize fine... --- On Fri, 9/5/08, [p e r c e p t i c o n] percepticon@ gmail.com wrote: From: [p e r c e p t i c o n] percepticon@ gmail.com Subject: [flexcoders] VideoDisplay Object To: [EMAIL PROTECTED] ups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy
Re: [flexcoders] VideoDisplay Object
Is more easy for anyone to help you if you post part of your attempt and we see how we could help. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 7:42 PM, Mario Falomir [EMAIL PROTECTED]wrote: You are using the Flex 3 VideoDisplay component ? Weirdit works fine with me.. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=init(event) mx:VideoDisplay x=146.5 y=157 width=395 height=258 id=videoObj/ mx:Script ![CDATA[ import mx.events.SliderEvent; private var iniW:Number; private var iniH:Number; private function init(e:Event):void { iniW = videoObj.width; iniH = videoObj.height; try { videoObj.source = http://localhost/surf.flv;; } catch (e:Error) { output_txt.text = e.message; } sizeSlider.addEventListener(SliderEvent.CHANGE, resizeVideo); } private function resizeVideo(e:SliderEvent):void { var nw:Number = iniW + (sizeSlider.value * 25); var nh:Number = iniH + (sizeSlider.value * 25); videoObj.setActualSize( nw, nh ); } ]] /mx:Script mx:HSlider x=264 y=131 id=sizeSlider liveDragging=true minimum=0 maximum=20 snapInterval=1/ /mx:Application --- On *Fri, 9/5/08, [EMAIL PROTECTED] [EMAIL PROTECTED]* wrote: From: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Re: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 4:04 PM So am i. I made it smaller and the video itself stays the same size but the component shrinks and displays scrollbars Percy Sent via BlackBerry by ATT -- *From*: Mario Falomir mario_falomir@ yahoo.com *Date*: Fri, 5 Sep 2008 12:12:40 -0700 (PDT) *To*: [EMAIL PROTECTED] ups.com *Subject*: Re: [flexcoders] VideoDisplay Object Hi percy, I used its width and height property and everything resize fine... --- On *Fri, 9/5/08, [p e r c e p t i c o n] percepticon@ gmail.com*wrote: From: [p e r c e p t i c o n] percepticon@ gmail.com Subject: [flexcoders] VideoDisplay Object To: [EMAIL PROTECTED] ups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy -- Igor Costa www.igorcosta.com www.igorcosta.org