spark

Find out deselected item in spark list with multiple selection

In a spark list I could use the change event to find out which item has been selected or deselected. The dispatched IndexChangeEvent object has the properties newIndex and oldIndex holding this information. But with multiple selection allowed this doesn't work anymore because newIndex and oldIndex could refer to indices of still selecte...

Conflicts between SWC skin and Spark drawing API

I have a project where we are trying to skin Spark components from a third party library that are built up from the drawing API primitives. Our first attempt involved creating a Flex skin (SWC) in Illustrator/Flash and applying that skin to the Spark components via CSS. We found that even with only a single instance of one of the comp...

Flex Builder 4 Spark equivalent to Yahoo Astra Flash Layout Dragbar

I am currently looking at a couple of ways to integrate UI components into my current Flash project. I usually use Flash Develop and I have recently been evaluating the Yahoo Astra Flash library and I really like the following example (especially the horizontal and vertical drag bars): http://developer.yahoo.com/flash/astra-flash/layout...

Flex 4:Capturing mouse events with spark.primitive.path objects

I am trying to capture mouse events whenever the mouse does something over top of a spark.primitive.path (the 'L' shape below). Everything I have read states that I need to put the path inside of a Group object and attach mouse handlers to that. So the code would look something like this.. <s:Group left="10" right="10" top="10" bott...

s:List display the items in reverse order.

Is there a way to get a s:List to display it's items in reverse order? Not having to make a copy of the dataProvider would be ideal. Thanks. ...

Flex 4: Descending vertical DataGroup?

I am currently working on a Photoshop-like transformer application to work with DisplayObjects as layers. I have an ArrayCollection which serves as my data provider for my List of values, but the problem is that the items are appearing in ascending order in the List: 0 - Item 1 1 - Item 2 2 - Item 3 3 - Item 4 Since it's a layer manag...

Flex Spark: How to right align an icon on a button or tabbar button?

Hello, I would like to right align an icon on a button or tabbarbutton and keep the text left aligned in Flex 4.0 Spark. So far, I've come up with something like the following in my custom skin: <s:HGroup> <s:HGroup horizontalAlign="left"> <s:Label id="labelDisplay" textAlign="left" maxDis...

Dragging out of list causing weird behavior

I have a list that contains some interactive elements, including a custom textinput (Hillel Coren's FlowBox from his AutoComplete open source project). I'm trying to support drag and drop to reorder elements in the list for all of the other elements except for the FlowBox, but for the time-being I found a weird error that occurs when I d...

Incorrect User status in Spark using OPENFIRE

Hi, I'm experiencing some problems using Spark API that the user presence status does not get display correctly when inviting that user to Conference. For ex is a user is away or Do Not Disturb, he still gets shown as available on the conference window. I'm using Spark with Openfire XMPP server. Could somebody tell me where I need to...

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

I have a Spark TextArea: <s:TextArea id="editor"> <s:textFlow> <s:TextFlow id="_tf" > <s:p>Lorem ipsum etc.</s:p> <s:p> <s:img source="http://example.com/example.jpg" /> </s:p> <s:p>Aliquam tincidunt tempor etc.</s:p> </s:TextFlow> </s:textFlow> </...

Click Flex 4 spark ToggleButton component in code

I can't found any property in sparks's ToggleButton that allow me to press it from code. I tested setCurrentState("down") method, but this way button not dispatching click event i think. ...

scrolling interval in a Spark List with Tilelayout oversized while using mouse wheel after scrolling with mouseclick

I have a spark List with an item renderer and a tile layout. If I scroll by clicking with the mouse on the scroll bar and trying to scroll with the mouse wheel after that, there is a problem: The interval of the scrolling is oversized, instead of scrolling one item down (or up) the List scrolls 4 items down (or up). <s:List dataPro...

What is the purpose of xxScrollPosition in LayoutBase for a List?

When writing a custom layout for a List, what considerations need to be given for using the horizontalScrollPosition / verticalScrollPosition properties on the LayoutBase class itself (as opposed to the corresponding properties on the layoutTarget) Looking at the HorizontalLayout class as an example, it always references and updates lay...

change state when hover on another spark element

How to set a hover state (upSkin) when hover on another element? This example is not working on spark: http://stackoverflow.com/questions/3364244?tab=oldest#tab-top Would like to do something like this: <s:Button id="but1"/> <s:Button label="change" mouseOver="button2_mouseOverHandler(event)"/> protected function button2_mouseOverHand...

Spark in a Console Application Targetting .NET 4.0

I was just wondering if anyone has successfully got Spark to work in a .NET 4.0 console application for compiling templates to HTML. Unfortunately I am getting the following error: Unhandled Exception: Spark.Compiler.CompilerException: Dynamic view compilation failed. (0,0): error CS1703: An assembly with the same identity 'mscorlib, V...

Spark source removes custom Video Player skin

I have a problem with skinning a video player with spark in Flash Builder 4. It works all right if remove the source="[link to .flv]" tag in VideoPlayer but when I add it again the skinning dissapears. Any thoughts on this issue? I'm using the exakt code from this page: http://blog.flexexamples.com/2010/06/17/styling-the-scrub-bar-data...

Change background color in spark VideoPlayer

Hi, is there any way to change the black in background in the VideoPlayer component that comes with Flex 4 ? I can change every color but i can't change the black in background. Thanks ...

Avoid ItemRenders Caching in a Spark List in Flex 4.

I have 2 Spark List with custom Item Renderers. I'm working on an application that enables users to grag these Item Renders from one List to the other. When one of these IR is dropped in a new position or in another List, I'm updating the dataproviders: remove the object from one list's dataprovider and adding it to other's dataprovider....

How can I catch the fontSize change event ?

I am writing a skin for a TextInput control, and I want it to change when the fontSize style changes dynamically. I see this is done in the default TextInputSkin but couldn't decipher the behavior form the code. How is this done? thanks, ...

mx|Alert : skin the titlebar

Hi, I need to skin the titlebar of an alert. I can't find a way to get it working ... Here's my code : mx|Alert { color: black; fontFamily: frutigerDG; fontSize: 18; titleStyleName : "title"; } .title { color: black; fontFamily:frutigerDG; fontsize:12; ...