Flex VideoDisplay component DOES display an alpha channel!

Actionscript, Flash, Flex, video Add comments

I’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!

Digg!

3 Responses to “Flex VideoDisplay component DOES display an alpha channel!”

  1. Karl Sigiscar Says:

    Thanks for the tip. And you can also post your valuable comments in the Flex Cookbook Beta website.

  2. Paul Says:

    Thanx for your post. You just saved me half a day searching for a solution for this problem.

    Thanx!

  3. Tom Says:

    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.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in