ActionScript
Adobe Flash 全平台 ActionScript 3.0 参考手册
ActionScript® 3.0 Reference for the Adobe® Flash® Platform The ActionScript® 3.0 Reference for the Adobe® Flash® Platform contains the ActionScript language elements, core libraries, and component packages and classes for the tools, runtimes, services and servers in the Flash Platform.
FLASH 增加自定义右键菜单
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.ui.ContextMenu;
import flash.ui.ContextMenuItem;
/**
* 隐藏Flash右键菜单实例
* @author fising <fising@qq.com>
*/
public class Main extends Sprite
{
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
//stage.showDefaultContextMenu = false;
var cmitem:ContextMenuItem = new ContextMenuItem('MadHouse Inc. Ver 110711', true);
var cm:ContextMenu = new ContextMenu();
cm.hideBuiltInItems();
cm.customItems.push(cmitem);
this.contextMenu = cm;
}
}
} |
Adobe Flash Player Content Debugger
调试版 Adobe Flash Player 下载地址: http://www.adobe.com/support/flashplayer/downloads.html
Flash 调试出错:“由于此 SWF 不包含 ActionScript,因此无法对其进行调试”的解决方案
今天调试 Flash 的时候出现这个报错信息:由于此 SWF 不包含 ActionScript,因此无法对其进行调试。但是 Output 面板空白无任何输出。莫名奇怪的错误。使用 Flash CS4 的关联类检查工具,提示找到了对应的类文件。但是在编译过程中似乎又会忽略关联的 AS 类文件。 在网上搜索答案,折腾了几个小时,也没有解决。最后还是自己搞定了——原因真的很操蛋:Flash IDE 版本过低。 解决方法:将 Adobe Flash CS4 从 10.0 升级到 10.0.2
Flash & ActionScript 3 中使用 PNG 图片非透明部分作为遮罩的解决方案
_masked 被遮罩元素 _maskPng 作为遮罩的PNG图片 Steps: 1. _masked.cacheAsBitmap = true; 2. _maskPng.filters = [new BlurFilter(0, 0, 0)];