0 Replies Latest reply on Jan 28, 2011 6:40 AM by kioshin10

    interrupt player and start anew with SerialElement

    kioshin10 Level 1

      Hello,

       

      How can I stop player and start with the new playlist?

      I use SerialElement to make a playlist from (SWF, Image, Video).

       

      serialElement.addChild(new DurationElement( playTime, new SWFElement( new URLResource(urlString))));

       

      When I get information about new playlist I pause the player and remove

      serialElement children:

       

      while(serialElement.numChildren != 0) serialElement.removeChildAt(0);

       

      and add new items.

      But after this I get "playbackError"..

      Do I need to kill some other processes before adding new items ro SerialElement?

       

      Thank you in advance,

      Kioshin10