flex-spark

Adobe Air: drag & drop grouped components

孤人 提交于 2019-12-14 02:28:37
问题 I am trying to create Adobe Air application in which I require the components below: Allow me to elaborate this mockup: There are 2 panels on each side, and the items inside these panels can be drag and drop on each other, just like moving items around in 2 folders. Several tutorials have shown that a list with dragEnabled = "true" dropEnabled = "true" dragMoveEnabled = "true" will do the job. However, here comes the crucial part. I want my item in the list to have such a structure that I

How to make MXML Component Constructor with Arguments? [closed]

不羁岁月 提交于 2019-12-13 06:32:07
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I`m new in flex and could anyone help me? How do I create a constructor that takes arguments for an MXML component? 回答1: You can't; MXML Components do not have constructors that you can modify. You have a few

Flex/FlashBuilder :: Spark List / IconItemRenderer:: Disable Selection Highlight / No Selection / Remove Selection

情到浓时终转凉″ 提交于 2019-12-12 00:05:22
问题 I had trouble removing the selected and down state colors for a spark list using IconItemRender. If you are making a mobile app and using IconItemRender (instead of ItemRenderer) there is no autoDrawBackground property. I figured I'd drop it in here after figuring it out thanks to this page: http://www.sajeevkumar.com/2012/01/08/flex-4-6-list-mobile-iconitemrenderer-background-image/ 回答1: You can do the following to muck around with the down and selected colors. For more control over items in

Hiding a tab in a Spark TabBar

筅森魡賤 提交于 2019-12-11 07:36:59
问题 I have a spark TabBar and I want to hide and show some elements of it from an external user input (namely a checkbox check) I am having trouble changing the tabs visibility. They are currently always shown. Does anyone have any idea? I have seen a getTabAt on the mx TabBar but the look of the tab is important and the requirement is for it to look like a tab bar rather than a button bar. My code for the tabs and for hiding and showing is below: <fx:Script> <![CDATA[ import mx.containers.VBox;

What are the measurable benefits from migrating from Flex 3 to Flex 4?

风格不统一 提交于 2019-12-11 06:25:16
问题 We have a big Flex 3 project with 30 developers. I need to present benefits/costs of upgrading from Flex 3 to Flex 4 and I can't seem to find existing data on Google. I assume I am not the first to do this. Our application is RIA app so it's not a video/custom component heavy. I have these benefits: 1) Right to left native support 2) Smooth Scrolling 3) Two way binding 4) FXG 5) Better state model I need more data about the following: 1) Spark - What are the actual benefit from Spark

Spark SkinnableComponent skinDestructionPolicy

霸气de小男生 提交于 2019-12-11 02:45:13
问题 As a part of trying to tackle a memory leak in our application, we discovered that for every SkinnableComponent , the skinDestructionPolicy is set to "never" by default. This means that when using static skin parts, the skin is forever detained in memory. Furthermore, the override of a partRemoved() in the host component will never be triggered. Hence, event listeners we add in the partAdded() override are not removed, which effectively causes views and skins to be kept in memory. When doing

How to get the visible items on a Spark List with virtual layout

你。 提交于 2019-12-10 11:28:39
问题 I have: an ArrayCollection of Numbers; a List using the above ArrayCollection as it's dataprovider, and virtualLayout=true; a custom ItemRenderer that shows a label with: a) the number b) an y position depending on the number AND the highest number visible In another words, if I have 10 numbers in the AC, and only 5 appear on the screen, the y position of those 5 will depend on the value of the maximum number for those 5. When the user scrolls, of course those 5 elements change so the

How can I show a line under each row of text in a Spark TextArea

人走茶凉 提交于 2019-12-08 08:01:49
问题 I'm trying to show a horizontal line under each row of text in a Spark TextArea. I want to give the text area the look of legal paper. 回答1: Ah actually ran into a similar problem in Flex 3 doing a strikeout for a disabled link-button that was part of our styles. Just checked out the code and looked on the docs for the spark label and found the function I was using from a mx label explicitly says it won't work [from measureText() in spark label]: Measures the specified text, assuming that it

How to get the visible items on a Spark List with virtual layout

╄→尐↘猪︶ㄣ 提交于 2019-12-06 05:49:16
I have: an ArrayCollection of Numbers; a List using the above ArrayCollection as it's dataprovider, and virtualLayout=true; a custom ItemRenderer that shows a label with: a) the number b) an y position depending on the number AND the highest number visible In another words, if I have 10 numbers in the AC, and only 5 appear on the screen, the y position of those 5 will depend on the value of the maximum number for those 5. When the user scrolls, of course those 5 elements change so the position of the label in item renderers will change. My questions: 1) How can I get the list of items that are

What's the difference between the mx/fx/s object types in Flex 4?

岁酱吖の 提交于 2019-12-06 03:44:13
Flex4 provides the following namespaces: xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" What's the difference? Which namespace provide which function? Where can I find info about that? Namespaces allow you to specify to the compiler where to look for the files/classes that you reference in your mxml. There are two different types of namespaces that get used in Flex 4. A language namespace and a component namespace. the http: //ns.adobe.com/mxml/2009 namespace specifies what version of the mxml language gets used.