How to control volume in Netstream


hello,

 

i had previous post received no answer after while.  have project in actionscript 2.0 using flash cs4.  flash game.  have flv files loaded site using netstream. of videos volume lower , adjust them without rerendering of videos.  have gone on line , have tried many things, none have worked , have given error messages.  below script have been loading flvs. 

 

var nc:netconnection = new netconnection();

nc.connect(null);

var ns:netstream = new netstream(nc);

aud1.attachvideo(ns);

ns.play("http://www.mysite.org/video/myvideo/1.flv");

ns.oncuepoint = function(evt:object){

    trace(evt.name);

    trace(evt.time);

    if(evt.name == "c1") {

        trace("yo !jump 108!");

        gotoandplay(108);

    }

};

i have script above layer netstream player. 

 

thank help.

 

mark.

per directions kglad provided in other posting...

 

var st:soundtransform=your_ns.soundtransform;

st.volume=.5;

your_ns.soundtransform=st;

 

you should have tried...

 

var nc:netconnection = new netconnection();

nc.connect(null);

var ns:netstream = new netstream(nc);

var st:soundtransform=ns.soundtransform;

st.volume=.5;

ns.soundtransform=st;

aud1.attachvideo(ns);

ns.play("http://www.mysite.org/video/myvideo/1.flv");

ns.oncuepoint = function(evt:object){

    trace(evt.name);

    trace(evt.time);

    if(evt.name == "c1") {

        trace("yo !jump 108!");

        gotoandplay(108);

    }

};

 

if doesn't work, should continue in other posting, , show tried doesn't work. 

 

please don't start new 1 because no 1 has responded little while.  when kglad comes around respond.



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support