Hi til, 
are you still there?...i did something similar on a different project...take a 
look in eric's dropbox
basically...nav cue points are embedded in the video, but actionscript 
cuepoints you can add dynamically...give me a call and we can discuss it
 
 
list -- sorry for this....we work together...
 
b


----- Original Message ----
From: til <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, September 19, 2006 4:53:27 PM
Subject: [Flashcoders] FLVPlayer and addASCuePoint


Hello everyone. After a long hiatus from this list, I decided to
resubscribe, becasue i am at my wit's end :(

Thankfully, chattyfig has some of the world's best AS coders so I'm
sure this is no problem for you people. Here goes:

I got a FLVplayer (flash 8 pro) instance and loaded an flv that has no
cuepoints encoded. I really don't want to encode cuepoints, but use AS
to create them.

The code below works fine: it moves the playback to 8secs into the film.

BUT! --> here is the problem! <-- the trace action I have set for that
cuepoint JUST WONT EXECUTE.

The only way I can make it show is to seek to about 3 secs before my
cuepoint, but obviously that also plays the film 3 secs earlier.

I tired using seekToNavCuePoint() but that doesn't do anything, not
even moves playback header.
What else could I try? Again ,the video jumps as expected, but the
action isnt happening.

// load file
Vid1.contentPath = "film.flv";

// cue point listening
var listnerObject:Object = new Object();
listnerObject.cuePoint = function(eventObject:Object):Void  {
cuepointers(eventObject); // calling function below
}
Vid1.addEventListener("cuePoint", listnerObject);

// make cuepoints
Vid1.addASCuePoint(1,"cuePt1");
Vid1.addASCuePoint(8,"cuePt8");

// button to seek to a specific cuepoint
btn1.onPress = function(){
    Vid1.seek(Vid1.findCuePoint("cuePt8")["time"]);
}

// my function to do something when the cuepoint is hit
function cuepointers(eventObject){
    switch(eventObject.info.name){
        case "cuePt1" :
            trace("cue1");
        break;
        case "cuePt8" :
            trace("cue8"); // here! this action just wont happen :(
        break;
        default : break;
    }//end switch
}
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to