air

Adobe AIR camera slow

与世无争的帅哥 提交于 2020-01-17 13:57:27
问题 I am having issues with using the camera on Adobe AIR mobile devices . The performance of the camera is ok on newer phones, but on galaxy s2 for example it is impossible to use. I am using the camera like this: _camera = Camera.getCamera("0"); if (_camera != null) { // _video = new Video(); _video = new Video(_camera.width, _camera.height); // _video.width = _cameraHeight; _video.width = _cameraHeight; _video.height = Starling.current.nativeStage.fullScreenWidth; _camera.addEventListener

Good alternative for Adobe AIR and Zinc in Flash 10 + AS 2.0

寵の児 提交于 2020-01-17 12:13:04
问题 I'm making a Flash app in Flash 10 and ActionScript 2.0 and need support for calling an EXE with some params and minimizing/close the application. Neither Adobe AIR nor Zinc don't seem to support some code I made and I'm looking for a very simple alternative? Does anyone know about any? 回答1: I'm the project owner of HIppoHX, an Open Source alternative to AIR based on Haxe and SWHX that does what you need (plus it's fully extensible). The project is a little bit on hold, to be honest, but

Good alternative for Adobe AIR and Zinc in Flash 10 + AS 2.0

可紊 提交于 2020-01-17 12:12:51
问题 I'm making a Flash app in Flash 10 and ActionScript 2.0 and need support for calling an EXE with some params and minimizing/close the application. Neither Adobe AIR nor Zinc don't seem to support some code I made and I'm looking for a very simple alternative? Does anyone know about any? 回答1: I'm the project owner of HIppoHX, an Open Source alternative to AIR based on Haxe and SWHX that does what you need (plus it's fully extensible). The project is a little bit on hold, to be honest, but

flex air httpservice stream error and timing out

£可爱£侵袭症+ 提交于 2020-01-17 05:42:07
问题 We have an AIR client sending HTTPService Post request to Tomcat. The operation takes more than 30 seconds in the server since its a files transfer operation. By the time the server returns the response, Flex is throwing a fault, 2032, stream error ( checked a lot on the net ) Looks like its timing out after 30 seconds, waiting for the Http response. i tried setting ht.requestTimeout, it did not work. Setting URLRequestDefaults.idleTimeout also is not working. Looks like i have hit a dead end

zip file contents have no data

可紊 提交于 2020-01-17 05:01:05
问题 I have for a while been trying to make a zipping script. The closest I have come to what I am needing is this one. import flash.filesystem.File; import flash.events.Event; import FZIP.*; var directory:File = File.desktopDirectory.resolvePath("Test File"); var zip:FZip = new FZip(); var files:Array = directory.getDirectoryListing(); for(var i:uint = 0; i < files.length; i++) { var file_2:File = new File(files[i].nativePath); // zip.addFile(file_2.name, file_2.data); zip.addFile(file_2.name, ba

AS3 AIR RequestSoftKeyboard not working on Windows

和自甴很熟 提交于 2020-01-17 04:59:07
问题 I tried to launch a virtual keyboard on Windows using this: _txtInputName = new TextField(); _txtInputName.type = TextFieldType.INPUT; _txtInputName.needsSoftKeyboard = true; _txtInputName.addEventListener(FocusEvent.FOCUS_IN, onFocus ); private function onFocus(e:FocusEvent):void { _txtInputName.requestSoftKeyboard(); } Unfortunaly, the softkeyboard doesn't show up. Am I missing something? Does I have to add something on the application.xml? Thank you so much! 回答1: TextField is not an object

How can i access a variable or change the state of an element(like tabNavigator) from one mxml to another mxml?

落花浮王杯 提交于 2020-01-17 04:33:06
问题 How can i access a variable or change the state of an element(like tabNavigator) from one mxml to another mxml in FLEX 4.6?? 回答1: Each separate MXML file should be viewed as a class, since that is what they are. In the theory of encapsulation; two classes should not directly access / change each others variables or state. They should use an API provided by the developer of the MXML Class. If MXML 1 is the parent of MXML 2; then MXML1 can pass data to MXML2 by setting public properties or

zip many files with Air as3 flash

会有一股神秘感。 提交于 2020-01-17 04:12:55
问题 OK . I am reasonably capable, but still learning. This is for a program I am writing in AIR. Basicaly I am needing to grab the files of mixed type and content from a given folder and zip them. Here is the code I have put together and it sort of works. Problem I have is that the files in the zip all have zero byte's in them. Efectivly empty. What have I missed or done wrong? import flash.filesystem.File; import flash.events.Event; import deng.fzip.*; var directory:File = File.desktopDirectory

Flex String to HTML for parse with DOM

纵饮孤独 提交于 2020-01-17 01:29:09
问题 I have a string: private str:String = ' <!DOCTYPE html> <html> <body> <div>TEST</div> <span id="t1">T1 Content</span> <span class="t2">T2 Content</span> </body> </html>'; I want to parse the string. Next, I get innerHTMl via Object, ID or Class. E.g.: Objects: Body, Div, Span IDs: t1 Classes: t2 In PHP with the class, it's easy. But I could not create this build with Flex. Thanks for help... 回答1: Convert it to native XML in as3, then use e4x to parse the information required: var xml:XML =

Android res/layout Folder not included in the APK file (but included in the ANE)

拟墨画扇 提交于 2020-01-16 19:57:07
问题 I'm having a problem with resources on an Adobe ANE Android extension: android.content.res.Resources@NotFoundException: id.myView I have a xml layout file, which is included in the ANE file (checking by unzipping the ANE file and looking into META-INF/ANE/Android-ARM ) In the APK file (generated with Flash Builder 4.6), the layout folder (inside res ) at the top level is missing, but it's included deep in the assets folder: - META-INF - res drawable drawable-hdpi drawable-ldpi drawable-mdpi