# Flv playback + as2 oop + when is the component ready?

**URL:** <https://forum.kirupa.com/t/flv-playback-as2-oop-when-is-the-component-ready/251780>\
**Category:** Uncategorized\
**Created:** [February 12, 2008, 4:44pm UTC](https://forum.kirupa.com/t/flv-playback-as2-oop-when-is-the-component-ready/251780 "2008-02-12T16:44:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jansensan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jansensan/32/3362_2.png) [@jansensan](https://forum.kirupa.com/u/jansensan)\
**Post date:** [February 12, 2008, 4:44pm UTC](https://forum.kirupa.com/t/flv-playback-as2-oop-when-is-the-component-ready/251780/1 "2008-02-12T16:44:07Z")

</div>

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=LiveDocs\_Parts&file=00003477.html](http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003477.html)

doc on the flvplayback.ready property  
[http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs\_Parts&file=00003584.html](http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003584.html)

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

and also, here is the class im using (in the attachment)
