flashcc代码片断.doc

flashcc代码片断课案

动作(先给对象取名选择 Web 页/* 单击以转到 Web 页 URL。: 1. 用所需 URL 地址替换 。 ()。 */mc.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage); function fl_ClickToGoToWebPage(event:MouseEvent):void { navigateToURL(new URLRequest(), _blank); } ★自定义鼠标光标 /* 自定义鼠标光标 */ stage.addChild(mc); mc.mouseEnabled = false; mc.addEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor); function fl_CustomMouseCursor(event:Event) { mc.x = stage.mouseX; mc.y = stage.mouseY; } Mouse.hide(); //要恢复默认鼠标指针,对下列行取消注释: //mc.removeEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor); //stage.removeChild(mc); //Mouse.show(); ★拖放 /*

文档评论(0)

1亿VIP精品文档

相关文档