Not able to controlling the sound in captivate?


hi,

 

i new captivate , have couple of questions :


i have loaded audio in flash file using as3 code , tried controlling in captivate, swf gets stopped audio gets running. how can control captivate, while doing play/pause?
not able controlling sound in captivate. how can value cpcmndpause?
because, interactivity each page has audio....
pls me out in issue ! in advance

 

as3:
___

 

var playcnt:number=0;

 

externalinterface.addcallback("sendtextfromjs", receivetextfromjs);

 

function receivetextfromjs():void {

        if(playcnt==0){
            pausemovie();
            playcnt++;
        }else{
            playmovie();
            playcnt--;
        } 
}

 

function pausemovie(){

coun =1;
lastpos = mychl.position;
mychl.stop();
   
     for(var i:int=1;i<7;i++)
        {
  var btn=this["btn_"+i];
  btn.removeeventlistener(mouseevent.click, btnclick);
        }
}

 

function playmovie(){

   coun = 0;
   mychl = mysnd.play(lastpos);

    for(var i:int=1;i<7;i++)
       {
  var btn1=this["btn_"+i];
  btn1.addeventlistener(mouseevent.click, btnclick);
       }
}


in captivate :
__________

 

in "captivate" swf id:


if(cpcmndpause == 0){

  cpcmndpause =1;
  captivate.receivetextfromjs();

}else{

  cpcmndpause =0;
  captivate.receivetextfromjs();

}



More discussions in Adobe Captivate


adobe

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?