apache-flex

Do I use AIR or native code for iOS application?

核能气质少年 提交于 2020-01-07 05:50:08
问题 I have been using Flex for desktop development for years. I'm new to mobile development and need to create an app for the iPhone 6 but have no idea whether I should be using Flex/AIR or native code. The requirements of the iOS app is as follows: Record video to local storage within app Playback video from local storage within app Pause/seek video within app Overlay controls on top of the video such as TextInput, TextArea and DropDownList so user can make notes as video is being recorded Data

Updating an actionscript xml object directly in one line using e4x?

十年热恋 提交于 2020-01-07 04:57:13
问题 Given the following xml: <form> <personalDetails> <name>John</name> </personalDetails> <financeDetails> <income> <salary>1000000</salary> </income> </financeDetails> </form> I know that is it possible to create the above xml as follows (which is very cool): var xml:XML = <form />; xml.personalDetails.name = "John"; xml.financeDetails.income.salary = 1000000; However, what if we do not know the names of the nodes or how many levels exist? We can accomplish this using the method below but it

Flex Webservice and Android

爷,独闯天下 提交于 2020-01-07 04:35:17
问题 I have a problem when I try to access to a webservice from a mobile application. When I try the address of the webservice on my browser, it works, when I try in my application on the emulator of Flash Builder, it works. But when I try it on my phone, it doesn't work! I have access to the web in my application. I just create the webservice in a view in MXML. <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title

2047 Security sandbox violation errors while loading an external swf file into flex from server side

走远了吗. 提交于 2020-01-07 04:18:27
问题 This is my code and i want to place an external swf file for my flex application website. This is my code: var loader:Loader = new Loader(); var url:URLRequest = new URLRequest("http://www.my site.com"); loader.load(url); addChild(loader); If somebody have any help please it will be thankful. Atishay 回答1: I'm not entirely sure what you're asking or what your problem is. It is not possible for a SWF to access content from another domain unless that other domain gives permission. To do that you

How can I add multiple icons to the Spark TabBar control?

旧巷老猫 提交于 2020-01-07 04:09:12
问题 In the MX TabBar component, the iconField property allowed us to display different icons in each tab. In Spark, there does not seem to be an inherent way to add icons to the TabBar. Does anyone have an example of implementing icon support for Spark's TabBar? Is there a way to do this without extending the component? Many thanks! 回答1: Hey after spending a week trying to follow multiple ways, (yours being top of the list) i found out a simpler and effective way to add icons to my tab bar, or

I Need to save xml from Flex to file on server with PHP, which PHP script?

北慕城南 提交于 2020-01-07 03:17:04
问题 I have a Flex app which is taking XML data and posting it to be saved to a file on the server, where it can be read later. Using tip found here on SO, I have the Flex part down (I think), but I am not a PHP programmer so I am unclear as to what should be in the PHP that handles the URLRequest: protected function saveBtn_clickHandler(event:MouseEvent):void { var saveData:XML = new XML(); saveData = myManager.exportFullXML(); trace(saveData); var uploader:URLLoader = new URLLoader(); var data

I Need to save xml from Flex to file on server with PHP, which PHP script?

淺唱寂寞╮ 提交于 2020-01-07 03:15:09
问题 I have a Flex app which is taking XML data and posting it to be saved to a file on the server, where it can be read later. Using tip found here on SO, I have the Flex part down (I think), but I am not a PHP programmer so I am unclear as to what should be in the PHP that handles the URLRequest: protected function saveBtn_clickHandler(event:MouseEvent):void { var saveData:XML = new XML(); saveData = myManager.exportFullXML(); trace(saveData); var uploader:URLLoader = new URLLoader(); var data

Flex SWF Accepting Play or Rewind Command from the Flash Player (Projector)

旧城冷巷雨未停 提交于 2020-01-07 02:58:17
问题 I'm trying to make my Flex SWF act like a Flash movie SWF so that when the user issues the Play command in the FLash Player it can trigger an event in my Flex SWF file. I'm not sure what event this would hook into or if this is possible with Flex. Any help appreciated. Thanks! 回答1: It's not possible to use the 'play' in Flex per say since even though Flash is a frame based VM, Flex is masked against that so that users can use frame based actions. What would be the requirement to have Flex

AS3 audiioencoder to convert to audio

ε祈祈猫儿з 提交于 2020-01-07 02:57:07
问题 In action script how to convert using audio encoder a recorded byte array from microphone to MP3 public var recordedData:ByteArray; recordedData.writeBytes(sample.data, 0, sample.data.bytesAvailable); How to save recordedData to mp3 using audio encoder 回答1: You find yourself an MP3 encoding library that runs in the Flash player. A simple google search finds Shine to be pretty popular. Another option is to stream the audio up to the server and encode there. Depending on your environment, you

Unable to get a saved data in adobe air ELS

丶灬走出姿态 提交于 2020-01-07 02:46:07
问题 I am trying to save and get data from an adobe air application with the following code. buts its just keep alerting only undefined. Can someone find the error? function saveData(n, v){ var bytes = new air.ByteArray(); bytes.writeUTFBytes(v); return air.EncryptedLocalStore.setItem(n, bytes); } function getData(n){ var storedValue = air.EncryptedLocalStore.getItem(n); return air.trace(storedValue.readUTFBytes(storedValue.length)); } saveData('item1', 'value1'); alert(getData('item1')); 回答1: try