I'm using the same FLVPlayback component to play many page transition videos throughout a large flash site I'm building. On each transition, I'm setting the component's source using myFLVPlayback.source
and listening for the fl.video.VideoEvent.READY
event before proceeding with each page transition. This works fine as long as the transition between every pair of pages uses a different video.
Unfortunately, I'm running into a problem when the same page-to-page transition video needs to get invoked for two consecutive transitions. When playing the same video twice in a row, setting the source
property of the component to the value it already has doesn't seem to do anything, meaning that my listeners for fl.video.VideoEvent.READY
never fire. I could do something hackish like setting the source
to a tiny, never-used-elsewhere FLV before setting it to the FLV that I'm actually using for the transition as a means of "resetting" the component, but I'd like to know what best practices are in a situation like this (insofar as best practices with something like the FLVPlaybackComponent can be discussed with a straight face).
I've perused the livedocs for the component but came up empty-handed, and manually using NetStream, NetConnection, and Video objects at this late stage isn't really an option.
Thanks for your consideration, and happy new year!
Justin