本文介绍了从ActionScript 3台flashfirebug获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要的是夺取在网页中从闪存数据(文本数据)。该数据一直在变化(wheather数据),这应该是出口做一个文本文件,这样我就可以操作该数据。

My need was to capture data (text data) from flash in a web page.The data is always changing (wheather data) and this should be exported do a text file so i could manipulate this data.

我试图做到这一点与我的第一种方法是使用像小提琴手或者Wireshark的一个websniffer。我使用的,但便无法得到两个数据,因为它被嵌入闪存。我用菲德勒的人在midle使用Wireshark解密的数据(从网站CER私钥),但它并没有奏效。

I tried do this with and my first approach was using a websniffer like fiddler or wireshark.I used that but could't get data from both because it is embedded in flash.I used fidler as man-in-midle with wireshark deciphering the data (with the private key from the site cer) but it didn't worked.

在我试图用flashfirebug亲(亲允许在控制台中运行AS3命令对应)。这个插件加载DOM树并刷新它。选择在页面检查所需的元素后,我已经接取到的实例属性(和所需要的只有一个在右侧面板中的HTML文本)(它在左边的面板中的DOM实例和位置显示)

After that i tried using flashfirebug pro (the pro allows to run as3 comands in the console). This addon loads the dom tree and refreshes it. After selecting in the page the desired element with inspector (it shows in the left panel the instance and position in the dom) i have acess to the instance properties (and the only one needed is the "html-text" in the right panel).

我的问题,这最后一种方法是,它无法与本地文件系统通信(如果我做跟踪(this.text);在控制台它显示的文本价值,但它只是显示在控制台)。只有这样,才能在硬盘驱动器进行通信,以文件,我能想到的,只是抛出一些错误日志文件,但便无法做到这一点也。

My problem with this last approach was that it could not communicate with the local file system (if i make "trace(this.text);" in the console it shows the text value but it just shows in the console). The only way to communicate to the file in the hard drive, that i could think of was to throw some error to the log file but could't do that also.

没有人有任何的想法与flashfirebug工作或有一些其他的方法来做到这一点。

Does anyone have any idea to work with flashfirebug or have some other approach to do this.

问候,

推荐答案

。如果不能,尝试解决浏览器沙箱JavaScript作为桥梁,一些浏览器插件/ -addon这使您可以访问本地进程和文件系统。使用JavaScript从闪存的 ExternalInterface的类是你的朋友。

if you want to work on local filesystems use adobe air.if you can't, try to work around the browsers sandbox with javascript as bridge to some browser-plugin/-addon which gives you access to local processes and filesystems. to use javascript from flash the ExternalInterface class is your friend.

这篇关于从ActionScript 3台flashfirebug获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 17:17