apache-flex

How do I maintain selection in a DataGrid when the data changes?

ぐ巨炮叔叔 提交于 2019-12-13 14:58:49
问题 I have a DataGrid and I set the DataProvider to my data. When my data changes the DataGrid loses the selected row and the scroll bar jumps back to the top. How do I maintain the selection and scroll position? 回答1: If you just want to maintain position: in whatever function is changing the data, first capture the selected index var myidx:int = new int(myDG.selectedIndex); and the scroll position var myVertPos:int = new int(myDG.verticalScrollPosition); run the code that changes the data then

Flex faultCode list

送分小仙女□ 提交于 2019-12-13 14:14:03
问题 Is there a list of possible faultCode values for Flex's Fault object (mx.rpc.Fault; Flex SDK: 3.4)? At least faultCodes for faults generated on the client side? I'm thinking of something like the list of possible runtime errors, found at Adobe's RTE List, but for faultCodes (such as Client.Error.MessageSend, Server.Processing, etc). Could very well be that I just don't understand my problem well enough to do a decent search, but I've come up with nothing all day. It may also be that there is

ApplicationDomain clarifiation needed

若如初见. 提交于 2019-12-13 14:06:23
问题 I need some clarification on this subject as I just ran into an issue with loading swfs into a reused loader object. So lets say I have 3 SWFs. Main.swf childA.swf childB.swf Main.swf has a loader object in it that gets reused (myloader.load("childA.swf")) and childA or childB swf will be loaded via user interaction. Both child swfs have a com package with a class in that package called config. The config files are different files for both classes just named the same. both child swf also

Commit new value from itemEditor before itemEditEnd event

给你一囗甜甜゛ 提交于 2019-12-13 13:12:36
问题 I have a DataGrid, with itemEditor as NumericStepper in a few columns. When a value in the DataGrid is edited, I would like to update several values displayed on the screen, and so want to call a updateValues() function. First, I added this function to itemEditEnd event of the DataGrid , but the function is getting called before the new value is updated into the dataProvider and hence, the values I have in the function are the old values. Is there any other event that is fired after the

OpenLaszlo kills some mouse events of a loaded Flex application

左心房为你撑大大i 提交于 2019-12-13 12:37:42
问题 This is a question about OpenLaszlo (or rather Flex?) internals: I was able to load a full Flex application swf into a OpenLaszlo (trunk release, older releases failed). It works in Flash 10 as well as in 11. But OpenLaszlo seems to capture or block certain mouse events. When I add the SWF into YFilesSWF.content.sprite (YFilesSWF is extending the window class) then most mouse actions work (e.g. Flex buttons), but some don't (some clickable items on a kindo f canvas). I observed further that

Flex Profiler - Alternative?

笑着哭i 提交于 2019-12-13 12:31:04
问题 Question Is there an alternative (free) tool for profiling flex applications that will show things like memory use, function calls, execution times, object allocations, etc? Background Flex has a built-in profiler but it requires a Premium license. At work, we currently have standard licenses. We will upgrade to premium but that process will take months. This week, there is an immediate need to improve performance and eliminate bottlenecks and memory issues. We've done as much as we can "by

What is the relationship between Flex, Flash and ActionScript 3.0

孤人 提交于 2019-12-13 11:53:59
问题 I'm working on a project that uses ActionScript 3.0 with Flex SDKs. The project is built using the Eclipse IDE. I wonder if the Flex SDKs are used to support ActionScript 3.0 in Eclipse? What is the relationship between ActionScript 3.0 and Flash? 回答1: Its a good question, and one of which many people tend to be confused with. - Flash The all singing, all dancing graphics and vector stuff you'll be aware of - This is primarily deemed as the visual stuff. When you open Adobe Flash, its an

Flex 4 Itemrenderer for List

北慕城南 提交于 2019-12-13 11:26:12
问题 I just started working with Flex. I know it's pathetic but it's a long story. Now, the problem I am facing is that I have a list component which has a dataprovider on it. What I would like to do is when an item on the list is clicked I would like to have a check sign right next to the label. Below is the component: <s:List id="tabList" width="100%" borderVisible="false" click="tabList_clickHandler(event)" selectedIndex="{this.hostComponent.selectedIndex}" itemRenderer="MultiTabListRenderer" /

Flex - Search/Filter DataGrid by Text Input

允我心安 提交于 2019-12-13 10:25:52
问题 I’m using a filter setup that I found online and I’m having trouble filtering my mx:DataGrid using three components – comboBox, checkbox and text input. The checkbox and comboBox are working properly with my IFilter interface and Filter class, but I’m unable to get the search input working correctly. Here’s of the code from the source files package com.daveoncode.filters { //Defines a common interface that must be implemented by all the filters. public interface IFilter { function apply(item

Changes to skin in SDK path not taking effect?

大城市里の小女人 提交于 2019-12-13 09:47:08
问题 I'm using the SparkChromeWindowedApplicationSkin in my Window Application and I'm making changes to the skin in the SDK directory but none of my changes are taking effect. I set the skin in my CSS like this: s|WindowedApplication { backgroundAlpha: 1; backgroundColor: #FFFFFF; resizeAffordanceWidth: 6; skinClass: ClassReference("spark.skins.spark.SparkChromeWindowedApplicationSkin"); } Then I control + click on the skin name and it opens the file. I then change some of the styles and