2 Replies Latest reply on May 17, 2011 9:33 AM by ssebuser

    Plugin - Error #1053: Illegal override of createNetStreamSwitchManager

    ssebuser

      hi,

      from the code found in the file OSMF_plugin_dev_guide.pdf, I'm trying to load a dynamic plugin, here is the code :

       

      // Create the DefaultMediaFactory and add listeners
      // for the loading of the plug-in.
      var factory:MediaFactory = new DefaultMediaFactory();
      factory.addEventListener(MediaFactoryEvent.PLUGIN_LOAD, onPluginLoaded);
      factory.addEventListener(MediaFactoryEvent.PLUGIN_LOAD_ERROR, onPluginLoadFailed);
      // Create a resource for the plug-in SWF.
      var resource:URLResource = new URLResource("http://example.com/samplePlugin.swf");
      // Load the plug-in SWF.
      factory.loadPlugin(resource);

       

      The url of the swf file isn't valid so it should be handled in the onPluginLoadFailed function but I got an exception error :

      VerifyError: Error #1053: Illegal override of createNetStreamSwitchManager in org.osmf.net.rtmpstreaming.RTMPDynamicStreamingNetLoader.
          at flash.display::MovieClip/nextFrame()
          at mx.managers::SystemManager/deferredNextFrame()[E:\dev\4.x\frameworks\projects\framework\s rc\mx\managers\SystemManager.as:267]
          at mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()[E:\dev\4.x\framework s\projects\framework\src\mx\managers\SystemManager.as:2460]
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at mx.preloaders::Preloader/timerHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\p reloaders\Preloader.as:488]
          at flash.utils::Timer/_timerDispatch()
          at flash.utils::Timer/tick()

       

      Can you please help ?

       

      Thanks.