air

Run an AS3 function only once

…衆ロ難τιáo~ 提交于 2019-12-14 03:14:44
问题 I'm making an AIR app and I would like to know if it's possible to run a function only once ? If the user reboot his device and launch the app, the function won't be trigger again. Thank you for your answers, 回答1: Since you're using adobe AIR, you have a few options. Write a file that contains your save data. Using AIR you can write a data file to the user's machine. This is more permanent than SharedObject's, which for various reasons can not work or persist long term. You can actually

Adobe Air: drag & drop grouped components

孤人 提交于 2019-12-14 02:28:37
问题 I am trying to create Adobe Air application in which I require the components below: Allow me to elaborate this mockup: There are 2 panels on each side, and the items inside these panels can be drag and drop on each other, just like moving items around in 2 folders. Several tutorials have shown that a list with dragEnabled = "true" dropEnabled = "true" dragMoveEnabled = "true" will do the job. However, here comes the crucial part. I want my item in the list to have such a structure that I

ADOBE AIR : Error #16824 : Version mismatch while trying to auto update

自古美人都是妖i 提交于 2019-12-14 02:15:41
问题 OBJECTIVE : So here is my problem, I am trying to auto-update an old version software X v1.0.7 AIR Runtime SDK 2.0 to a new version X v1.0.8 AIR Runtime SDK 2.5. CONFIGURATION = Old Software X is version 1.0.7 using runtime SDK 2.0. App.xml as follow : <application xmlns="http://ns.adobe.com/air/application/2.0"> <version>1.0.7</version> This software X is so, suppose to update to version 1.0.8 which suppose to use the AIR runtime 2.5. Im using an update.xml file with tags : <update xmlns=

iPad Pro icon and launch image

和自甴很熟 提交于 2019-12-14 01:21:37
问题 I'm developing an adobe air based app for iOS and I need to know the names for the recently added assets for iPad Pro - launch image(2048 x 2732) and icon (167x167). Unfortunately it's hard to guess their names based on previous ones. 回答1: I found that Default-Landscape-1366h@2x.png Default-Landscape-1366h.png works for iPad Pro as launch images. They both should be 2732x2048. Don't know if it suits portrait orientation. Also looking for correct icon names. 来源: https://stackoverflow.com

Why does URLStream complete event get dispatched when the file is not finished loading?

巧了我就是萌 提交于 2019-12-14 00:34:36
问题 I'm writing an AIR kiosk app that every night connects to a WordPress server, gets a JSON file with paths to all the content, and then downloads that content and saves it to the kiosk hard drive. There's several hundred files (jpg, png, f4v, xml) and most of them download/save with no problems. However, there are two f4v files that never get downloaded completely. The complete event does get dispatched, but if I compare the bytesTotal (from the progress event) vs bytesAvailable (from the

Unable to find whats wrong with this code for adobe air

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 22:08:34
问题 Working with an adobe air app for the first time. Dont know whats the error with the following code. It is not alerting the "no" value. Please see, the saveData() and getData() are from this question. function check(){ var d1 = getData('item1'); var d2 = getData('item2'); if (d1 && d2) { alert('yes'); } else { alert('no'); } } saveData('item1','value1'); saveData('item2','value2'); // I know that its ridiculous to save the data and then reset it. // But This is how the main code works. sorry.

Is it possible to start a native application from Adobe Air?

我的未来我决定 提交于 2019-12-13 19:43:14
问题 Is it possible to start a native application/service from Adobe Air? I guess this is basically a duplicate of Running a native program in Adobe AIR, but that question is a year old so hopefully the answer is now "yes"! 回答1: Starting from AIR 2.0, yes - NativeProcessInfo. It will be supported if your application supports extendedDesktop profile and is compiled as native installer. 来源: https://stackoverflow.com/questions/5032035/is-it-possible-to-start-a-native-application-from-adobe-air

Can we change stage size dynamically?

隐身守侯 提交于 2019-12-13 10:53:24
问题 Am working on flash cs6 and AIR 14.I developed one app i want to adjust that app to all android and ios devices.for that i want to change my stage size dynamically according to screen resolution of device.Is it possible to do that.if yes how ? 回答1: Yes, It is possible. First thing you need to do is the following: (as soon as your application has access to the stage) stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; This will make your stage not scale and become the

iOS-like Scrollview in as3 AIR

自闭症网瘾萝莉.ら 提交于 2019-12-13 09:48:35
问题 I'm trying to create a iOS-like UIScrollView in ActionScript 3 for my Adobe AIR apps, but it is not very smoooth. Why didn't Adobe implement a native scroll view? Has anyone already implemented a smooth scroll, using movie clips or something similar? 回答1: Take a look at this. It should give you some ideas/help you get started. http://www.infin8iphone.co.uk/?p=57 回答2: I had created a pretty full functional iOS-like ScrollView/ListView component for AS3, you can try it: https://github.com

Get data from dynamic HTTPService Asynchronous to populate an Advanced Data Grid Flex

∥☆過路亽.° 提交于 2019-12-13 07:38:22
问题 I have to populate an Advanced Data Grid which have the following fields: Continent->State->Society-->Actual Value-->Estimate Value I want to simulate a financial market so i have to change some of the values by asynchronous request from an HTTPService; have you got any idea to do so? Thank you. If necessary i'll post the .as file, but it is generated automatically by Flex Builder. Here's the code of the client side Flex/Air application: <?xml version="1.0" encoding="utf-8"?> <mx