Flex 3 中的ExternalInterface 有数据大小限制吗?

发布于 2024-08-14 01:16:27 字数 280 浏览 8 评论 0原文

我在 Flex 3 上使用ExternalInterface。我们实际上使用flex 来压缩大量的DOM 数据,所以这是专门用于大数据的。

进一步探究一下,如果有限制的话,这是否具有普遍性? (IE。Silverlight)

首先,让我声明这是由缺乏经验的软件工程师开发的应用程序完成的。这是一个我们需要通过压缩数据来争取时间的应用程序,以便我们可以构建长期解决方案。不幸的是,我们没有其他选择。

背景:这是一个实际上是网络电子表格的应用程序。我们的长期解决方案是制作 Office 业务应用程序。

I am using the ExternalInterface on Flex 3. We are actually using flex to compress a large amount of DOM data, so this is specifically being used with LARGE data.

To further investigate, if there is a limitation, is this universal? (IE. Silverlight)

First, let me state that this is being done with an application that was made by inexperienced software engineers. This is an app that we need to buy time by compressing the data so that we can build a long-term solution. We have no other options, unfortunately.

Background: This is an application that is actually a web-spreadsheet. Our long term solution is to make a Office Business Application.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

倾城花音 2024-08-21 01:16:27

不会,Flash 不会对ExternalInterface 通信施加任何大小限制。

No, Flash do not impose any size limits on ExternalInterface communication.

厌倦 2024-08-21 01:16:27

我认为确实如此,或者还有一些其他配置可以控制这一点。我正在使用 FileReference 对象测试文件上传,并希望通过外部接口调用将从服务器发送的数据传递回托管页面。下面是我的 UPLOAD_COMPLETE_DATA 事件处理程序的片段。

    private function onFileUploadCompleteData (e:DataEvent):void
    {
        var file:FileReference = FileReference(e.target);
        Alert.show("onFileUploadCompleteData : " + e.data );

        if(ExternalInterface.available && callBackOnUploadCompleteData.length > 0)
        {
            var data:Object = new Object();
            data.FileName = file.name;
            data.ServerData = e.data;
            //data.ServerData = e.data.substr(0, 50);
            ExternalInterface.call(callBackOnUploadCompleteData, data);
        }
    }

该事件被触发,但从未调用我的 javascript。如果我取消注释将返回的数据修剪为前 50 个字符的行,它将开始工作并正确调用 javascript。

要么是 flash (10.2) 或 IE9(我正在使用的)施加了大小限制,要么是我缺少其他东西。

I think it does, or there is some other configuration which governs this. I was testing a file upload using FileReference object and wanted to pass the data sent from server back to hosting page via external interface call. Below is a snippet of my UPLOAD_COMPLETE_DATA event handler

    private function onFileUploadCompleteData (e:DataEvent):void
    {
        var file:FileReference = FileReference(e.target);
        Alert.show("onFileUploadCompleteData : " + e.data );

        if(ExternalInterface.available && callBackOnUploadCompleteData.length > 0)
        {
            var data:Object = new Object();
            data.FileName = file.name;
            data.ServerData = e.data;
            //data.ServerData = e.data.substr(0, 50);
            ExternalInterface.call(callBackOnUploadCompleteData, data);
        }
    }

This event gets fired but the call to my javascript is never made. If I uncomment the line which trims the returned data to first 50 characters, it start working and calls the javascript correctly.

Either there is a size restriction imposed by flash (10.2) or IE9 (which is what I was using), or there is something else I am missing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文