ActionScript Get All Network Activity?

ⅰ亾dé卋堺 提交于 2019-12-08 07:32:47

问题


Is there a way within ActionScript 3.0 to:

  • Get all URLRequests() that are made within the application?
  • Get all RTMP:// connections to a Flash Media server?

Since my application contains SWC files which were compiled by another developer, I cannot directly access the ActionScript which creates the URL requests and RTMP connections.

Thank your for your time.


回答1:


  • You can use a web debugging proxy to monitor all messages that are sent over the wire. I like to use Charles because it deserializes AMF messages so that you can read them. It's not free, but you can use it as long as you want anyway. You'll just get an annoying delay every once in a while.

  • Firebug has a lot of functionality built-in (even for Flash remoting). Go to the 'Net' panel and you'll see a 'Flash' tab. Your application has to run in the browser for this one though, not just in the standalone debug flash player.

  • If you're using FlashBuilder, it has a view called 'Network Monitor' that does the same thing. I still prefer Charles though because it has more features.

  • Adobe just released SWF investigator on Labs, which seems to allow you to take your compiled swc's apart as well as intercepting AMF messages. I can't tell you more since I've never worked with it. (props to @Eduardo for this one)



来源:https://stackoverflow.com/questions/9584490/actionscript-get-all-network-activity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!