apache-flex

StackOverflowError on DataGrid row specific limits in a NumericStepper

萝らか妹 提交于 2020-01-14 03:16:10
问题 I have a DataGrid with a NumericStepper as the item editor for one of the columns. The numeric stepper is supposed to get its max an min values from the data for each row. My MXML is like this: <mx:DataGrid x="0" y="45" width="272" height="525" dataProvider="{dp}" variableRowHeight="true" editable="true" id="equipmentDG" verticalAlign="middle"> <mx:columns> <mx:DataGridColumn headerText="Benämning" headerStyleName="gridheader" fontSize="12" width="128" dataField="name" editable="false"/> <mx

flex chart hide a datatip

无人久伴 提交于 2020-01-13 19:42:08
问题 We get data from multiple feeds and data may or may not exist for a certain date. So, for points that have no data we send NaN. Question: In the below code , is there a way to not show datatip for those that are null. I have added a datatip function but it does show a small empty square, is it possible to not even show that? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script><![CDATA[ import mx.charts.HitData; import mx.collections

Are Flex charts available in the free Flex SDK?

只谈情不闲聊 提交于 2020-01-13 19:22:23
问题 Hmmmm... It appears that charts are only available through the Flex SDK that comes built-in with Flex Builder. This is a problem, since I want to use Flex 3.3, and Flex Builder came with 3.2. Eclipse is also ticking me off, and I prefer to use a different IDE (FlashDevelop). Any way around this? And is there anything else that isn't included the the free SDK that I should be aware of? 回答1: The charts are only available with the professional Flex Builder plugin. If you have a FB license,

Webservice.wsdl and credentials

限于喜欢 提交于 2020-01-13 14:54:11
问题 So I've got a bit of an issue I'm trying to work through. Perhaps some Flex guru could assist? I have a WebService instance that attempts to load a WSDL file from our JBoss Application Server. If I do something like this: webService = new WebService(); webService.destination = WebService.DEFAULT_DESTINATION_HTTP; webService.wsdl = "http://<removed>/services/ApiService?wsdl"; webService.loadWSDL(); everything works fine. The WSDL is loaded successfully and the application can invoke methods

Alternatives to swfobject for embedding flashplayer

对着背影说爱祢 提交于 2020-01-13 13:52:31
问题 Does anybody know if there's a better alternative to swfobject? I actually like swfobject, I just wanted to hear if anybody found something better. Or maybe it is the best way. If you do not know swfobject you can find it here: http://code.google.com/p/swfobject/ 回答1: It is the best way I know of, and I have never had a problem with it. Note that you cannot put JS in embed code for posting on some social networking sites such as Facebook. In those cases you will need to use the usual object

Disable roll-over color for List or DataGrid components

匆匆过客 提交于 2020-01-13 11:23:22
问题 I want to get rid of the typical Flex roll-over color in list-based components, and to display my own style of roll-over rendering. Setting useRollOver to 'false' is not an option , since disabling that will also make the List.isItemHighlighted() function to always return false. My custom renderer relies on that function. Can it be so hard? Is there no way of setting that roll-over color to transparent? Is there some other way for my renderer to figure out if an item is highlighted? Thanks!

Flash duplication of an Object - Cloning library?

Deadly 提交于 2020-01-13 11:14:52
问题 This is probably a very simple question, I just don't have the foggiest how to go about it. I have an Object that I want to duplicate, and don't know how to go about it. Here's my attempt: var myObj = new ObjectClass(); var duplicate = myObj; duplicate = null; myObj.function(); // Error: Null reference The ObjectClass is very large, inherets and creates children of it's own, and I'm sure there's probably a few singleton classes in there. Is there a way to duplicate something easily? Edit:

Flash duplication of an Object - Cloning library?

时光总嘲笑我的痴心妄想 提交于 2020-01-13 11:14:00
问题 This is probably a very simple question, I just don't have the foggiest how to go about it. I have an Object that I want to duplicate, and don't know how to go about it. Here's my attempt: var myObj = new ObjectClass(); var duplicate = myObj; duplicate = null; myObj.function(); // Error: Null reference The ObjectClass is very large, inherets and creates children of it's own, and I'm sure there's probably a few singleton classes in there. Is there a way to duplicate something easily? Edit:

Spark datagrid with checkbox does not update correctly

孤街醉人 提交于 2020-01-13 07:19:27
问题 The checkboxes are updated correctly when I select one or more datagrid rows but when I select a checkbox for the first time the checkbox does not refresh until the pointer moves out of the datagrid row. How can I fix this? <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <s:DataGrid id="dg" x="344" y="48" selectionMode="multipleRows" requestedRowCount="4"> <s

KEY_UP event of ctrl key blocks KEY_UP event of 'c' key

十年热恋 提交于 2020-01-13 05:59:47
问题 I am trying to capture Ctrl + C . I have noticed that many times, there is no KEY_UP event for C key. I believe it happens in cases KEY_UP event for C key should be thrown just before or after KEY_UP event for Ctrl key. Why does this happen? How can I catch the KEY_UP for C key? 回答1: Everything works fine: <?xml version="1.0" encoding="utf-8"?> < s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx