actionscript-3widgetmxmlspriteosmf

OSMF Widget based on MXML and AS3


I have been searching several days for an example of how to make a OSMF Widget writing some code with MXML (At least the layout code) and some code in AS3.

It is my first time working with this tech.

I have wrote some Widgets for OSMF in AS3, but now I have a design (Write in MXML) which I need to draw in the OSMF ChromeApplication.

I have been reading some OSMF source code and it seems that ChromeApplication extends Sprite, so my problem can be reduced to draw a MXML in a Sprite.

So my questions are:

  1. Is it possible to create a MXML element with AS3 code and add it to a Sprite?
    1. If it is possible, how do I do that?
    2. If not, What is the best aproach to have some MXML Classes inside OSMF?

Solution

  • Use UIComponent and s:VideoPlayer for OSMF integration as noted in the above comments.