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
15
votes
5 answers

Flex - How to change open DropDownList height

Using FB4, I want to change the height of an open spark DropDownList. By default, it shows up to 6 items before scrolling. My dropdownlist contains 7 items, so I want to change the height of the open dropdown list to fit all 7 items without…
Travesty3
  • 14,351
  • 6
  • 61
  • 98
14
votes
7 answers

Disable Flex CSS type selector warning?

I'm building a somewhat large Flex project that includes several modules (a single Flex project that produces multiple SWFs) Right now, I have a single css file, being loaded in the main SWF tag:
davr
  • 18,877
  • 17
  • 76
  • 99
10
votes
5 answers

spark form item gap in Flex

Is there a way to change the space between a spark form item and its content(textinput, conbobox)? I already set to 0 the "gap" property of the form, but still there is a lot of vertical space left between the form inputs.
cili
  • 1,037
  • 2
  • 19
  • 34
9
votes
1 answer

Spark lifecycle changes between Flex 4.5 and 4.6

I have recently migrated some of my projects to the shiny new Flex 4.6 SDK. I wasn't expecting much trouble since it was only a minor release. But as a matter of fact I got hundreds of errors all over the place. These errors would mostly come from…
RIAstar
  • 11,912
  • 20
  • 37
8
votes
2 answers

Flex 4 Label and Selection

I am displaying data in spark Labels. Now I find that the user cannot select and copy the displayed text. The docs don't show what needs to be done (mx.Label allowed this but a spark label does not). So what's the solution? How can I allow users to…
Mohith Thimmaiah
  • 857
  • 1
  • 9
  • 21
8
votes
1 answer

What's the deal with Halo and Spark in Flex 4?

I used Flex 2/3 for a couple of years and have just come back to it, upgrading to Flex 4. I'm seeing some references to Halo and Spark themes but I never got into themes in my previous work so I'm a bit confused what's going on. Am I correct that…
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
8
votes
1 answer

Warning: CSS type selectors are not supported in components 'sparks.component.TextInput'

I am trying to do a simple CSS declaration. However, I have got the warning above and not sure how to solve it. I thought s|(type) should declare the style for me. @namespace s "library://ns.adobe.com/flex/spark"; …
FlyingCat
  • 14,036
  • 36
  • 119
  • 198
7
votes
1 answer

parentApplication and FlexGlobals.topLevelApplication in Flex 4

In Flex 4, are there any differences between parentApplication and FlexGlobals.topLevelApplication? Are referring to the same top level application? I think both are same; one (parentApplication) belongs to Spark and the other…
Vijey
  • 6,536
  • 7
  • 43
  • 50
7
votes
3 answers

Why use s:Line instead of mx:HRule?

When using a mx:HRule or mx:VRule, Flash Builder suggests using a s:Line instead. Why would I want to write stuff like this : instead of How do I get relative sizes ?…
i.am.michiel
  • 10,281
  • 7
  • 50
  • 86
7
votes
2 answers

Flex Spark List Mouse Wheel Scroll Speed

I have a component extending a Spark List, and when I scroll using the mouse wheel it scrolls too much in one go. I have tried looking for the handler that deals with mouse wheel scrolling in the List class and VerticalLayout class to override but I…
Heather Roberts
  • 1,978
  • 1
  • 24
  • 33
6
votes
2 answers

Flex 4 Spark component Panel - Hide Title Bar

I have used Spark panel to display the object inside a container. The panel and the inside elements are created dynamically. (using ActionScript). I need to remove the title bar of the panel in actionscript. When I tried to remove that, I am unable…
Srinivasan
  • 433
  • 3
  • 8
  • 20
6
votes
3 answers

Change color of a Flex 4 spark Button

Is there an easy way to change the background color of a Flex 4 spark Button without messing with skins? UPDATE: ok, figured it out, simply set the chromeColor attribute of the Button mxml.
at.
  • 50,922
  • 104
  • 292
  • 461
5
votes
3 answers

Programmatically close an AIR application

I would like to know the correct way to close an AIR application programmatically. In my Spark WindowedApplication I have: this.addEventListener( Event.CLOSING, shutdownApp ); and of course an implementation of the shutdownApp method (which…
Phil
  • 1,897
  • 4
  • 25
  • 48
5
votes
1 answer

How to add an image at a specific location in Flex/Spark TextArea or TextFlow

I have a Spark TextArea: Lorem ipsum etc.
selfsimilar
  • 1,397
  • 2
  • 18
  • 31
4
votes
1 answer

Setting text color of spark.components.Label

I have this very simple custom component, made out of two Labels: _left and _right. It should represent several kinds of score in a game: 1.2.3.4.5.6 The last number ("6" in the above example) should be in bold font if it has just changed (in the…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
1
2 3
34 35