posts - 15,comments - 0,trackbacks - 0
        .
        .
        .
         //改变状态
        this.addEventListener(MouseEvent.DOUBLE_CLICK,changeImg);
        .   
        .
        .
//改变
public function changeImg():void {
    arguments; //如果方法没有参数,则必须在方法中添加这个声明
    if(this.source == img0) {
        this.source = img1;
    } else {
            this.source = img0;
      }
        }
posted on 2012-04-15 12:20 aya000 阅读(1440) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: