随笔分类 - Flash
AS3编程中的两种常用事件
摘要:帧进入事件:影片剪辑:fj_mc,要实现将这个影片剪辑每次旋转30度,一直进行下去,当旋转的角度打印270时,停止fj_mc.addEventListener(Event.ENTER_FRAME,xz);向影片剪辑注册一个监听事件(ENTER_FRAME帧进入事件),事件每次发生就执行xz这个函数fuction xz(e:Event){fj_mc.rotation+=30;if(fj_mc.rotation>270){fj_mc.removeEventListener(Evetn.EnTER_FRAME,xz);//卸载这个监听}}时间事件影片剪辑:fj_mc,要实现将这个影片剪辑每2秒
阅读全文
flash与html的交互
摘要:flash调用HTML中函数:1.flash(as3)中调用代码:var strall:String=ExternalInterface.call("GetCityAlertWeather");GetCityAlertWeather为html中要的函数,strall为调用GetCityAlertWeather函数后得到的值2.html中function GetCityAlertWeather(){return aa;}Html调用flash中函数:1.flash中ExternalInterface.addCallback(‘flashfunc‘,func); private
阅读全文
浙公网安备 33010602011771号