The fastest route to doing this would be through an existing library. Try
this one[
^].
If you are talking about decoding a movie contained within the swf, you'll need to first extract the video and then decode it using something like
FFmpeg[
^].
Cheers.