发现了个调试WEB-flash的小宝贝“FlashFireBug”,可以抛弃“xray”了
效果相当好,下面说说安装步骤和使用说明
一、先安装插件地址
二、然后下载as3的FlashFireBug类库,怎么引用包不用讲了吧
压缩包里有com.adobe的类库,有用到json。 还有包 ominds 和 utility。
我在想为什么不把他们放在一起,估计utility里的CharacterEntity类不是作者原创,所以..........

package
{
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.TimerEvent;
import flash.utils.Timer;
/**
* ...倒计时工具
* @author Emment
*/
public class TimeBack extends EventDispatcher
{
private var timer:Timer;
public var ss:int;
public var mm:int;
public function TimeBack()
{
timer = new Timer(1000);
timer.addEventListener(TimerEvent.TIMER, timerHandler);
}
/**
* 秒
* @param mm
*/
public function startRedTime(m:int):void
{
mm = Math.floor(m / 60);
ss = m % 60;
timer.reset();
timer.repeatCount = m;
timer.start();
}
private function timerHandler(e:TimerEvent):void
{
if (ss == 0) {
ss = 59;
if (mm == 0) {
timer.stop();
ss = 0;
}else {
mm --;
}
}else {
ss--;
}
var evt:Event = new Event("seconds");
dispatchEvent(evt);
}
}
}
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*.example.com" to-ports="507,516-523"/>
<allow-access-from domain="www.example.com" />
<allow-http-request-headers-from domain="*.adobe.com" headers="SOAPAction"/>
</cross-domain-policy>
| Tag ID | Read | Write | Tag Name |
| 0 | x | x | End |
| 1 | x | x | ShowFrame |
| 2 | x | DefineShape | |
| 4 | x | PlaceObject | |
| 5 | x | x | RemoveObject |
| 6 | x | x | DefineBits |
| 7 | x | DefineButton | |
| 8 | x | x | JPEGTables |
| 9 | x | x | SetBackgroundColor |
| 10 | x | DefineFont | |
| 11 | x | DefineText | |
| 12 | x | x | DoAction |
| 13 | x | DefineFontInfo | |
| 14 | x | x | DefineSound |
| 15 | x | StartSound | |
| 17 | x | DefineButtonSound | |
| 18 | x | SoundStreamHead | |
| 19 | x | x | SoundStreamBlock |
| 20 | x | x | DefineBitsLossless |
| 21 | x | x | DefineBitsJPEG2 |
| 22 | x | DefineShape2 | |
| 23 | x | DefineButtonCxform | |
| 24 | x | x | Protect |
| 26 | x | x | PlaceObject2 |
| 28 | x | x | RemoveObject2 |
| 32 | x | DefineShape3 | |
| 33 | x | DefineText2 | |
| 34 | x | DefineButton2 | |
| 35 | x | x | DefineBitsJPEG3 |
| 36 | x | x | DefineBitsLossless2 |
| 37 | x | DefineEditText | |
| 39 | x | x | DefineSprite |
| 41 | x | ProductInfo | |
| 43 | x | x | FrameLabel |
| 45 | x | SoundStreamHead2 | |
| 46 | x | DefineMorphShape | |
| 48 | x | DefineFont2 | |
| 56 | x | x | ExportAssets |
| 57 | x | x | ImportAssets |
| 58 | x | x | EnableDebugger |
| 59 | x | x | DoInitAction |
| 60 | x | DefineVideoStream | |
| 61 | x | x | VideoFrame |
| 62 | x | DefineFontInfo2 | |
| 63 | x | DebugID | |
| 64 | x | x | EnableDebugger2 |
| 65 | x | x | ScriptLimits |
| 66 | x | x | SetTabIndex |
| 69 | x | x | FileAttributes |
| 70 | x | PlaceObject3 | |
| 71 | x | x | ImportAssets2 |
| 73 | x | DefineFontAlignZones | |
| 74 | x | x | CSMTextSettings |
| 75 | x | DefineFont3 | |
| 76 | x | x | SymbolClass |
| 77 | x | x | Metadata |
| 78 | x | DefineScalingGrid | |
| 82 | x | x | DoABC |
| 83 | x | DefineShape4 | |
| 84 | x | DefineMorphShape2 | |
| 86 | x | x | DefineSceneAndFrameLabelData |
| 87 | x | x | DefineBinaryData |
| 88 | x | DefineFontName | |
| 89 | x | StartSound2 | |
| 90 | x | x | DefineBitsJPEG4 |
| 91 | x | DefineFont4 |
在AS3端:
var server:LocalConnection = new LocalConnection();
server.connect("as3_server");
server.client = this;
....
最新评论及回复