Groups | Blog | Home
all groups > flash actionscript > september 2005 >

flash actionscript : Flash video encoder vs. addASCuePoint()


temptationxy
9/21/2005 11:04:45 PM
I am making a video with flash video encoder where I embed cuepoint (Event).
While reading it in flash there is no problem.when time=2.400 the event
actualizes exactly at 2.400.

But when i embed cruepoint in ationscript addASCuePoint() the event is
actualizing at 2.440 or 2.320 for the example time=2.400. I made the control
with the code written bellow.

What is the reason for this difference? What is the difference between the
cuepoint embed in a flash video encoder and embed in actionscript?



var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object) {

trace(my_flvPb.playheadTime);
trace(eventObject.info.time);

};
my_flvPb.addEventListener("cuePoint", listenerObject);
nITiNkIlLeRmEeRuT
9/22/2005 9:07:56 AM
temptationxy
9/22/2005 10:39:53 PM
I found the answer in flash help:

ActionScript cue points:
External cue points that you create by using ActionScript code. You can write
code to trigger these cue points in relation to the video's playback. These cue
points are less accurate than embedded cue points (up to a tenth of a second),
because the video player tracks them separately.


AddThis Social Bookmark Button