Link to home
Start Free TrialLog in
Avatar of schipmolder
schipmolder

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of asaivan
asaivan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of schipmolder
schipmolder

ASKER

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

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.
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?
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.

OK, let's go step by step. Are you able to create an empty movie clip and import the video into that MovieClip?
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