5 Replies Latest reply on Mar 10, 2010 1:39 PM by cayennecode

    Quick load elements?

    cayennecode Level 1

      Can MediaElements be instantiated, loaded, and added to the display list with only a passed url String?

       

      import org.osmf.elements.ImageElement;

      var img:ImageElement = new ImageElement('myimage.jpg');

      addChild(img);

       

       

      public function ImageElement(url:String, loader:ImageLoader=null)

      {

           super(url ? new URLResource(url) : null, loader ? loader : quickStaticLoader, [ImageLoader]);

      }

       

      public class MediaElement extends Sprite

      {

      }