简体   繁体   English

在FLASH AS3中记录并记录外部加载的SWF

[英]Log and Record Externally loaded SWF in FLASH AS3

I have loaded an external SWF in my flash application and showing it in a space. 我已经在Flash应用程序中加载了外部SWF,并在空格中显示了它。 As the external SWF is a sub-part of my main flash application, I would like to know a way to record , trace or log all the http request and responses made by it, is there anyway of accomplishing this feat? 由于外部SWF是我的主Flash应用程序的子部分,因此我想知道一种记录,跟踪或记录其所有http请求和响应的方法,无论如何,要实现这一壮举吗?

Its best to use MonsterDebugger for this. 最好为此使用MonsterDebugger。 -> MonsterDebugger -> 怪物调试器

Edit: Sorry I misunderstood, i thought this is for debugging. 编辑:对不起,我误会了,我认为这是为了调试。

You can make your own events for this, listen to them from your Main swf and dispatch them from the chid swf. 您可以为此创建自己的事件,从Main SWF收听它们,然后从Chid SWF分发它们。

EDIT2: This Link explains it very well. EDIT2:此链接解释得很好。 Make event types for your needs and dispatch them in the child swf Creating and dispatching Custom Events 根据您的需要创建事件类型,并在子swf中进行调度。创建和调度自定义事件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM