apache-flex

a question about parsing xml file in Flex

烈酒焚心 提交于 2019-12-20 04:56:31
问题 I am faced with a small project now,in which I have to present a peoridic table to the user.However,it is bit more complicated than just a pure peoridic table image file.Let me break it down a bit: 1.In the same folder,there is an xml file,which have the following format: <constraints> <element> <name>Calcium</name> <abbreviation>Ca</abbreviation> <emissions> <wavelength>118</wavelength> </emissions> <standards> <concentration>0.01</concentration> <concentration>0.1</concentration> <

Determining linkage dependencies in Flex applications

不羁的心 提交于 2019-12-20 04:55:25
问题 I have a large Flex project with two Applications in it. A lot of code is shared between these Applications. However, the smaller of the Applications does not require much of the code that the larger one does. I'm trying to ensure that code that isn't required by the smaller application isn't getting compiled into it. Is there an easy way for me to determine which files within my project are being compiled into a particular Application? 回答1: Ah, I managed to discover the solution to this

Is there a way to listen for events on the pop up manager class?

梦想的初衷 提交于 2019-12-20 03:43:18
问题 I'm trying to detect when pop ups are visible (including tool tips if possible). The reason is that I need to hide or freeze (capture a snapshot) the Stage* components (StageWebView, StageVideo, StageText etc) when pop ups appear. 回答1: There's no really easy way to achieve this. What you can do is this: create a custom popupmanager make it dispatch events on the Application, so you can listen anywhere tell Flex to use your class instead of the default implementation Create a custom

Receive audio file with servlet

本小妞迷上赌 提交于 2019-12-20 03:40:16
问题 Brief Story: I have a Servlet which receives a request (getContentType() = audio/x-wav) that I can't read. I need to read this wave and save it on the server side. Detailed Story: I know nothing about Flex, javascript, PHP and Python, I want to record (from the client side "Browser") a wave file and send it to the server to save it (for further ASR processing). After some searching I found a library called Wami-Recorder (uses flex and java scrip) which I already used, but it didn't give me

Loading flex modules compiled with Flex 4 SDK into an application compiled with Flex 3.5

旧时模样 提交于 2019-12-20 03:38:15
问题 I am working on a feature for an application that requires Flex 4 functionality. Due to some migration issues of the application from Flex 3.5 to 4.0, I have decided to implement this feature as a module that is compiled with Flex 4.0. The theory is that the application would remain compiled in Flex 3.5 and load the module when it needs it. Here is the module loading code: public function loadDiagModule():void { var moduleLoader:ModuleLoader = new ModuleLoader(); moduleLoader.url = "module

save image in a directory in applicationStorageDirectory

為{幸葍}努か 提交于 2019-12-20 03:34:09
问题 I was trying to save an imagefile to a directory in applicationStorageDirectory of my air project. Created the directory first var imageDirectory:File = File.applicationStorageDirectory.resolvePath("vispics"); if (imageDirectory.exists) { Alert.show("Directory Already Exists"); } else { imageDirectory.createDirectory(); Alert.show(imageDirectory.nativePath); } The next part is saving image from my cam right now it saves to the applicationStorageDirectory. Here is how i do it var randInt:int =

What's the best way to share data between components in Flex?

痞子三分冷 提交于 2019-12-20 03:21:53
问题 I have a Flex application that I'm working on for a new job. It's sort of a training wheels application -- I'm learning the language, and this isn't an app that needs to talk to a service in order to do its job. There are a few instances of combo boxes throughout the application that share the same set of possible values (say, a selection of states: "In Progress", "Rejected", "Complete") that I want to have use the same data source. What is the best way to manage this? 回答1: MVC architecture .

What's the best way to share data between components in Flex?

坚强是说给别人听的谎言 提交于 2019-12-20 03:21:23
问题 I have a Flex application that I'm working on for a new job. It's sort of a training wheels application -- I'm learning the language, and this isn't an app that needs to talk to a service in order to do its job. There are a few instances of combo boxes throughout the application that share the same set of possible values (say, a selection of states: "In Progress", "Rejected", "Complete") that I want to have use the same data source. What is the best way to manage this? 回答1: MVC architecture .

ActionScript MXML <mx:> vs <s:>

≡放荡痞女 提交于 2019-12-20 02:34:27
问题 Looks like I can use components for both <mx:> or <s:> . So, which has more advantages? 回答1: As other posters have mentioned, the spark (s:) namespace refers to the new components introduced with Flex 4, while the halo/mx (mx:) namespace refers to the older components. They can be used together, which is necessary since there are not spark equivalents for all of the mx components (notable omissions are DataGrid, Tree, DividedBox, among others.) Some of the motivations for the new spark

Flex: HTTP request error #2032

不羁的心 提交于 2019-12-20 02:04:24
问题 In Flex 3 application I use HTTPService class to make requests to the server: var http:HTTPService = new HTTPService(); http.method = 'POST'; http.url = hostUrl; http.resultFormat = 'e4x'; http.addEventListener(ResultEvent.RESULT, ...); http.addEventListener(FaultEvent.FAULT, ...); http.send(params); The application has Comet-architecture. So it makes long running requests. While waiting a response for this request, other requests can be made concurrently. The application works in most cases.