air

Netstream video not playing on iPad

£可爱£侵袭症+ 提交于 2019-12-25 05:04:31
问题 I am building an iPad app using Flash CS6 to compile to AIR 3.3 on a PC. One of the app requirements is a video player which can be overlaid with other display element - primarily for subtitles. I am using Netstream to play MP4 video (have also tried FLVPlayer with same results). Everything works fine when compiled to run in the emulator, but the video doesn't play once installed on my test device - iPad 3. (I did a simple test a few months ago and got video playing correctly with audio, but

Adobe AIR for Android Hello World

社会主义新天地 提交于 2019-12-25 04:24:20
问题 Apologies in advance for asking such stupid questions, but: In Workflow for creating AIR applications for mobile devices, they say to Create an AIR application descriptor file (using the 2.5, or later, namespace). Compile the application. Package the application as an Android package (.apk). What do they mean by an AIR application descriptor file? Do they mean application.xml? What do they mean by the 2.5 namespace? I see application xmlns="http://ns.adobe.com/air/application/2.0" in

Saving and masking webcam still AS3 AIR IOS

萝らか妹 提交于 2019-12-25 04:01:13
问题 I am aiming to create an application where the user can take a picture of their face, which includes an overlay of a face cutout. I need the user to be able to click the screen and for the application to save the picture, mask it with the same face cutout, and then save it to the applications storage. This is the first time using AIR on IOS with Actionscript3. I know there is a proper directory that you are supposed to save to on IOS however I am not aware of it. I have been saving other

Access system environment variable in AIR?

牧云@^-^@ 提交于 2019-12-25 03:14:56
问题 How can one access a system environment variable in Flex/AIR (say %appdata%, %userdomain%)? 回答1: There is no API that you can use to get a environment variable in Flex/AIR applications. You will have to pass these as (commandline?) parameters to your application. 来源: https://stackoverflow.com/questions/784490/access-system-environment-variable-in-air

Dynamically Casting In ActionScript

泪湿孤枕 提交于 2019-12-25 02:57:15
问题 Is there a way to cast dynamically in Actionscript? What I want to accomplish is illustrated by the following code: var Val:*; var S:String=SomeTextEdit.text; switch (DesiredTypeTextEdit.text) { case 'int':Val=int(S);break; case 'uint':Val=uint(S);break; case 'String':Val=String(S);break; case 'Number':Val=Number(S);break; ... } SomeDisplayObject[SomePropertyNameTextEdit.text]=Val; I am looking for something LIKE the following PSEUDOCODE: SomeDisplayObject[SomePropertyName]=eval(DesiredType)

Adobe AIR lag on high resolution Android devices

对着背影说爱祢 提交于 2019-12-25 02:28:41
问题 I have made an app which works well on iOS but has performance problems on Android. I have noticed that on older devices such as galaxy s2 with a low screen resolution, the app is fine. It only lags on the new hd devices such as the galaxy s4 and nexus 4. Are high screen resolutions causing the devices to lag? Does anyone know what I can do to find out how to fix this? It's really strange because it's only on the new devices. 回答1: Not sure why it is happening on the S4 since it has a decent

Downloading and saving files with AIR for iOs

独自空忆成欢 提交于 2019-12-25 02:25:14
问题 For a project we need to download and save pdf files on an IPAD device for offline use through an AIR for iOs application. After a lot of searching I haven't found much information on this subject. My question is, can it be done, and if so, can you provide us with some pointers to lead us in the right direction. Thanks for your time! 回答1: Sure, first you check if you can access the web - can use a class like air.net.URLMonitor , if you can you can set up a URLStream instance. You get data

FlashBuilder adds INTERNET permission even though it is not in my APP XML when building APK

允我心安 提交于 2019-12-25 02:19:28
问题 I have an Mobile AIR project in FlashBuilder 4.6(Using AIR 3.4) and I am having a real problem publishing an APK. Here is the section from my APP XML: <manifestAdditions><![CDATA[ <manifest android:installLocation="auto"> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/> <uses-permission android:name="android.permission.WAKE_LOCK

IOS AIR app still running when the iphone is locked?

此生再无相见时 提交于 2019-12-25 02:05:59
问题 I just made a simple game with flash professional 6.0 and the adobe AIR 4.4 SDK for iPhone. The problem is that when I lock the iphone pressing the power button, the screen switches off as usual, but the music of the game still sounds. If I exit the game pressing the home button it exits fine. Is only when locking the phone with the app opened. 回答1: Try add listeners for the events Event.DEACTIVATE on your main class and Event.EXITING on NativeApplication.nativeApplication . On the events

AS3: How to Deep Copy an Object

爷,独闯天下 提交于 2019-12-25 01:45:48
问题 i have an object that i need to copy to my SharedObject data. The problem is that the data property of shared object is read-only, so i can't clone my 'source' object and assign it to the shared object data, i have to make a copy of them in this way: var so: SharedObject = SharedObject.getLocal("appData"); copyObject(sourceObj, so.data); so.flush(); and the copy method: public static function copyObject(sourceObject:Object, destinationObject:Object):void{ // this would be the code that i need