as3: Error: Implicit coercion of a value of type void to an unrelated type <p>I'm attempting to set up a Metadata object like so:</p> <pre><code>public function myFunction(event:MediaFactoryEvent):void { var resource:URLResource = new URLResource("http://mediapm.edgesuite.net/osmf/content/test/logo_animated.flv"); var media:MediaElement = factory.createMediaElement(resource); // Add Metadata for the URLResource var MediaParams:Object = { mfg:"Ford", year:"2008", model:"F150", } media.addMetadata("MediaParams", (new Metadata()).addValue("MediaParams", MediaParams) ); </code></pre> <p>When I attempt this, I get:</p> <blockquote> <p>Implicit coercion of a value of type void to an unrelated type org.osmf.metadata:Metadata. (new Metadata()).addValue("MediaParams", MediaParams) ); I actually need the metadata at a couple of levels of depth there, because the metadata gets passed and another function expects the Metadata that way. </p> </blockquote> <p>How do I get the Metadata added to my URLResource the way I want? Thanks!</p>