0

我想使用 Flex 4 SDK 保存 XML 文件

var fr:FileReference=new FileReference();
fr.save( newXmlRow, 'D:/Sample.xml' );

错误显示:

1061 "Call to possibly Undefined method save through a reference with static type flash.net:FileReference"
4

2 回答 2

3

您好请按此更改,我相信您一定会从这种情况中走出来。

右键单击项目 -> 单击属性 -> 转到 FLEX 编译器 -> 将所需的 FLASH Player 版本更改为 10.0.0

在此处输入图像描述

完成此操作后,单击应用按钮并玩得开心...

祝你今天过得愉快...

于 2011-12-26T11:13:46.380 回答
0

您必须使用后台进程上传文件。就像在 c#.net 中为上传文件创建 functon/webservice 一样。您不能直接在 flex 中保存文件。

于 2011-06-02T12:05:03.723 回答