View Full Version : how do i stop this from looping
tonygarcia
March 1st, 2006, 01:28 AM
function stopIt() {
duration == 208
ns.pause();
}
Tired this... and I had no luck... how do i tell this player to stop at the end of the clip
thanks in advance...
http://azulinteractive.com/video_basics_8_FINISHED.fla (the .fla)
tonygarcia
March 1st, 2006, 09:03 PM
anyone?
icio
March 2nd, 2006, 10:02 AM
var targetFrame:Number = 10; // frame 10
ns.onEnterFrame = function() {
if (this._currentframe == targetFrame) {
this.stop();
}
}
Hope this helps :thumb:
tonygarcia
March 2nd, 2006, 01:10 PM
var targetFrame:Number = 10; // frame 10
ns.onEnterFrame = function() {
if (this._currentframe == targetFrame) {
this.stop();
}
}
Hope this helps :thumb:
Thanks for responding .... I pasted this into the action frame and the video continued to loop...
:) any idea why?
scotty
March 2nd, 2006, 01:49 PM
comment the ns.seek(0) or take it out :)
ns.onStatus = function(info) {
if (info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
}
if (info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
}
if (info.code == "NetStream.Play.Stop") {
//this one let it play again
//ns.seek(0);
}
};
scotty(-:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.