必须为'flash.display.MovieClip'的子类,因为它链接到该类型的库元件.
package{importflash.display.Sprite;importflash.events.*;publicclassMain{publicfunctio...
package
{
import flash.display.Sprite;
import flash.events.*;
public class Main
{
public function Main()
{
yao_mc.addEventListener(MouseEvent.CLICK,ysz);
function ysz(e:MouseEvent):void
{
sz1_mc.gotoAndPlay(1);
sz2_mc.gotoAndPlay(2);
sz3_mc.gotoAndPlay(4);
}
kai_mc.addEventListener(MouseEvent.CLICK,ksz);
function ksz(e:MouseEvent):void
{
sz1_mc.gotoAndStop(Math.ceil(Math.random()*6));
sz2_mc.gotoAndStop(Math.ceil(Math.random()*6));
sz3_mc.gotoAndStop(Math.ceil(Math.random()*6));
}}}} 展开
{
import flash.display.Sprite;
import flash.events.*;
public class Main
{
public function Main()
{
yao_mc.addEventListener(MouseEvent.CLICK,ysz);
function ysz(e:MouseEvent):void
{
sz1_mc.gotoAndPlay(1);
sz2_mc.gotoAndPlay(2);
sz3_mc.gotoAndPlay(4);
}
kai_mc.addEventListener(MouseEvent.CLICK,ksz);
function ksz(e:MouseEvent):void
{
sz1_mc.gotoAndStop(Math.ceil(Math.random()*6));
sz2_mc.gotoAndStop(Math.ceil(Math.random()*6));
sz3_mc.gotoAndStop(Math.ceil(Math.random()*6));
}}}} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询