tarsus
01-31-2008, 01:50 PM
This has to be simple to accomplish, but I've searched all over the web and haven't found a solution. (Not even in several other forums.)
I'm using Flash 9. I have an FLVPlayback component in my movie, and ONLY this component. What I want is simply for the FLV that is streaming through this component to continue to loop.
One method I've come across suggested this ActionScript (the FLVPlayback instance is called myPlayback):
myPlayback.complete = function(eventObject:Object):Void {
this.play();
};
But this produces this error at compile, and the movie doesn't play:
1046: Type was not found or was not a compile-time constant: Void.
The Adobe livedoc on FLVPlayback.complete located at:
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003537.html
actually prescribes this method for using complete:
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
myPlayback.play();
};
myPlayback.addEventListener("complete", listenerObject);
This produces the exact same error.
Someone must know how to loop a streaming FLV! I'm lost! If I'm somehow asking this question the wrong way, or this has everyone stumped because these methods should work, or there's a common way to do this in Flash 8 but not 9 - anything! - please respond and let me know. So far I can't even get anyone to respond to the question.
I'm using Flash 9. I have an FLVPlayback component in my movie, and ONLY this component. What I want is simply for the FLV that is streaming through this component to continue to loop.
One method I've come across suggested this ActionScript (the FLVPlayback instance is called myPlayback):
myPlayback.complete = function(eventObject:Object):Void {
this.play();
};
But this produces this error at compile, and the movie doesn't play:
1046: Type was not found or was not a compile-time constant: Void.
The Adobe livedoc on FLVPlayback.complete located at:
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003537.html
actually prescribes this method for using complete:
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
myPlayback.play();
};
myPlayback.addEventListener("complete", listenerObject);
This produces the exact same error.
Someone must know how to loop a streaming FLV! I'm lost! If I'm somehow asking this question the wrong way, or this has everyone stumped because these methods should work, or there's a common way to do this in Flash 8 but not 9 - anything! - please respond and let me know. So far I can't even get anyone to respond to the question.