文件名称:典型实例——形状认知游戏-Flash actionscript3 事件处理
文件大小:1.39MB
文件格式:PPT
更新时间:2024-05-13 20:47:55
as3
典型实例——形状认知游戏 ani1_mc.addEventListener("mouseDown",movepic); function movepic(me:MouseEvent){ me.target.startDrag(); } ani1_mc.addEventListener("mouseUp",ani1); function ani1(me:MouseEvent){ me.target.stopDrag(); if (me.target.hitTestObject(ani1bg_mc)){ me.target.scaleX = me.target.scaleY = 2; me.target.x = ani1bg_mc.x; me.target.y = ani1bg_mc.y; } }