package 
{
    import flash.display.*;
    import flash.external.*;    public class MainCD extends MovieClip
    {
        var cdplay:Cdplay;        public function MainCD()
        {
            this.cdplay = new Cdplay();
            addChild(this.cdplay);
            this.cdplay.stop();
            ExternalInterface.addCallback("playDisc", this.playCD);
            ExternalInterface.addCallback("stopDisc", this.stopCD);
            return;
        }// end function        public function stopCD()
        {
            this.cdplay.stop();
            return;
        }// end function        public function playCD()
        {
            this.cdplay.play();
            return;
        }// end function    }
}上面是反编译出的AS代码,里面有两个功能,一个是playCD一个是stopCD。
下面如何在html页面中用JS或JQ对flash进行操作。
比如,flash的object id为discplayer,两个按钮,一个id是playbtn 一个id是stopbtn,点击这两个按钮分别让flash执行playCD和stopCD?