import flash.display.MovieClip; import flash.events.MouseEvent; var xn:Number = 10; var yn:Number =import flash.display.MovieClip;import flash.events.MouseEvent;var xn:Number = 10;var yn:Number = 5;var mm:MovieClip = new MovieClip ;mm.addEventListen

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 20:36:57
importflash.display.MovieClip;importflash.events.MouseEvent;varxn:Number=10;varyn:Number=importflash

import flash.display.MovieClip; import flash.events.MouseEvent; var xn:Number = 10; var yn:Number =import flash.display.MovieClip;import flash.events.MouseEvent;var xn:Number = 10;var yn:Number = 5;var mm:MovieClip = new MovieClip ;mm.addEventListen
import flash.display.MovieClip; import flash.events.MouseEvent; var xn:Number = 10; var yn:Number =
import flash.display.MovieClip;
import flash.events.MouseEvent;
var xn:Number = 10;
var yn:Number = 5;
var mm:MovieClip = new MovieClip ;
mm.addEventListener(MouseEvent.MOUSE_UP,mmm);
function mmm(e:MouseEvent ):void
{
mm.x += xn;
mm.y += yn;
}
我这个怎么没移动.我已经设置2个帧.请各位高手帮解围.

import flash.display.MovieClip; import flash.events.MouseEvent; var xn:Number = 10; var yn:Number =import flash.display.MovieClip;import flash.events.MouseEvent;var xn:Number = 10;var yn:Number = 5;var mm:MovieClip = new MovieClip ;mm.addEventListen
其他不管 至少你现在有两个问题,第一 你没有 将mm这个moveiclip添加到显示对象列表,用addChild()函数添加,第二 你这个是new的一个 就相当于 你手动添加了一个空的影片,没有显示内容你也看不到.