我在下面有这段代码,我需要什么才能能够登录FireFox/FireBug
:
package {
import flash.display.Sprite;
import flash.external.ExternalInterface;
public class FlashRecorder extends Sprite {
public function FlashRecorder() {
var logger:Logger;
logger = new Logger();
ExternalInterface.addCallback("debugLog", logger.debugLog);
var recorder = new Recorder(logger);
recorder.addExternalInterfaceCallbacks();
}
}
}
这样,当我这样做时:
logger.log('startPlaying');
它将登录到 Firefox/firebug