all groups > flash actionscript > june 2006 >
You're in the

flash actionscript

group:

flv actionscript


Re: flv actionscript DMennenoh **AdobeCommunityExpert**
6/6/2006 4:36:47 PM
flash actionscript:
Use the onStatus callback instead:

ns.onStatus = function(infoObject:Object) {
if (infoObject["code"] == "NetStream.Play.Stop") {
//video has stopped... do stuff
}
};

--
Dave -
Adobe Community Expert
www.blurredistinction.com
http://www.adobe.com/communities/experts/

flv actionscript alexstl
6/6/2006 7:38:37 PM
Below is code I am trying to use to go to a frame after the end of a flv file
is reached. The video plays but the end of file listener does not work. Any
help would be greatly appreciated.

nc = new NetConnection();
nc.connect(null);
ns= new NetStream(nc);
Ticatavid.attachVideo(ns);
ns.play("ticata_0001.flv");

stop();

ns.addASCuePoint(2, "endOfMovie");

var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
gotoAndPlay(2);
}
ns.addEventListener("cuePoint", listenerObject);
Re: flv actionscript alexstl
6/7/2006 4:47:34 PM
Its still not working. Here is my code:

nc = new NetConnection();
nc.connect(null);
ns= new NetStream(nc);
Ticatavid.attachVideo(ns);
ns.play("ticata_0001.flv");

stop();

ns.onStatus = function(infoObjectbject) {
if (infoObject["code"] == "NetStream.Play.Stop") {
gotoAndPlay(2);
}
}
Re: flv actionscript Motion Maker
6/9/2006 9:15:52 PM


Why not follow the example in the docs:

http://livedocs.macromedia.com/flash/8/main/00002561.html


--
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
[quoted text, click to view]
Below is code I am trying to use to go to a frame after the end of a flv
file
is reached. The video plays but the end of file listener does not work. Any
help would be greatly appreciated.

nc = new NetConnection();
nc.connect(null);
ns= new NetStream(nc);
Ticatavid.attachVideo(ns);
ns.play("ticata_0001.flv");

stop();

ns.addASCuePoint(2, "endOfMovie");

var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
gotoAndPlay(2);
}
ns.addEventListener("cuePoint", listenerObject);

AddThis Social Bookmark Button