PDA

View Full Version : MediaDisplay component crashes my MovieClipLoader


handepora
07-14-2005, 11:15 PM
Hi
I'm recently getting into the MovieClipLoader Class, which I hadn't used before.
I'm loading the external movies of a site by using MovieClipLoader and it works perfect. The problem arises when I add this piece of code in my main movie:

musiccontainer.loadMovie("mp3player.swf");

"mp3player.swf" contains a mediaDisplay and a mediaController component which stream a song in mp3.
If I omit that line the loader works OK, but if I make the call to "mp3player.swf" as shown above the MovieClipLoader crashes, and all I see is the progress bar looping forever (and duplicating if I load a new section)

I don't know how to solve this. Any help is much appreciated.

handepora
07-15-2005, 04:30 PM
Perhaps it'll be easier to understand if you see it:

http://www.jvcreacion.com/efegon/efegon.html

handepora
07-30-2005, 12:41 PM
Well I solved it long ago. I reply myself in case someone with a similar problem browse this thread in the future.
The key for me was using this._lockroot = true;

this info in livedocs.macromedia.com was very useful (http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001519.html)

Regards