For some reason, my preload script is not working. I want the timeline to stop on this frame until the FLV is pre-loaded, but for some reason, it just skips past and then loads at the next stop(); frame.

Here is the AS on the frame where the video should load:

Code:
_root.clipAvatar.my_FLVPlybk.addEventListener("ready", listenerObject);
listenerObject.ready = function (eventObject)
{
    _root.play();
};
The strange thing is, I also have code in the same frame, which tells the timeline to again _root.play(); when the FLV is over and it works flawlessly.

Here is the compete script on the frame:

Code:
_root.clipAvatar.my_FLVPlybk.contentPath = "name_of_video.flv";

var listenerObject = new Object();
_root.clipAvatar.my_FLVPlybk.addEventListener("complete", listenerObject);
listenerObject.complete = function (onVideoDone)
{
    _root.play();
}

_root.clipAvatar.my_FLVPlybk.addEventListener("ready", listenerObject);
listenerObject.ready = function (eventObject)
{
    _root.play();
};
stop();
Thanks,

SD909