air

actionscript3 calculator sound playing

会有一股神秘感。 提交于 2020-01-16 09:44:13
问题 I'm trying to make a math app using as3 in air for android. I have many frames with some stuff like stop(); QuestText.text = "0+2" Button1.LabelText.text = "6"; Button2.LabelText.text = "2"; Button3.LabelText.text = "0"; And I have some sounds: From 1.mp3 to 20.mp3 and plus.mp3 with minus.mp3 var DigitSound0:Sound = new Sound(); var DigitSound1:Sound = new Sound(); var DigitSound2:Sound = new Sound(); var DigitSound3:Sound = new Sound(); var DigitSound4:Sound = new Sound(); var DigitSound5

How do I exit (or suspend) a Flex 4.5 IPhone Application through code?

安稳与你 提交于 2020-01-15 23:41:33
问题 NativeApplication.nativeApplication.exit() does not seem to work on IOS and I'm in a position where if a certain error code is I'd like to either be able to shutdown and restart my applicaiton. 回答1: You are not able to shut down and then restart your application on iOS. You can quit your app, but not restart. 回答2: You can't ( as far as I know ) exit an iPad application, but you can crash it! There's other ways of going about it, but the general idea is to keep taking more memory until iOs

How To Build A Modular AIR Application With FDT 5.5

自闭症网瘾萝莉.ら 提交于 2020-01-15 12:38:05
问题 Now that FDT no longer supports fdt.launch.Application from AIR projects, how do you go about building modules for an AIR application? You can't just create multiple AIR launch configs because almost all the properties are set in the project properties rather than the launch config. Do I really have to create a new project for each module? Having 20 projects for one application seems awfully messy when you used be able to use one project and one Ant script. Here's a link to a sample build.xml

Flex 4.6 AIR 3.2 TextInput artifacts

我怕爱的太早我们不能终老 提交于 2020-01-15 12:37:05
问题 I'm testing simple TextInput functionality in flex 4.6 + air 3.2 mobile application and observing strange artifacts when soft keyboard resizes the view. Here is appearance: before soft keyboard is popped out and after. As you can see Flex has resized the view so that soft kb would with with the TextInput visible. But this is causing erasures artifacts in all TextInputs! Is this a bug? Where in Flex or AIR? Any suggestions how to fix this? Thanks! 回答1: By default, Flex 4.6 uses StageText in it

Dynamically changing the referenced XML file in Flash AS3?

拈花ヽ惹草 提交于 2020-01-15 11:58:26
问题 Basically I have media being parsed and played by reference of an XML document using AS3. These media files are gonna be seperated into seperate XML files then what I was planning was to just dynamically change which XML file is being referenced. Problem is, the code only fires once on frame 2 and I can't seem to figure out how to switch out the XML file for a different one upon an event trigger. "new URLRequest(www.blah.com/theotherXMLfile.xml)" isn't working...do I need to reload a whole

Using the Menu, Back, Home buttons with AIR for Android, Flash CS6

北慕城南 提交于 2020-01-15 07:53:06
问题 I am looking to utilize and/or disable the hard "Home", "Back", "Menu" and "Search" buttons that are present on most Android phones and honestly don't know where to start. Using Flash Professional CS6 AIR for Android. I apologize if this is already answered somewhere but I cannot find any information on how to do this. Thank you in advance for all the help. 回答1: Looks like you can stop the default behavior of the back, search, and menu soft keys but not Home: http://www.adobe.com/devnet/air

Saving string to text file in AS3

让人想犯罪 __ 提交于 2020-01-15 05:46:39
问题 I have a function for writing String to a text file. It works, but for some reason (encoding?) it adds some weird data to the beginning of the file. Here is the relevant code: var file:File = new File(OUTPUT_FILE_NAME); var stream:FileStream = new FileStream(); stream.open(file, FileMode.WRITE); stream.writeUTF("Hello World!"); stream.close(); When I open the file in Notepad++, it shows this: What am I doing wrong? 回答1: use this stream.writeUTFBytes("Hello World"); instead of stream.writeUTF(

Saving string to text file in AS3

随声附和 提交于 2020-01-15 05:46:06
问题 I have a function for writing String to a text file. It works, but for some reason (encoding?) it adds some weird data to the beginning of the file. Here is the relevant code: var file:File = new File(OUTPUT_FILE_NAME); var stream:FileStream = new FileStream(); stream.open(file, FileMode.WRITE); stream.writeUTF("Hello World!"); stream.close(); When I open the file in Notepad++, it shows this: What am I doing wrong? 回答1: use this stream.writeUTFBytes("Hello World"); instead of stream.writeUTF(

Adobe AIR HTML Component - socket.io

风格不统一 提交于 2020-01-15 04:57:30
问题 There is a website I'm trying to load within the HTML component that uses socket.io for some streaming information. It runs perfectly fine outside of AIR but when within the HTML component, the streaming doesn't run. It is streaming from a domain other than itself and I don't have control over either sites. Any ideas on how to get the streaming to work within the HTML component? 回答1: Socket.io uses websockets and unfortunately Adobe AIR's HTMLLoader doesn't support websockets : http://help

Why TLF text works in debug on device mode but not in a release ad-hoc?

帅比萌擦擦* 提交于 2020-01-14 05:26:06
问题 I have created a swf that include text TLF. After that I have loaded it in an flex mobile application. At the beginning I had lot of problems to load it. 1- First because I used Loader and the project was created with Flash Profesional. The best way is load it with ProLoader of flash library included in Flash Professional. 2- One time I finally loaded and tried it in the simulator on desktop I tried it in my iPad in Debug and fast compilation mode. I had the next error: Error #2100: The