Text, still or movie clip plays before video.
hello,
i had posted before , closed out post because thought had correct answer. don't mean repost, don't know else do. have video plays in flash game background on layer. have cue points jump next video when cue point reached. before video plays background shows half second or so, text layer. thought had fixed problem putting background , text movie clips first 6 frames blank. works sparadically, shows blank page half second. in prior post (sorry again) suggestion code:
trace(bg1);
trace(q1);
bg1._visible=false;
var lo:object = {};
lo.ready = function(eobj:object):void {
bg1._visible = true;
};
q1.addeventlistener("ready", lo);
the code using is:
var nc:netconnection = new netconnection();
nc.connect(null);
var ns:netstream = new netstream(nc);
q1.attachvideo(ns);
ns.play("http://www.mysite.org/1.flv");
ns.oncuepoint = function(evt:object){
trace(evt.name);
trace(evt.time);
if(evt.name == "c1") {
trace("yo !jump 158!");
gotoandplay(158);
}
};
//-------sound controls--------//
this.createemptymovieclip("sound_mc",this.getnexthighestdepth());
sound_mc.attachaudio(ns);
var videosound:sound = new sound(sound_mc);
videosound.setvolume(100);
i have attempted place new code within have doesn't seem work. project in actionscript 2.0
again sorry repost, tried restart last, thought might old.
i thought might have figured out, tried this:
trace(bg1);
trace(text1);
trace(q1);
bg1._visible=false;
text1._visible=false;
var lo:object = {};
lo.ready = function(eobj:object):void {
bg1._visible = true;
text1._visible = true;
};
q1.addeventlistener("ready", lo);
var nc:netconnection = new netconnection();
nc.connect(null);
var ns:netstream = new netstream(nc);
q1.attachvideo(ns);
ns.play("http://www.mysite.org/1.flv");
ns.oncuepoint = function(evt:object){
trace(evt.name);
trace(evt.time);
if(evt.name == "c1") {
trace("yo !jump 108!");
gotoandplay(108);
}
};
//-------sound controls--------//
this.createemptymovieclip("sound_mc",this.getnexthighestdepth());
sound_mc.attachaudio(ns);
var videosound:sound = new sound(sound_mc);
videosound.setvolume(100);
again sorry repost, tried restart last, thought might old.
thank has helped me this, seems last obstacle project.
mark.
if there half second before video starts, want display?
why there 1/2 second delay before video... on purpose?
when jumping section of timeline video plays, there frames play before video starts? sort if transition or something?
i don't see reason why video should delayed @ when jumping frame containing video.
have tried setting buffer time 0
ns.setbuffertime(0);
keep in mind buffer time of 0 not 0 if video files being downloaded on internet... there short delay first part of file downloads.
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment