apache-flex

http 406 error on restful web service

喜夏-厌秋 提交于 2020-01-07 02:22:08
问题 I have Spring MVC + JAXB web service and Flex client. I am getting HTTP 406 error when using RestFUL API. Here is request and response headers on image: Can you help me for solving this problem? 回答1: This problem comes when the data returned from the server is not in the format that is excepted by the browser. Also this can be caused by any one of the following: Accept : The MIME types accepted by the browser. For example, HTML files, GIF files etc. Accept-Charset : The character sets

Access XML nodes with integer names

最后都变了- 提交于 2020-01-07 02:18:28
问题 For my application, I make an HTTPRequest, and get back some XML served from a JSP. That XML has some (yes, I'm aware this is invalid/improper XML. If I can't find a bandaid, I will try to address that internally) nodes with integers as names, say <2> for example. When I attempt to access it, using myXMLVariable.child("2") , it returns the third (index=2) XML node instead. I understand that this behavior is "correct". Is there any way to get around this behavior? Example var myXML:String = "

Random Errors in ActionScript - Memory overflow?

戏子无情 提交于 2020-01-06 21:21:23
问题 We're developing an InDesign CS6 Extension with Adobe Flash Builder 4.6. I got strange errors in a JavaScript Injection, so I converted the JavaScript to Action Script and put it directly into my code. But the errors continue to appear. This is the code: var pageItem:PageItem = (component as BaseComponent).pageItem; var frame:Frame = new Frame(pageItem); var itemIsHidden:Boolean = !pageItem.visible; var tempFile:File; var container:Rectangle = InDesign.app.activeDocument.rectangles.add

Advantages of Migrating Flex3 App to Flex4

寵の児 提交于 2020-01-06 21:05:15
问题 What are the advantages of migrating a Flex 3 app (Java backend, BlazeDS, Spring, Hibernate) to Flex 4? One of the biggest advantages of Flex 4 is design. Assuming that design / UI isn't a big driver for the business right now as compared to performance, what are the other factors we can highlight? We have implemented Cairngorm and Swiz on the App (with a gradual "roll out" of Cairngorm planned for the future). Any opinions? Thanks, Sri 回答1: Swiz AND the annoying car-horn? I absolutely love

Advantages of Migrating Flex3 App to Flex4

半城伤御伤魂 提交于 2020-01-06 21:03:21
问题 What are the advantages of migrating a Flex 3 app (Java backend, BlazeDS, Spring, Hibernate) to Flex 4? One of the biggest advantages of Flex 4 is design. Assuming that design / UI isn't a big driver for the business right now as compared to performance, what are the other factors we can highlight? We have implemented Cairngorm and Swiz on the App (with a gradual "roll out" of Cairngorm planned for the future). Any opinions? Thanks, Sri 回答1: Swiz AND the annoying car-horn? I absolutely love

Upload file on server through rtmps+java

守給你的承諾、 提交于 2020-01-06 20:02:16
问题 I need to upload file on server through flex GUI which send file on server with using rtmps protocol. I tried to send on server just FileReference and request has performed, but on server side i got only empty ObjectMap. I know that I can user URLRequest, but I need exactly rtmps request. My Flex code: public function uploadFile(file:FileReference):void{ NetConnection nc = new NetConnection(); nc.client = this; nc.proxyType = "best"; nc.connect(connectionURL, "3.0", "userName", "password");

Flex 4.5 How do you check for JSON child node key existence (using hasOwnProperty or other methods)

筅森魡賤 提交于 2020-01-06 19:50:28
问题 How do you check for JSON child node key existence using hasOwnProperty (or other methods) in Flex 4.5? The hasOwnProperty method can check for JSON key existence but this seems to only work with top level nodes in a JSON, and not the child nodes. For example, if you have JSON structure like this (in a readable form, sans the JSON syntax), you can check for the existence of callresponder.lastResponse.hasOwnKey("Location") , but there seems no way to check for Location.VenueName for example or

How can I create a custom MXAdvancedDataGridItemRenderer in Flex4?

旧巷老猫 提交于 2020-01-06 19:35:07
问题 Well, I created one but it has a bunch of issues: if I click in the rendered column I get an error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Test/clickHandler()[C:\Documents and Settings\NDEGRAEV\workspace-dummy\Test\src\Test.mxml:27] at Test/___Test_AdvancedDataGrid1_click()[C:\Documents and Settings\NDEGRAEV\workspace-dummy\Test\src\Test.mxml:31] the text is stuck to the top left corner of the cell; the cell's background doesn't change to the

ReferenceError: Error #1065: Variable is not defined when searching for a node by attribute

a 夏天 提交于 2020-01-06 19:27:17
问题 I've done this lot of times, but now I'm missing something.... I'm searching for a node by looking for a value in an attribute. If I try to trace: xmlQuestStructure.page[activePageIndex].label.@priority The trace it's ok, and I can read High, Medium, Low (the values I'm expecting). But if I try to trace this (where calculatedPriority is a String with value High, Medium or Low) xmlQuestStructure.page[activePageIndex].label.(@priority == calculatedPriority) I get ReferenceError: Error #1065:

Flex DataGrid column sort descending not working

夙愿已清 提交于 2020-01-06 18:07:15
问题 I'm having a strange problem. In Flex 4, I have a Spark DataGrid and have both an item renderer and a sort compare function defined for one of the columns. Strangely, this column will not sort in descending order. The data is originally not sorted. Clicking on the column header displays the "up" arrow and the data sorts in ascending order. However, clicking on the column header again does nothing. The "up" arrow stays and the data stays sorted in ascending order. I have debugged through the