Flex :: How To Disable Hover And Selection Colors

Feb 10, 2011

Flex 4: mx|tree - How can I disable items selection? I want to disable the hover and selection colors so when a user selects an item it's background won't change color. how is that possible. I do not want to choose the selection and hover colors. the background contains an image so it won't be useful. I need to completely disable the colors.

I tried to override the Tree class but with no luck. This is the class that overrides the tree Class:
package components.popups.WelcomeBack {
import mx.controls.listClasses.IListItemRenderer;
import mx.controls.Tree;
[Code] .....

View 3 Replies


Similar Posts:


Flex :: Disable Selection & Rollover Colors In A List?

Feb 26, 2011

How do I disable the rollover, selection & focus colors in a list? I tried setting them to "{null}" but that just makes them black:

<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
width="100%" height="100%"

[Code]....

View 1 Replies

Flex :: Make Datagrid Selection And Hover Effect (blue Color) Programmatically

Jan 25, 2010

I have two datagrids which should do everything synchronic except the data entry. I already managed to make them scroll synchronic by using the scroll event. My question is now how to select a item of a datagrid only programmatically, and how to get the mouseover effect and underlining the corresponding row with a bright blue color?

View 1 Replies

Flex :: Disable Selection Of A Row?

Sep 16, 2011

I want to disable (and look disabled) some rows in a spark datagrid. I found this answer to stop selection which is greatIn flex, is there a way to capture and optionally cancel a row selection event in a DataGrid?

But I want in addition to show that the particular row is not selectable. Ideally I want to have some sort of overlay but I am not sure if that is possible. My alternative solution is to change the text color to grey for the unselectable row. Looking at the datagrid renders they all seem to be column based. I looked at skinning potentially (overriding the alternating color property) but this just sets the background property and not the text color.

View 1 Replies

Flex :: Itemrenderer Disable Rollover But Keep Alternating Colors?

Jun 1, 2011

Is there a way to customize the rollover and selected colors of an item renderer without losing the alternating background colors?

When i set the autoDrawBackground flag to false the roll over effects stops but for some reason the alternating background is also not drawn.

I would like to create a renderer which draws a white border on state hovered and a yellow border on selected instead of the default rollover color. I would also like to keep my alternating background colors i set on the list.

View 2 Replies

Mouse Hover Over Whole Selection Box Of Object

Jan 3, 2010

I have map of the world (in photoshop) where each continent is in separate layer and separate coloured. How can I make link in flash of each continent. I want mouse hover over the exact colour (continent). My problem is that mouse hover always over the whole selection box of object (whole rectangle).

View 1 Replies

ActionScript 3.0 :: Hover Over Whole Selection Box Of Object

Dec 30, 2009

i have map of the world (in photoshop) where each continent is in separate layer and separate coloured.how can i make link in flash of each continent. i want mouse hover over the exact colour(continent). My problem is that mouse hover always hover over the whole selection box of object.

View 0 Replies

ActionScript 3.0 :: Disable Inputbox Text Highlighting/selection?

Feb 25, 2010

is there anyways I can disable people from highlighting/selection the  text inside an Input Box? I have tried the 3 buttons next to the "Single Line" dropdown but none  of them work.Is there a as3 code I need to put so people cannot highlight/select the text  inside a input box for example in a form?

View 1 Replies

Flash :: Disable List Selection But Keep Children Functions

Apr 30, 2011

i got a s:List with a dataprovider and a custom itemrenderer. now my itemrenderer has a button within. Every time i choose a item from the list, i get focus on the item, but clicking the button within the item only causes the s:List to select the hole item and wont let me press the button within the item.

is there any solution to disable the "list" selection functionallity but keeping the items within the list enabled / clickable?

as requested, here the code (relevant parts)

CategoryTree.mxml

<s:List id="data1" name="D1" x="-2000" height="100%" minWidth="600"
width="{this.width}" dataProvider="{this.childrenResult1.lastResult}"
itemRenderer="gui.components.Category">

[Code]......

View 2 Replies

Disable The Text Selection Abilities And Such Of Flash TextFields (so They Act Like Labels)?

Sep 3, 2010

How can i disable the text selection abilities and such of flash TextFields (so they act like labels)?

View 1 Replies

Actionscript :: Disable Datagrid Header Rollover Color And Selection Color?

Jul 22, 2010

how could i remove these two colors for the header.... i could override rollover for the columns and leave the selection, but i want to remove these two effects from the header and i couldn't find a way to do that....

View 2 Replies

Flex :: Customizing Flex MenuBar / Removing Hover Effect

Jan 8, 2010

Is there a way to disable the hover effects?I don't want flex to highlight the entire component for both link buttons and menu bar.On the menubar, I applied a backgroundSkin, so having flex highlight the whole menubar when the user hovers their mouse on top quitely destroys the design.

View 1 Replies

ActionScript 3.0 :: Determine X Colors Between 2 Defined Colors?

Apr 26, 2010

I wonder what kind of class(es) I should use to accomplish this task. I have two predefined colors, 0xFF0000 and 0x00FF00 (red and green), and I would like to set a number of gradiants of colors between these two colors. [code]This generates a random color, but I don't want to generate just any random one. Does anyone know what kind of color class I should use to accomplish my task objective?

View 5 Replies

IDE :: CS4 Jsfl - Fl.getDocumentDOM().selection Doesn't Retain The Selection Order

Nov 11, 2010

I never realized that fl.getDocumentDOM().selection doesn't retain the selection order... <sniff>. I was hoping to build relationships based on the order. I guess I took if for granted that tools like Maya and Max store the selection buffer in order of what was selected. I'm trying to avoid: Select Object, <Press 'Parent' Button>, Select Parent, <Press 'Parent' Button>

View 2 Replies

ActionScript 2.0 :: Selection.setFocus Selection.getFocus Inputting From Mc?

Sep 6, 2007

i am attaching a number of _mc (my_mc) with a for loop. Inside each my_mc is an input textfield (my_txt)I want to click on my_mc.my_txt and select the textfield .the following code allow this and i can enter text from the keyboard however I want to add text from a _mc keybooard on screen (here called myBtn_mc).As soon as I click on myBtn_mc of course I lose focus ... i have tried to use a variable (select) to keep scope&focus

View 6 Replies

Flex - ComboBox Is There An Event For Item Hover?

Apr 7, 2010

I'm using the <s:ComboBox> flex component which I suspect is very similar to the mx one <mx:ComboBox>

What I'm trying to do is listen to the event of the mouse moving between the items of the list. There's a change event, but it kicks in only when the item is clicked/selected from the list.

What event would I need to listen for when items are just hovered over. I tried finding over and hover but couldn't find something to that effect.

View 1 Replies

Flex 3: <mx:list> Hover Background Color

Jun 29, 2011

How do I change the background color of the item I'm currently hovering over in a list? The default is that light blue, but I would like to be able to change it to whatever I want. I've gone through the list of available options, but I didn't see anything that stuck out at me.

I'm sure this is ridiculously simple, I just can't seem to figure it out.

View 2 Replies

Flex - Corner Radius For Hover Rectangle?

Nov 8, 2011

How can I set something like corner radius for the default rectangle which appears when an item is hovered?

View 2 Replies

Actionscript 3 :: Flex - Selection In Flex Datagrid Does Not Pass The ValueObject To SelectionChangeHandler Function

Aug 11, 2011

I have a TabNavigator, and each tab is a Module. One of the modules is labelled Units and the full code of the module is posted in this post. There are several problems:

1) Forms are not populated with data from the datagrid selection.
2) Selecting a row and clicking delete gives the very-common error: TypeError: Error #1009: Cannot access a property or method of a null object reference.

A trace on the valueObject unit within the selectionChangeHandler function gives NULL. Why? Note: In other modules (other tabs of the TabNavigator), I have DropDownLists populated with units. This means that the valueObject Unit is defined in the other modules. However, valueObjects should be private to modules, and not shared.

[Code]....

View 1 Replies

Flex :: Triggering Item Renderers On Hover With DataGrids

Sep 27, 2009

I've got a client who has a list of items on a Datagrid. When the row is clicked, it sends the user to another page with details of that item. The client wants the rows to act like HTML links, where the color is purple when the link has been previously visited and its normal color if the row hasn't been clicked in the past. I've accomplished this with item renderers and SharedObjects. The application loads the visited ids into an array on start and the item renderer colors the individual cells if that row had been visited.

The issue here is that the client also wants the text color in the rows to turn white when the user rolls over the row. Because the item renderer sets the color, it doesn't respond to the default stylesheet for the datagrid. I can make it turn white on rollover of an individual cell, but we need the whole row to do it. Is there a way to trigger a function in all the item renderers in the row, or is there a better way to accomplish this?

View 1 Replies

Flex :: Manually Trigger A Buttons Hover State?

Jul 29, 2010

I need to trigger the hover state of a Flex button programatically, so that it looks like the user is hovering over it. There is a flex page about "Manually dispatching events":

[URL]

Which would work, but what I'd really like to do is change the style of the button without having to throw an event. How can I do this?

View 1 Replies

Flex :: Change State When Hover On Another Spark Element?

Sep 5, 2010

How to set a hover state (upSkin) when hover on another element? This example is not working on spark:

[URL]

Would like to do something like this:

<s:Button id="but1"/>
<s:Button label="change" mouseOver="button2_mouseOverHandler(event)"/>
protected function button2_mouseOverHandler(event:MouseEvent):void{
//make but1 look like I'm hovering it
}

View 1 Replies

Flex :: LinkButton: Keep Style Unchanged On Mouse-hover

May 31, 2011

I want a LinkButton's style to stay unchanged when the mouse hovers over it. (But I still want the tooltip to work.) How do I do this?

(The mouseOver event seems relevant, and I do a noop() on that event, but my goal is to leave the style unchanged rather than do something specific.)

By the way, I am using a non-default style, defining it with CSS in the MXML.

View 1 Replies

Flex RGBA Colors In CSS?

May 12, 2010

I am trying to style a DataGrid component so that the background is transparent (Flex 4). Rgba colors work fine if I make "alternatingItemColors" an attribute on the component, but if I try to declare it in my css stylesheet, I cannot declare the alpha value.

Works (mxml):
<mx:DataGrid id="songGrid" width="800" height="529" dataProvider="{songs}" itemClick="handleRowClick(event);" x="145" y="168" headerStyleName="dataGridHeader" alternatingItemColors="[0xFFFFFFFF, 0xFFFFFFFF]">

[Code]...

If I enter the values as "0xFFFFFFFF", I get a parse error, because it's not proper css (of course, most of flex's css isn't proper css, but I digress...). So, is there any way to declare the alpha value of these colors in the css?

View 2 Replies

Actionscript 3 :: Flex: Listening For 'Hover' Over Link In Text Area

Aug 3, 2009

I am trying to find out when a link is 'hovered over' in a text area showing html text. I wonder if listening for a cursor change kind of event might be the way. I can't find anything in the docs.

View 4 Replies

Flex :: Have Different Colors For Different Tabs In SuperTabNavigator

Apr 2, 2010

Well the heading is basically what my question is:

How can I have different colors for different tabs in SuperTabNavigator.

Below is the code to my SuperTabNavigator with three tabs:

<containers:SuperTabNavigator x="0"
y="10"
width="100%"

[Code].....

I want to have different color for every different tab.

How should I do this.

I know there is a firstTabStyleName and lastTabStyleName: is there any way to have the secondTab or the middleTab

View 2 Replies

Flex :: Remove Hover / RollOver Effects Globally On Spark Components?

Oct 28, 2010

My goal is to remove all hover feedback from the UI. The motivation is for testing touch interface prototypes and not wanting users to have the queue of interactivity when the mouse hovers which they won't have with a touch interface.

I have a partial solution but it has two problems:

Requires an event handler on each component. Flickers on hover.

protected function ui_suppressHover(event:MouseEvent):void
{
var b = event.currentTarget as UIComponent;

[Code].....

View 2 Replies

Flex :: Count Colors In SWF Vector File?

Jan 8, 2010

Suppose I've converted a vector image file (.AI/.SVG) to .SWF for ease of importing dynamically as the source of an Image in Flex.

To count colors now, I have to create a "new BitMap", then ".draw()" and iterate over all pixels and use ".getPixel()" to retrieve the color.

Unfortunately, because of anti-aliasing, this seems to return several more colors than what are actually used to draw the image (say, a black logo).

Is there a better alternative to doing this in Flex?

View 3 Replies

Actionscript 3 :: Flex - ColorPicker Load Colors From Xml?

Feb 2, 2010

I have a colorpicker that I want to have his colors loaded from an external xml, my xml looks like this

<colors>
<color label="Aqua" colorHex="0xFFFFCC"/>
<color label="Forest Green" colorHex="0xCCFF00"/>

[code]....

View 1 Replies

Actionscript :: Flex Converting # Colors To Uint

Mar 12, 2010

I'm working with several components that take color as a uint, but the colors I have are in the format of "#161616". I'm not sure what the relation between the 2 types of colors are or how to go from one to another.It doesn't have to be an actionscript solution. I have only a small number of these colors, so can be done manually too.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved