Embedding FLV in Flex

I'd like to embed a FLV into my Flex SWF, but I've seen quite a few articles online that tell me this doesn't work (for unknown reasons).

Does anyone know if an FLV can be embedded and if so how?

Thanks
Skip
schipmolderAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

asaivanCommented:
There's no direct way to do this.  The best alternative is to convert FLV to SWF in Flash, then load the SWF in Flex.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
schipmolderAuthor Commented:
Thanks asaivan!

That's basically what I'm doing now as well, but it's a bit of a pain... ah well.

You wouldn't happen to know how to embed that SWF into the Flex project without using the ability to control the FLV inside it?

I'm currently using ForcibleLoader to load the SWF and that still gives me exact control over the size and playhead position of the FLV, but if I embed the SWF using the usual Flex methods it embeds, but I can't control size and playhead anymore.

Thanks
Skip

0
asaivanCommented:
You could also try to use the @Embed directive in your Flex code for the SWF which has the video in it.  Although I haven't tried this.
0
The Firewall Audit Checklist

Preparing for a firewall audit today is almost impossible.
AlgoSec, together with some of the largest global organizations and auditors, has created a checklist to follow when preparing for your firewall audit. Simplify risk mitigation while staying compliant all of the time!

asaivanCommented:
Well, I would create a movie clip out of the embedded FLV.  e.g.  Create an empty movieclip, import the video to that movieclip.  Export that MovieClip as a SWC file.  Then you should be able to control the properties of that movie clip as if it were a class.  Which could be instantiated with a "new" constructor...  Make sense?
0
schipmolderAuthor Commented:
Sorry for the delay asaivan, but i've been trying to get my head around this without any luck.

When I try to create a SWC from a movieclip in Flex it still doesn't seem to embed that flv, so I'm a bit stuck here.

0
asaivanCommented:
OK, let's go step by step. Are you able to create an empty movie clip and import the video into that MovieClip?
0
schipmolderAuthor Commented:
Hi asaivan, sorry but unfortunately I wont have enough time to go over this any time soon :(

Thank you very much for helping so far though, I'll probably open another thread when I do have time to look at it properly.

thanks!
Skip
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Flex

From novice to tech pro — start learning today.