air

Adobe AIR file path on MAC and widows

谁说胖子不能爱 提交于 2019-12-12 02:46:32
问题 I have an Adobe Air application(based in flash) that loads in PNG files from a directory, there is a text file to specify the path, however it doesn't seem to be working on OSX while it works just fine on Windows Windows path C:\Users\User\Documents\Trees This works just fine, however mac path file:///Users/user/Desktop/trees/ or Users/user/Desktop/trees/ Doesnt work, tried to reverse the slashed, didn't help either, anyone could help? Update, heres the function that laods in the trees

Using AS2 in Air Application

假如想象 提交于 2019-12-12 02:26:55
问题 I'm working on bringing a game over from Flash to Android using Air 3.2. The SWF I am testing with is an AS2 SWF. I used this method to get the SWF file to load: http://www.mikechambers.com/blog/2008/08/18/anyone-using-actionscript-2-to-build-air-applications/#comment-13360 However, when I open the app, the SWF loads, but no code works. Here's the APK so you can see it in action. Is there like a .SWC or something similar I can include to get the code to work? Thanks, -Sandor 回答1: What you

Adobe Air Native Process with Java

走远了吗. 提交于 2019-12-12 02:17:50
问题 Does Adobe Air Native process only allows to call .exe file only which runs a java class ? And not accessing a certain method in the java class? 回答1: You can run java applications by running java.exe with native process and passing appropriate arguments. See Running java from cmd. 来源: https://stackoverflow.com/questions/8075085/adobe-air-native-process-with-java

CameraUI and CameraRoll in ADOBE AIR Crash application on IOS device when release

末鹿安然 提交于 2019-12-12 01:55:36
问题 I am using cameraUI to take a picture and use it and also using CameraRoll to use existing image from device.Every thing work well in debug but on release my application crash and reach to Home screen of IPAD . 回答1: Try publishing your app with the latest version of AIR SDK from labs.adobe.com 来源: https://stackoverflow.com/questions/26842981/cameraui-and-cameraroll-in-adobe-air-crash-application-on-ios-device-when-releas

Is it possible to bypass the cross-domain.xml requirement for an Adobe AIR application built with Flex?

两盒软妹~` 提交于 2019-12-12 01:53:20
问题 Is it possible for an Adobe AIR application to connect to a remove webservice that does not expose a cross-domain.xml file? If so, how do you configure the security sandbox within Air to allow this? I have attempted a socket connection and received the following error: securityErrorHandler: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: app:/MyApp.swf cannot load data from gmail.com:5222." errorID=0 ] 回答1:

How to Determine and Set Screen Size at run time using action script?

时光怂恿深爱的人放手 提交于 2019-12-12 01:46:41
问题 Hey so i am developing an android application using action script(the adobe air one) since the screen size of my .swf application is appox 840X480... Can i detect the screen size of the android device running application at runtime and set the screen size accordingly?? if so How?? P.S - I'm still rookie at Action-script Thank You 回答1: Basically, to make your app liquid (or responsive). Follow the following steps: Set the stage align and scale modes: stage.scaleMode = StageScaleMode.NO_SCALE;

Unable to get response status from adobe air xmlhttprequest

北城以北 提交于 2019-12-12 01:44:34
问题 This is the code in the html/javascrpt file: var console = console || {log:function(msg){window.runtime.trace(msg);}}; function waitToFinish(){ console.log("this is wait to finish loading the url"); console.log(this.readyState); console.log(this.status); if(this.readyState != 4){ return; } console.log("readystate is 4"); console.log("response text length is:"+this.responseText.length); if (this.status === 200 || this.status == 304) { // status is allways 0 console.log("success"); console.log(

Adobe Air: why SQLStatement's getResult().data is null?

爱⌒轻易说出口 提交于 2019-12-12 01:38:54
问题 Using Flash Builder 4.6, I am following http://www.flex-blog.com/adobe-air-sqlite-example (edit: link seems to be broken) as an example, and there is one part of codes that does not work: private function resault(e:SQLEvent):void { // with sqls.getResault().data we get the array of objects for each row out of our database var data:Array = sqls.getResult().data; // we pass the array of objects to our data provider to fill the datagrid dp = new ArrayCollection(data); } Checking the program

URLRequestDefaults.setLoginCredentialsForHost not setting the user & pwd in authorization header

二次信任 提交于 2019-12-12 01:34:24
问题 I want to access html files which are protected by basic authentication. I am trying to load this html page using htmlloader and sending the request by urlRequest. I am using URLRequestDefaults class to set the credentials but when I see the request being send in the fiddler I don't see any authorization header being set by this. Am I doing something wrong here. My code is below. URLRequestDefaults.authenticate = false; URLRequestDefaults.setLoginCredentialsForHost("www.xyz.com", "madhur",

Flex SpinnerList - how animate spin?

非 Y 不嫁゛ 提交于 2019-12-12 01:08:03
问题 How to programmatically set the spin of component SpinnerList (Flex mobile) so that it can spin for a few seconds and then stopped at selected index? 回答1: private function scrollToIndex(index:int, animationDuration:int = 1000):void { if ((index != -1) && (list.layout != null)) { var spDelta:Point = list.dataGroup.layout.getScrollPositionDeltaToElement(index); if ((spDelta != null) && (spDelta.y != 0)) { var target:DataGroup = list.dataGroup; var animation:AnimateProperty = new AnimateProperty