简体   繁体   中英

Embed FLV as a specific class in FLEX

In the Flash Authoring Tool, I can embed an FLV file as any class I wish as long as the class is a child of MovieClip . This is achieved by selecting the "Export for ActionScript" option and entering a MovieClip-extending "Base Class" .

I need to achieve this with Flex too. How can I embed an FLV and make it be a MovieClip-extending class?

It sounds like you can't embed an FLV, based on these docs

To Quote:

You can embed any file type in a Flex application as a bit map array. However, Flex does not recognize or process files other than those described previously. If you embed any other file type, you must provide the transcode logic to properly present it to the application user.

It is even mentioned in the comments that this is a limitation. Your best bet, if possible, is to load the flv asset at runtime.

In aN AIR app [including mobile] you can the FLX as part of your distribution and load it from there. In a web app, just put it in the directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM