0 Replies Latest reply on Feb 12, 2008 10:03 AM by MatJansonBlanchet

    attach flvplayback dynamically - when is it initialized

    MatJansonBlanchet
      hello,

      i am trying to create a class that would use the flvplayback component. i do not want to place the component on the stage as i need to deal with that dynamically, and i need to reuse the class in many projects.

      however i find problems, as even if the flvplayback is attached on the stage, it has not been loaded yet. so i tried using a setinterval to deal with that, but it did not always work as the delay seems to change depending how many processes are going on at the same time

      i stumbled upon the ready property (or event? i have a hard time understanding the event handling), but it seems like it does not do me any good since the event is never called.

      can anybody help me? it would be greatly appreciated


      here are the docs i relied on so far

      doc on the flvplayback component
      http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveD ocs_Parts&file=00003477.html

      doc on the flvplayback.ready property
      http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveD ocs_Parts&file=00003584.html

      doc on using flvplayback with attachmovie
      http://flashmove.com/forum/archive/index.php/t-27852.html

      you may see the code at the following link: http://jansensan.net/icongo/videoPlayerClass.zip