2 Replies Latest reply on Nov 5, 2009 5:14 PM by zahir herz

    SMILParser.as error

    zahir herz

      Publishing from Flash (i know i know, but it was requested).

       

      Main.as

      var smilURL:String ="http://mediapm.edgesuite.net/ovp/content/demo/smil/elephants_dream.smil";

      _smilParser = new SMILParser();
      _smilParser.addEventListener(SMILParser.PARSED, onSmilParsed, false, 0, true);

      _smilParser.load(smilURL);

       

      SMILParser.as extends EventDispatcher

      public static const PARSED:String = "parsed";

       

      private function parseXML():void {

          dispatchEvent(new Event(SMILParser.PARSED));

      }

       

      TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@3b2beb81 to org.osmf.parsers.SMILParser.
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at org.osmf.parsers::SMILParser/parseXML()
          at org.osmf.parsers::SMILParser/onXMLLoaded()
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at flash.net::URLLoader/onComplete()

       

      what obvious thing am I missing?