Is it possible to Cast the DisplayObject into MediaElement.Am trying to add the DisplayObject into the MediaContainer, but I got the following error:
-1067: Implicit coercion of a value of type flash.display:Loader to an unrelated type org.osmf.media:MediaElement. -mediaContainer
_loader is the variable of DisplayObject
.
mediaContainer.addMediaElement(_loader);
How can I rectify this problem? I am using Flash Builder4.