Quantcast
Viewing all articles
Browse latest Browse all 80145

Not able to controlling the sound in captivate?

Hi,

 

I am new to Captivate and i have Couple of questions :


I have loaded audio in flash file using as3 code and i tried controlling in captivate, the swf gets stopped but audio gets running. How can i control it from Captivate, while doing play/pause?
Not able to controlling the sound in captivate. How can i get the value for cpCmndPause?
because, its a interactivity each page has some audio....
Pls help me out in this issue ! Thanks in Advance Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

 

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 this "Captivate" is the swf id:


if(cpCmndPause == 0){

  cpCmndPause =1;
  Captivate.receiveTextFromJS();

}else{

  cpCmndPause =0;
  Captivate.receiveTextFromJS();

}


Viewing all articles
Browse latest Browse all 80145

Trending Articles