Questions tagged [flex-spark]

Spark is the new component skinning library introduced in Adobe Flex 4.

Spark is a library for skinning components in Adobe Flex. Spark supersedes the previous library, Flex MX.

521 questions
3
votes
1 answer

In Flex, is there a Spark equivalent of DividedBox?

I need a kind of DividedBox with Flex (4.6). This is a component where two groups of components are separated by a bar that can be moved with the mouse. The user can hence chose which group can have more space on the screen. Of course, there are…
Vincent Hiribarren
  • 5,254
  • 2
  • 41
  • 65
3
votes
2 answers

Flex: how to control Spark datagrid header-text alignment?

If I have 10 columns in a Spark datagrid, and some headers need to be left-justified, some headers right-justified, and some centered, what's the simplest way to accomplish this? Assuming a custom headerRenderer is needed, are there any simple…
ggkmath
  • 4,188
  • 23
  • 72
  • 129
2
votes
2 answers

How do I get my flex spark skin to center vertically?

I've created a skin that allows me to have two labels on a spark button, but the button text won't center vertically. It stays at the top of the button no matter what settings I give it. The icon in the skin DOES however, center vertically. This is…
RodeoClown
  • 13,338
  • 13
  • 52
  • 56
2
votes
2 answers

Flex 4.5 List - ensureIndexIsVisible error

In my application I have a list of items which can be changed either by clicking on the list, using a next/previous button or via a menu which allows them to jump between items (mainly for the phone version which doesn't display the list). I'm using…
Rjs37
  • 189
  • 1
  • 13
2
votes
2 answers

Flex Spark CurrencyFormatter formats '0' incorrectly

I'm having trouble with a spark CurrencyFormatter, which is failing to format the value 0 correctly. All other values are formatted fine. I'm using Flex 4.5 Here's an example:
Marty Pitt
  • 28,822
  • 36
  • 122
  • 195
2
votes
1 answer
2
votes
2 answers

How do I shrink the default Spark DataGrid row height and keep the text vertically in view

In the Spark DataGrid the default row height is about 22 px. I would like to set the default row height to 18 pixels and I can do this easily enough with the rowHeight property but what happens is when the rowHeight is set to anything less than 22…
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
2
votes
2 answers

null reference when tabbing through elements with a custom spark skin

I've simplified my mxml to just 2 elements, a Button and a CheckBox. The button has a very simple custom skin on it, there are 3 states that are just directly loaded from a swc (BackButtonUp, BackButtonMouseover, and BackButtonClick). Everything…
Tamir
  • 53
  • 5
2
votes
4 answers

Vertical tabs in Flex 4

I would like to have vertical tabs in Flex 4. I have started implementing this by having a vertical list down one side. On list selection I am updating the selection index of a view stack. This gives the functionality of vertical tabs. My problem is…
RNJ
  • 15,272
  • 18
  • 86
  • 131
2
votes
2 answers

Is it possible to style a Spark Button like an old Halo Button? (with CSS only)

I think Adobe are messing with me, from all the docs and tutorials it seems like styling a simple button got much more difficult in Flex 4 (Spark). I used to be able to have my designer create the CSS as it wasn't too far off from web standard CSS.…
kreek
  • 8,774
  • 8
  • 44
  • 69
2
votes
1 answer

How to change the header colour (color) of a Spark DataGrid in Adobe Flex?

Is there a simple way to do this? (Change the colour of the headings in a Spark DataGrid in Adobe Flex. They are black by default) I'm a complete beginner to FlashBuilder / Flex - and can't find any easy solution.
Neal Hudson
  • 231
  • 1
  • 5
  • 17
2
votes
2 answers

disabling few rows in spark datagrid

Is there a way in spark datagrid to disable some rows programmatically, in flex 3, it could be done using the function mouseEventToItemRenderer this way: override protected function mouseEventToItemRenderer ( event: MouseEvent):…
Mansuro
  • 4,558
  • 4
  • 36
  • 76
2
votes
1 answer

Is mx.containers.HDividedBox deprecated in Flex 4.5?

Is mx.containers.HDividedBox deprecated by some spark container in Flex 4.5? I'm new to Flex programming and can't find any spark replacement for it. I want to have 2 Lists separated by movable vertical bar.
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
2
votes
1 answer

Spark list not displaying selection when an item is removed

I have an issue with Spark Lists whereby I am trying to ensure that an item is always selected and ensure that the GUI displays this to the user. The application (full code below) creates a List, a Label and a Button. The Label states what is…
Phil
  • 1,897
  • 4
  • 25
  • 48
2
votes
2 answers

Flex 4.5 - Spark DropDownList - DropDown's minimum width is the anchor's width

I am using spark DropDownLists and I don't want to see any horizontal scrollbars in the dropdown. I'm OK with the dropdown being wider than the anchor, so I have a custom skin that sets popUpWidthMatchesAnchorWidth to false. But I don't want the…
Travesty3
  • 14,351
  • 6
  • 61
  • 98