air

Know of JavaScript template engines out there?

橙三吉。 提交于 2019-12-23 05:15:17
问题 I need to generate very big html files based on data entered in a huge form. The project is done in AdobeAIR (js). What templating techniques would you recommend other than Dojo dtl? 回答1: Check out John Resig's micro template. It's pretty simple and pretty dope. Now, I don't know how far down that rabbit hole you need to go, but if it's not too far...this works well. 来源: https://stackoverflow.com/questions/554118/know-of-javascript-template-engines-out-there

Integrating Paypal API in Adobe Flex

江枫思渺然 提交于 2019-12-23 04:56:20
问题 I am writing a Flex project in which I need to communicate with Paypal via their APIs. Really not sure how to start with - this is my first flex/air application. I won't be using any server side technology (no Java, Php, .NET, Coldfusion) - all of the requests have to come from Flex and the response be sent back directly to the flex application. Can someone please give me an example or something to start with. Let's say implementation of RefundTransaction API in Flex. Is it possible? If not,

How Can I Use fdt.launch.Application for AIR Projects & FDT 5.5

房东的猫 提交于 2019-12-23 04:47:13
问题 i'm trying to run this on an AIR Mobile project.. <fdt.launch.application projectname="TestAndroid" mainclass="src/com/powerflasher/SampleApp/TestAndroid.as" debug="false" target="../bin/TestAndroid.swf" startswf="false" /> gives the following error.. fdt.launch.Application does not support AIR Projects. is there an alternative to this? 回答1: Yes and no. Yes FDT 5.5 offers a new 'fdt.invoke.launchConfiguration' task. To enable the execution of launch configurations in an ANT environment. Watch

Parsing large text files with Adobe AIR

余生长醉 提交于 2019-12-23 04:46:06
问题 I am trying to do the following in AIR: browse to a text file read the text file and store it in a string (ultimately in an array) split the string by the delimiter \n and put the resulting strings in an array manipulate that data before sending it to a website (mysql database) The text files I am dealing with will be anywhere from 100-500mb in size. So far, I've been able to to complete steps 1 and 2, here is my code: <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; import flash

ItemRenderer Switching URLLoader Images

℡╲_俬逩灬. 提交于 2019-12-23 04:42:14
问题 I don't even know how to explain this behavior but I'll try. I am loading images from an external url that requires basic auth so I am using URLLoader to load the image from a unique ID. The ID gets passed to the itemrenderer which then proceeds to load the image. But the images switch around on their own when I scroll. If I load more than 7 images or so it starts repeating images.... Youtube video of error: http://www.youtube.com/watch?v=ZYoqlS14gWQ Relevant code: <s:ItemRenderer name=

posting scores not working/ gives “Invalid OAuth access token signature.”

痴心易碎 提交于 2019-12-23 04:38:26
问题 whats wrong in this? FacebookDesktop.api("/me/scores",callBack,{access_token:appAccessToke,score:100}, "POST") app has the following permissions: publish_stream,publish_actions app is categorized as Games app is built using AIR app access token is obtained thisway: FacebookDesktop.api("/oauth/access_token", getAccessTokenHandler,{client_id:"xxxxxxx",client_secret:"yyyyyyyyyyyyyyyyy",grant_type:"client_credentials"}); 回答1: In your facebook app settings change authentication to web instead of

How to style the installer?

无人久伴 提交于 2019-12-23 03:53:05
问题 I'm developing an AIR app for a client, and they've had a gfx designer edit some graphics for the app. He's also asked that the installer be changed from this: To this: (ignore the XP window style) Is that possible? I haven't found anything relevant from Googling or searching SO. 回答1: That's not possible, the installation of .air packages is handled by the AIR runtime, you cannot change its appearance. Native packages might be standalone installers themselfs, not 100% sure, but their style

Issuing PRAGMA statement in AIR app

廉价感情. 提交于 2019-12-23 01:58:24
问题 When I use the flash.data routines to issue a SQLite "PRAGMA encoding" statement, I get an error suggesting that this isn't supported: 'Error #3115: SQL Error.', details:'PRAGMA is not allowed in SQL.', operation:'execute', detailID:'2005 Is there a workaround? 回答1: In a word no. See for supported and unsupported features. http://help.adobe.com/en_US/as3/dev/WSd47bd22bdd97276f1365b8c112629d7c47c-8000.html#WSd47bd22bdd97276f-5741a41a1262b2de46b-8000. However on that page however you will see..

How to record a time-limited video with Adobe AIR for iOS

雨燕双飞 提交于 2019-12-23 01:50:41
问题 I am trying to record a time-limited video with Adobe AIR for iOS. For example, I want to implement the following function. Start a one-minute timer before launching CameraUI to record video. When the timeout event happens after one minute, stop recording video, close the CameraUI view and obtain the video data so far. I have several questions related to that. How to stop recording video from outside the CameraUI view(in this case, from the timeout event handler) and then close the CemeraUI

Save encoded .mp3 to applicationStorageDirectory Adobe Air iOS

本小妞迷上赌 提交于 2019-12-22 21:43:14
问题 I'm developing an iOS iPad app w/ Flash CS5.5 AIR v.3.1 I'm using ShineMp3Encoder to encode a Wav to a Mp3 from: https://github.com/kikko/Shine-MP3-Encoder-on-AS3-Alchemy Basically it converts a byteArray (wav) to a byteArray (mp3) or "mp3encoder.mp3Data" in the code. I have no trouble saving this using a (new FileReference()).save(mp3Data, filename); but because this is being used in a iOS AIR app I wanted to switch to using the File.applicationStorageDirectory so that I could put the saved