flash flv question
- Started
- Last post
- 3 Responses
- kbayer
i have an flv playing thru netConnection on a single frame in my main timeline. it plays for a minute and a half. when it's finished, i need it to continue on to the next frame.
can anyone please help me out with the coding for this. i've been stuck for two days. and it's starting to drive me crazy. thanks.
- sauerbraten0
it takes some digging, but there's some good forums regarding the FLV format and it's many issues..
check here
http://flashmx2004.com/forums/in…kirupa has some good stuff as well..
- Anarchitect0
check if the flv responds to _currentframe/_totalframes.
could try an interval to check if _currentframe == _totalframes, like:
frame= function(target){
if (target._currentframe == target._totalframes && target._totalframes){
clearInterval(frameLoop);
target.stop();
this.gotoAndPlay(this._currentfr...
} else {
trace (target._currentframe);
}
}chkFrame = function(target){
clearInterval(frameLoop);
frameLoop = setinterval(this,"frame", 20, target);
}//usage
chkFrame(myMC);
- chimchim0
I believe this is the correct code
netStr.onStatus = function(infoObject) {
if (infoObject.code == "NetStream.Play.Stop") {
//next frame code here
}
};