air

Change A Character In A String Using Actionscript

混江龙づ霸主 提交于 2019-12-19 20:01:42
问题 What is the opposite of String.charAt() ?? If I Have a string: var Str:String="Hello World"; How do I change the 5th character, for example, from a ' ' to an '_'? I can GET the 5th character like this: var C:String=Str.charAt(5); But how do I SET the 5th character? Thanks in advance. 回答1: There are many ways to skin this cat. One, off the top of my head, would involve String.substr: var Str:String="Hello World" var newStr:String = Str.substr(0,5) + "_" + Str.substr(6); or, the same as above,

Change A Character In A String Using Actionscript

扶醉桌前 提交于 2019-12-19 20:01:06
问题 What is the opposite of String.charAt() ?? If I Have a string: var Str:String="Hello World"; How do I change the 5th character, for example, from a ' ' to an '_'? I can GET the 5th character like this: var C:String=Str.charAt(5); But how do I SET the 5th character? Thanks in advance. 回答1: There are many ways to skin this cat. One, off the top of my head, would involve String.substr: var Str:String="Hello World" var newStr:String = Str.substr(0,5) + "_" + Str.substr(6); or, the same as above,

as3 Air browse for file on sd card?

为君一笑 提交于 2019-12-19 11:58:35
问题 Looking to be able to have access to browse and select a file from the users phone using as3 air. This code only pops up an upload box and says "No Files were found". But I know I have a zip on my phone so it must not be choosing the right folder path. How can I change that to make it access the entire phone? function unzip_init():void{ fileFilter = new FileFilter("selected your zip file.", "*.zip; *.gz2; *.bz2;"); file = new File(); //file.browseForDirectory("Choose a directory"); // Only

Can Adobe AIR applications execute processes on the local client machine?

喜你入骨 提交于 2019-12-19 08:57:06
问题 I want to be able to launch a third party process from within an Adobe AIR application (actually a command line process). Is there a security context that AIR apps run in that prevents this? 回答1: Two of the most requested features for Adobe AIR have been the ability to launch native executables from an AIR application, and the ability to integrate native libraries into an AIR application. Unfortunately, neither feature is included in Adobe AIR 1.0. However. Check out: This blog post Airaveer

Building Cross Platform app - recommendation

岁酱吖の 提交于 2019-12-19 07:56:59
问题 I need to build a fairly simple app but it needs to work on both PC and Mac. It also needs to be redistributable on a disc or usb drive as a standalone desktop app. Initially I thought AIR would be perfect for this (it ticks all the API requirements), but the difficulty is making it distributable, as the app would require the AIR runtime to be installed to run. I came across Shu Player as an option as it seems to be able to package the AIR runtime with the app and do a (silent?) install.

How to listen for both tap and gestures at the same time in Adobe AIR for iOS?

允我心安 提交于 2019-12-19 04:12:29
问题 I am making an iOS game and I need a detection for both simple tapping and gestures (swipe etc) simultaneously . In AIR, I can only see one setting for the Multitouch input mode: TOUCH_POINT (which works for basic tapping) and GESTURE. But I need both at the same time so changing the mode isn't an option. How can I listen to both at the same time? Thanks, Can. 回答1: You can use standard mouse events for tap. This would maintain gesture multitouch input mode. Otherwise, Gestouch framework: NUI

Flash Builder 4.5: s:WindowedApplication does not initialize

北慕城南 提交于 2019-12-19 03:56:49
问题 There is a really similar question here, but the provided answer does not work for me. This is what I'm doing: Create a Flex (airTest) project and chose Desktop as application type using 4.5 SKD. Add a Button to the main application and change the background color. Compile the project. I don't see anything. I have to kill adl from the Task Manager. If I go and edit the airTest-app.xml and change the visible from the default to true, when i compile i get to see the chrome with the correct

AdvertisingIdClient.getAdvertisingIdInfo(context) is thworing NoClassDefFoundError

拟墨画扇 提交于 2019-12-19 03:39:18
问题 I am trying to use AdvertisingIdClient to fetch the advertisement id of my AIR app. So i did like A dvertisingIdClient.Info adInfo = AdvertisingIdClient.getAdvertisingIdInfo(context) . I am not getting any compile time error. I generated ANE from this. When control encounters this statement, it immediately throws NoClassDefFoundError . I am not getting what exactly is happening. Here is my extension code public class GetAdvertismentID implements FREFunction { @Override public FREObject call

Shared secret with API in an Ajax Adobe AIR app

£可爱£侵袭症+ 提交于 2019-12-19 03:39:05
问题 I'm pretty new to developing AIR apps, so maybe this is a dumb question, but I can't seem to find any answers from google. Any help you can give me is greatly appreciated. I'm building an AIR app with Ajax using an api that is identical to flickr's Api, with a shared secret key. The problem is that the air installation package contains all the source and I don't want to give away my shared secret. Is there any way to do this? Can I hide some source, or somehow include this shared secret

How to restart a standalone Adobe Air/Flex application

99封情书 提交于 2019-12-19 03:14:43
问题 How can I get a standalone Adobe Air/Flex application to restart itself? It doesn't work with the suggested solution on: http://www.colettas.org/?p=267. Any help would be great, Thanks. 回答1: package { import mx.core.Application; import mx.core.WindowedApplication; import adobe.utils.ProductManager; public function reboot():void { var app:WindowedApplication = WindowedApplication(Application.application); var mgr:ProductManager = new ProductManager("airappinstaller"); mgr.launch("-launch " +