Questions tagged [spark-skinning]

New skinning architecture of Adobe Flex 4

Spark skins can contain multiple elements (graphic elements, text, images, and transitions). Skins support states, so that when the state of a component changes, the skin changes as well. Skin states integrate well with transitions so that you can apply effects to one or more parts of the skins without adding much code.

You create Spark skins by either editing an existing skin class or creating a new skin class for a Spark component.

17 questions
5
votes
2 answers

stopping spark streaming after reading first batch of data

I am using spark streaming to consume kafka messages. I want to get some messages as sample from kafka instead of reading all messages. So I want to read a batch of messages, return them to caller and stopping spark streaming. Currently I am passing…
Hafiz Mujadid
  • 1,565
  • 1
  • 15
  • 27
3
votes
1 answer

Flex 4 custom TextInput skin -> new graphical element is darkened for some reason?

Flex 4 / AS3: I made a custom skin for TextInput by selecting New->MXML Skin and choosing 'TextInput - spark.components' as the Host Component. Therefore my starting point was the 'default skin class for Spark TextInput component'. Within the new…
locke
  • 85
  • 2
  • 12
2
votes
1 answer

Make a tab blink in Spark (Flex)

In a Flex 4 app (with Spark components) I have a ViewStack with various screens, and a TabBar to navigate between them. I'd like the screens to be able to "blink" their tab when something happens in them (like Windows task bar buttons). How can I do…
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
2
votes
1 answer

Flex change css properties at runtime

I am developing one dashboard application in flex which is a replica of the flex dashboard. Here there are multiple Panels which are displaying different contents. What i want is whenever user clicks on any particular panel say for example "Yearly…
ATR
  • 2,160
  • 4
  • 22
  • 43
1
vote
1 answer

Flex 4 skins -- when to include Actionscript Styling Code?

When using Flash Builder to create a new component Skin based on an existing Skin, one has the option to include Actionscript styling code or not. Wouldn't this code always be necessary? Here is an example of two people, both of whom have skinned…
Dave
  • 21,524
  • 28
  • 141
  • 221
1
vote
1 answer

Flex mobile Button skinning in ActionScript - multiline labelDisplay

I am working on a Flex mobile application, and have been optimizing its performance on mobile. I have read that skins must be written in ActionScript so I have tried to create my AS ButtonSkin. public class mButtonSkin extends ButtonSkin { …
vvns
  • 3,548
  • 3
  • 41
  • 57
0
votes
1 answer

How to determine if a SkinnableComponent has finished adding parts?

Good day, Does anyone know if there is a way to determine when all the parts of a SkinnableComponent object have been added? The context of this problem is the following: I have a custom skinnable component class which needs to update some of its…
Romi Halasz
  • 1,949
  • 1
  • 13
  • 23
0
votes
1 answer

Flex SkinnableContainer as HGroup?

I have a SkinnableContainer class called: 'GroupNavCustomContainer' that uses a skinClass called 'GroupNavCustomSkin'. The GroupNavCustomSkin is the default one Flex creates for you: (The default skin class for a Spark SkinnableContainer…
Mike6679
  • 5,547
  • 19
  • 63
  • 108
0
votes
1 answer

Adding two icons on left and right on spark button

I want to add two icons on spark button.I am using button skin. But the icons are not coming properly. Do anyone is having any idea? The code is:
monica
  • 1
0
votes
1 answer

Flex 4.5 Tree component

How to add vertical distance between tree header & 1st node of that? How to set the background color of node' label when that node is selected.
Guest
  • 19
  • 5
0
votes
1 answer

customized TabBar buttons flickering on mouseover/mouseout

I am using a custom skin on Flex's TabBar, and specifically the skin the controls ButtonBarButton. The width of the button is a variable size depending on the text it contains, and background of the button is an image that only displays on the…
yovetichg
  • 1
  • 3
0
votes
1 answer

How is the height of a component related to its skin file?

I have a panel with a custom skin whose height is smaller than its hostcomponent's height. When I layout this out in a vgroup, the component's size doesn't reflect the skin's smaller size. Is there a way to completely delegate the size of a…
swidnikk
  • 546
  • 1
  • 3
  • 16
0
votes
2 answers

AS3 syntax to access state color

Say I have this in mxml (sparkskin) : To change color property in AS3 the…
0
votes
2 answers

Error: Skin for xxx cannot be found when adding an IVisualElement obtained from a Flex Module via a custom property

I am attempting to prototype a modular application architecture utilizing the Apache Flex SDK 4.12.1 using Flex Modules. I have the following project structure. CommonLib flex library. This project contains a single file, IPlugin.as as shown…
Ryan Taylor
  • 8,740
  • 15
  • 65
  • 98
0
votes
1 answer

flex 4 skinning button control

i am working on a flash video player, it is having a default skin for control bar. now what i need to do is, to change the skin of the player mainly control bar with the background image/color . any suggestions
Abuzer Firdousi
  • 1,552
  • 1
  • 10
  • 25
1
2