Featured Posts

Adobe Flex - Filter XML Data using E4X and RegExp Have you ever you wanted to filter your data like you would using the SQL LIKE condition? Well with E4X and RegExp you too can reap the benefits of pattern matching! Here...

Readmore

Flex Assets/File Manager – ASP VBScript - Version... I recently built a JavaScript file manager but I wanted more control and better usability instead of expanding on the JavaScript version I decided to build it using Flex....

Readmore

Getting at your SQL Database using Flex and .NET Web ServicesGetting at your SQL Database using Flex and .NET Web... So you gave up on trying to figure out how you can directly connect Flex to your database like with any server side language and decided to Google the answer. Well by now...

Readmore

Adobe Flex - Filter XML Data using E4X and RegExp Have you ever you wanted to filter your data like you would using the SQL LIKE condition? Well with E4X and RegExp you too can reap the benefits of pattern matching! Here...

Readmore

Fitchett Rss

Adobe Flex – Scale down your video without making it pixelated using Smooth Video Display component

Posted on : 25-03-2009 | By : Michael Fitchett | In : ActionScript, Development, Flex, Video

1

bad-videoDo your movies look like this because you set the size of the VideoDisplay component to a different size than your source movie?:

Well no need to panic, some cool programmer dude wrote this component “SmoothVideoDisplay” (I think that’s what its called I’m too lazy to google it.) which fixes that problem so your video will look like this:

with-smooth-video

No jagged edges!

It uses Flash’s video smoothing component which apparently for some reason or another was not made an option in Flex’s VideoDisplay component. Maybe it was another rush thing or something.

Here is what you have to do to set it up:

1. Download the component here SmoothVideoDisplay (683) and extract the SmoothVideoDisplay.as file your “src” directory under a new directory “custom”

2. Add the following to your <application> at the top of your Flex application:

xmlns:custom="custom.*"

 

3. Now to use it all you have to do is start typing “<custom:SmoothVideoDisplay>”

That’s it simple huh.

Thanks to who ever wrote this component I love it and use it on all of my video based Flex projects.

http://www.fitchett.me/wp-content/plugins/sociofluid/images/digg_32.png http://www.fitchett.me/wp-content/plugins/sociofluid/images/delicious_32.png http://www.fitchett.me/wp-content/plugins/sociofluid/images/technorati_32.png http://www.fitchett.me/wp-content/plugins/sociofluid/images/google_32.png http://www.fitchett.me/wp-content/plugins/sociofluid/images/myspace_32.png http://www.fitchett.me/wp-content/plugins/sociofluid/images/facebook_32.png http://www.fitchett.me/wp-content/plugins/sociofluid/images/twitter_32.png

Comments (1)

Thank you soooo much !

Write a comment

Anti-Spam Protection by WP-SpamFree