Tag: 弯曲

ActionScript的File.upload不适用于iOS设备的Air SDK

我正在尝试使用ActionScript的File.upload上传Air SDK for iOS环境中的文件,但File.upload无法正常工作。 在File.upload被调用之后,没有关于file upload的处理程序被执行,并且没有任何exception被捕获。 当我检查服务器端的networkingstream量时,发现在执行File.upload之后,甚至没有http请求命中服务器。 代码如下。 <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView"> <fx:Declarations> <!– Place non-visual elements (eg, services, value objects) here –> </fx:Declarations> <fx:Script> <![CDATA[ private var file:File; private var dir:File; //This method is executed to create a file and upload it when the Upload Button is pressed. protected function OnUploadButtonPressed(event:MouseEvent):void{ […]