air

Using flexmojos maven plugin to build AIR mobile application

半城伤御伤魂 提交于 2021-02-11 12:40:44
问题 I have dial with AIR mobile application based on 's:ViewNavigatorApplication'. I use Apache Flex SDK 4.10 and Flexmojos plugin 6.0.1 and JetBrains IDEA 12.1.4 I made 'pom.xml', added 'air-framework' dependencies. The IDE imported it successfully and made the project configuration. The dependencies are shown under the 'Extranl Libraries' node, I can see it. But I don't see ViewNavigatorApplication class, I only see WindowedApplication. The 'pom.xml' loads 'airmobile-config.xml'. When I try to

Using Actionscript Worker to loop function to make it faster

爱⌒轻易说出口 提交于 2021-02-11 12:23:54
问题 My current code that allow application to upload data inside of Excel file into the AIR app is as follows; import lib.xlsxreader.Worksheet; import lib.xlsxreader.XLSXLoader; public class Main extends MovieClip { private var fileGet: File = new File(); private var xloader: XLSXLoader = new XLSXLoader(); public function Main() { fileGet = File.applicationDirectory; fileGet.addEventListener(Event.SELECT, selectExcel) xloader.addEventListener(Event.COMPLETE, uploadComplete); button

1046: Type was not found or was not a compile-time constant: ServerSocketConnectEvent

倖福魔咒の 提交于 2021-02-10 23:25:16
问题 I am trying to get the adobe AIR SocketServer class to work. When I pasted in this code from the adobe website: import flash.net.ServerSocket; import flash.events.ServerSocketConnectEvent; function onConnect(e:ServerSocketConnectEvent):void { var incomingSocket:Socket = e.socket; } var server:ServerSocket = new ServerSocket(); server.addEventListener(Event.CONNECT, onConnect); server.bind(8888); I got the error saying that the SocketServerConnectEvent could not be found. However, there is an

1046: Type was not found or was not a compile-time constant: ServerSocketConnectEvent

妖精的绣舞 提交于 2021-02-10 23:19:41
问题 I am trying to get the adobe AIR SocketServer class to work. When I pasted in this code from the adobe website: import flash.net.ServerSocket; import flash.events.ServerSocketConnectEvent; function onConnect(e:ServerSocketConnectEvent):void { var incomingSocket:Socket = e.socket; } var server:ServerSocket = new ServerSocket(); server.addEventListener(Event.CONNECT, onConnect); server.bind(8888); I got the error saying that the SocketServerConnectEvent could not be found. However, there is an

How to create a 64 bit desktop application (AIR) using Flash builder

允我心安 提交于 2021-02-10 14:39:04
问题 I need to convert my adobe air application (using Flex 4.6.0.) into 64 bit desktop application (Mac OS and Windows). Could you explain how to do ? Indeed, macOS Catalina (macOS 10.15) won't support 32 bit apps ! So I need to find an alternative quickly. Thanks for helping. Best regard 回答1: In order to update to 64 bit, you will have to update your sdk. 4.6 version is very old (2012 maybe?). First update your SDK to AIR 32. Then you can use tag <architecture>64</architecture> in the

Properly link SWF library when compiling Actionscript 3 Air poject using as3mxml

本小妞迷上赌 提交于 2021-01-29 10:06:59
问题 In my attempts to achieve the following: compile library.swf that contains different common scripts; compile different SWFs that link library.swf and use these common scripts without copying code to own resulting SWFs; I was trying to use acompc and mxmlc , however I couldn't achieve the approach above. Recently I came up across as3mxml plugin for Visual Studio Code (VSC) which I gave a try as at least it had some examples. Here is my MVP: Project library that builds library.swf , library.swc

addEventListener with ruturn in AS3 - How?

时光毁灭记忆、已成空白 提交于 2021-01-29 08:26:54
问题 I'm a new Flash AS3 job but I have a big problem using some OOP concepts like return from methods, when I needs a Event Listener code. The problem is that the function from Event Listener cannot return a value. How can I work with this issue? This is a code sample that I using on my AIR app. This code I want to re-use in other situations that I want to parse a directory files. private function initApp():void { try { // Seta o diretoório de molduras var directory = diretorio_mestre.resolvePath

Get Object nested property using dot separated string

本小妞迷上赌 提交于 2021-01-28 14:24:50
问题 Is there in Flex any utility to get object nested property using dot separated string like this: SomeUtil.getObjectProperty(object, "child.property"); 回答1: You can roll your own, assuming object is a dynamic object : public function getObjectProperty(object:Object, property:String):Object { var parts:Array = property.split("."); if(parts && parts.length == 2 && object && object[parts[0]] && object[parts[0]][parts[1]]) { return object[parts[0]][parts[1]]; } return null; } Here is another one

Get Object nested property using dot separated string

久未见 提交于 2021-01-28 14:23:35
问题 Is there in Flex any utility to get object nested property using dot separated string like this: SomeUtil.getObjectProperty(object, "child.property"); 回答1: You can roll your own, assuming object is a dynamic object : public function getObjectProperty(object:Object, property:String):Object { var parts:Array = property.split("."); if(parts && parts.length == 2 && object && object[parts[0]] && object[parts[0]][parts[1]]) { return object[parts[0]][parts[1]]; } return null; } Here is another one

Flex Air程序打包成独立的exe安装文件

此生再无相见时 提交于 2020-03-17 11:25:29
某厂面试归来,发现自己落伍了!>>> 开发背景: FlexBuilder3.2开发生成的Air程序需要能够独立安装,事先不需要安装AdobeAir运行环境 实现方法: 1)用winrar打开xx.air文件爱能,并将它解压在D:\airapp目录中。 2)在D:\airapp目录下新建一个文件夹,命名为app,此目录用于存放我们的AIR主程序。 3)把D:\airapp目录下的其它所有文件及文件夹都拷到D:\airapp\app目录中。 4)把C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.2.0\bin目录中的adl.exe文件也拷到D:\airapp\app目录中。 5)把C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.2.0目录下的runtimes文件夹拷到D:\airapp目录中。 6)此时我们在D:\airapp中创建一个setup.bat文件,在其中输入以下代码: app\adl -runtime runtimes\air\win app\application.xml -nodebug -- -main app\index.swf 7)使用Quick Batch File Compiler软件将setup.bat打包成exe文件,并可以添加图标