Does any one know much about cue points in for a video file in flash?My que points work fine for the first 9 seconds, if i make a cue point after the ten second mark none of the cue points seem to register except for the last one! Can any one help me?
my_xml.onLoad = function(succes s) {
for (i=0; i<my_xml.childN odes[0].childNodes.len gth; i++) {
my_Time.push(my _xml.childNodes[0].childNodes[i].childNodes[1].firstChild.nod eValue);
my_Sub.push(my_ xml.childNodes[0].childNodes[i].childNodes[3].firstChild.nod eValue);
my_HyperT.push( my_xml.childNod es[0].childNodes[i].childNodes[2].firstChild.nod eValue);
var cueTime:Number = my_Time[i];
cuePt.time = cueTime;
cuePt.name = "elapsed_ti me";
cuePt.type = "actionscri pt";
// Add AS cue point.
my_flvPb.addASC uePoint(cuePt);
trace("A");
}
trace(my_Time);
trace(my_Sub);
};
my_xml.load("ht tp://nuseilatan.com/lol/cue_points.xml" );
var listenerObject: Object = new Object();
listenerObject. cuePoint = function(eventO bject) {
{
trace("lololo") ;
if (my_HyperT[0+cuePtCounter] == "0") {
trace("hyper 0");
my_ta.html = false;
{
if (my_Sub[0+cuePtCounter] == "pork") {
my_ta.text = "";
cuePtCounter++;
trace("AAAA");
} else {
my_ta.text = my_Sub[0+cuePtCounter];
cuePtCounter++;
trace("BBBB");
}
};
} else if (my_HyperT[0+cuePtCounter] != "0") {
trace("hyper1") ;
myformat.url = my_HyperT[0+cuePtCounter];
my_ta.html = true;
{
if (my_Sub[0+cuePtCounter] == "pork") {
my_ta.text = "";
my_ta.setTextFo rmat(myformat);
cuePtCounter++;
trace("AAAA");
} else {
my_ta.text = my_Sub[0+cuePtCounter];
my_ta.setTextFo rmat(myformat);
cuePtCounter++;
trace("BBBB");
}
}
};
};
};
my_flvPb.addEve ntListener("cue Point",listener Object);
my_xml.onLoad = function(succes s) {
for (i=0; i<my_xml.childN odes[0].childNodes.len gth; i++) {
my_Time.push(my _xml.childNodes[0].childNodes[i].childNodes[1].firstChild.nod eValue);
my_Sub.push(my_ xml.childNodes[0].childNodes[i].childNodes[3].firstChild.nod eValue);
my_HyperT.push( my_xml.childNod es[0].childNodes[i].childNodes[2].firstChild.nod eValue);
var cueTime:Number = my_Time[i];
cuePt.time = cueTime;
cuePt.name = "elapsed_ti me";
cuePt.type = "actionscri pt";
// Add AS cue point.
my_flvPb.addASC uePoint(cuePt);
trace("A");
}
trace(my_Time);
trace(my_Sub);
};
my_xml.load("ht tp://nuseilatan.com/lol/cue_points.xml" );
var listenerObject: Object = new Object();
listenerObject. cuePoint = function(eventO bject) {
{
trace("lololo") ;
if (my_HyperT[0+cuePtCounter] == "0") {
trace("hyper 0");
my_ta.html = false;
{
if (my_Sub[0+cuePtCounter] == "pork") {
my_ta.text = "";
cuePtCounter++;
trace("AAAA");
} else {
my_ta.text = my_Sub[0+cuePtCounter];
cuePtCounter++;
trace("BBBB");
}
};
} else if (my_HyperT[0+cuePtCounter] != "0") {
trace("hyper1") ;
myformat.url = my_HyperT[0+cuePtCounter];
my_ta.html = true;
{
if (my_Sub[0+cuePtCounter] == "pork") {
my_ta.text = "";
my_ta.setTextFo rmat(myformat);
cuePtCounter++;
trace("AAAA");
} else {
my_ta.text = my_Sub[0+cuePtCounter];
my_ta.setTextFo rmat(myformat);
cuePtCounter++;
trace("BBBB");
}
}
};
};
};
my_flvPb.addEve ntListener("cue Point",listener Object);