Flex VideoDisplay component DOES display an alpha channel!
Actionscript, Flash, Flex, video Add commentsI’m writing this purely because I just spent half an hour trawling through the internet (and several Flex reference books) looking to see if there was a way to get the Flex VideoDisplay component to display my video with its alpha channel; and be transparent. The answer, of course and the reason why there wasn’t a hundred angry rants on the subject is because the VideoDisplay component has a background colour set by default to black. You’ll need to set the background-alpha to zero to see what’s underneath.
Interestingly though, while messing about trying to get this to work I set the opaqueBackground property to false and while this was the case it didn’t allow the background-alpha property to have any affect … this might be a bug. You don’t need this property anyway. Plain and simple alpha on the background was all I needed.
Sometimes these small things can throw you for hours … all you Flex developers out there … let’s blog about the really stupid, obvious mistakes we make as well!


June 3rd, 2009 at 10:00 am
Thanks for the tip. And you can also post your valuable comments in the Flex Cookbook Beta website.
August 7th, 2009 at 12:53 pm
Thanx for your post. You just saved me half a day searching for a solution for this problem.
Thanx!
August 19th, 2009 at 11:02 am
Great – thanks for this info. Meant it only took 5 mins of searching instead of several hours! Who’d have though it would be that easy – Flex WIN.