Flex :: ContextMenu Change The Items Dynamically?

Sep 14, 2010

I am using a ContextMenu for an AdvancedDataGrid in my application. I could implement the normal context menu for the grid. Now, I am planning to make the context menu dynamic.For example, if I click on a particular cell, I need to see only the items related to that cell in the Context Menu. Is there any way we can do that?

View 3 Replies


Similar Posts:


Flex :: ContextMenu() Not Showing Added Items?

Mar 15, 2011

I am trying to use ContextMenu() to display context menus in Flex 4.

Full Render code here [URL]

The problem is that the context menu does not change when I add items to it.

how to add a custom right click menu to a List box in flex (without using external JS, just using ContextMenu as Adobe intended.

View 2 Replies

ActionScript 3.0 :: Change ContextMenu Display Position?

Feb 9, 2010

how I can change the X and Y positions where the ContextMenu displays. I know you can do it with the display() method, but not sure how to implement it. My code, so far:

ActionScript Code:
var my_cm:ContextMenu = new ContextMenu();
my_cm.hideBuiltInItems();

[Code].....

View 2 Replies

Flex :: Access Items By Their ID If Create Them Dynamically

Feb 8, 2010

In one area of my application I am creating a display that builds itself with actionscript during a loop. (in my actual app there are A LOT of nested children and my function might be looking for any of those children) In that AS I assign each item an ID, but when I try to access that item by it's id it fails. What gives? and how can I accomplish finding a UI component without having to go through knowing all of it's possible parents? [code]

View 1 Replies

Flex :: How To Change Skin Of Items Highlight / RollOver

May 13, 2011

I am trying to Skin a "hightlight" of a DropDownList item. I can not find any documentation on changing the skin of the items hightlight / rollover skin. How to do this?

View 1 Replies

Flex :: Change Gaps To See Background Image Between Items

Jun 20, 2011

I have created a tile list with custom item renderer and in terms of functionality it works as it should. I reduced the width and height of the item renderer to 95% which then shows the tile lists background in the remaining 5% of that item. The problem is that only when I hover over the item, the background is covered up and I cant get a gap to appear between items. Is it possible to change the height and width of the hover over?

<mx:Canvas id="Card2" label="Card2" width="100%" height="100%" backgroundColor="#FFFFFF">
<mx:TileList id="tlCard2" x="10" y="10" dataProvider="{acCard2}" width="580" height="340" dropEnabled="true" borderThickness="0" maxColumns="4" maxRows="4" rowHeight="85" columnWidth="145" borderColor="#000000" horizontalScrollPolicy="off" verticalScrollPolicy="off" borderStyle="solid" dragMoveEnabled="true" dragEnabled="true" backgroundImage="{imgGuide}" themeColor="#BCBCBC">
[Code] .....

View 3 Replies

Flex :: No ContextMenu.customItems With AIR?

Sep 20, 2009

Just compiled it with amxmlc and it gave me errors over the presence of "customItems" - nothing else at all in the entire 1500+ line AS3/flex program. I took out the customItems reference and it compiles with amxmlc just fine. Nothing about that feature 'customItems' is indicated to be anything other than active and current in the documentation. All amxmlc actually does is add a command line argument for AIR to the standard mxmlc.

View 1 Replies

Flex :: ContextMenu On Right Click Not Showing?

Feb 1, 2011

I'm pretty sure my code is OK as the Context Menu shows nicely when I compile for web, but when I compile for AIR nothing shows up.

View 2 Replies

Flex :: Dynamically Add Different Items To ThumbContent Canvas And Use Scroller Canvas To Scroll

Jun 5, 2009

I have the following code in my flex project.

[Code]...

I want to dynamically add different items to thumbContent canvas and use scroller canvas to scroll. I see than the height of thumbContent bigger than 7977 it truncate from scrolling. So - I see the scroller canvas with empty space on top. Then I scroll to bottom - I see the content of thumbContent and at bottom scrolling I see empty space too.

View 1 Replies

Actionscript 3 :: Flex Contextmenu Component Reference

Jul 7, 2010

I have a DataGrid with a custom itemRenderer(Canvas) which has a context menu on its right click. I am trying to get the data of the itemRenderer. I tried to find something in event & variables. I also tried with FlexNativeMenu on RIGHT_MOUSE_CLICK. But I didn't find any way out.

View 2 Replies

Flex :: 4 Right Click Spark List Using ContextMenu()

Mar 7, 2011

I would like to add custom right clicks to a number of spark list controls. I have tried the following as an item renderer. (as per the flex 4 cook book). Full Render code here [URL] When I right click on the Spark List I simply get the Adobe Default Context menu. This is the same default behaviour I had before I added any code to this.

View 2 Replies

Flex :: Custom ContextMenu Not Displaying In MX TextArea?

Apr 12, 2011

Been tearing my hair out for ages trying to get my custom ContextMenu to apply to a TextArea, It will just display the default (copy, paste ect...).

import mx.events.FlexEvent;
public var nm:NativeMenu = new NativeMenu();
public var cm:ContextMenu = new ContextMenu();[code].......

View 1 Replies

Flex :: Contextmenu In Datagrid With Title Window?

Dec 26, 2011

I want to add a context menu with a datagrid which is in a title window, after adding it nothing happens.

[Code]...

I am calling init function on creationComplete event of title window.

View 1 Replies

Actionscript 3 :: Flex Library Project: NativeMenu Vs. ContextMenu?

Jul 13, 2010

I have a Flex Library Project which has both Flex specific classes, and Air specific classes.When I reference the library in an Air project, the compiler complains about an overriding contextMenu in mx.containers.Panel, saying that the param should be of type NativeMenu (instead of ContextMenu). If I switch it over to NativeMenu then it compiles fine.

The issue is when I reference the library in a Flex Project. This time it complains that it doesn't know the type NativeMenu. If I try to change it back to ContextMenu, then I get the same error as above.I've searched google to no avail (found that someone else encountered the exact same problem: http:url.... )

View 2 Replies

Flex :: Air - Dynamically Change Image Id Value?

Mar 5, 2011

how to dynamically change image id value.ex:

View 1 Replies

Flex :: Dynamically Change The Size Of The Canvas?

Sep 3, 2009

If the size of canvas set in the MXML markup, some part of the components that go beyond the boundaries of canvas not displayed. If the canvas size to change dynamically(canvas.width, canvas.height), canvas boundaries are virtually absent. How to dynamically change the size of the Canvas?

View 2 Replies

Flex :: Change VBox To HBox Dynamically

May 4, 2010

I am in need of a strange solution. I have one requirement in which I am displaying two components in a VBox. But on click of the main container I need to maximize that and need to display the components in horizontal. I was just wondering whether I can change the VBox to HBox and viceversa dynamically using actionscript or some other way.

View 1 Replies

Actionscript 3 :: Selecting Flex Chart Items And Displaying Sum Of Items Selected

Aug 26, 2009

I would like to use the selectionMode=multiple described in the Flex docs, but with a few modifications:

1) I would like the box that the user drags over the graph to remain there until the user drags a new one.

2) In the top right corner of the box I want to display the sum of the items selected by that box.

View 1 Replies

Flex :: Make List Items As Tool Tips For Combo Box Items?

Dec 1, 2009

How to make list items as tool tips for combo box items?

View 2 Replies

Flex :: Force The List To Load All The Items, Not Only The Visible Items?

Aug 15, 2010

I'm creating a facebook application in flex. I'm actually working on the friends component that shows your friends who are using the application. now, each friend has a profile image.

I created the component using a s:List element.

In the Skin Class of the element i configured the requestedColumnCount to 3, which means it shows 3 friends. i added buttons to scroll left and right in the list.

Whenever I scroll to see a different friend, for a half of a second i see no image because the List component is loading the image in order to view it.

is there a way to make the list preload all the elements so i won't have this kind of problem ?

View 1 Replies

Flex :: Dynamically Change The Width Of Datagrid Column?

Jun 16, 2009

Can we change the width of the datagrid column dynamically by clicking on the border of the column in order to display the complete string which is too long to be displayed and needs to be scrolled ? If so, How ?

Also, how can we ensure that the column width changes dynamically based on the number of characters / length of string; since many a times the data is too long to be displayed. Can we set the column width to take the length of data into consideration before displaying onto the datagrid ?

View 4 Replies

Flex :: Dynamically Change Background Colour Of Datagrid Row?

Mar 7, 2010

It seems like there are various hacks out there to change the background colour of the row of a datagrid but all of them seem to happen at render time.See: http:[url]....I have a datagrid where I need to change row colours to red then back to normal frequently based on changes to the bound ArrayCollection. So I'm looking for a way to change the row colours dynamically.Obviously as the changes are happening frequently it would be nice if changing the background colour of the row wasn't an expensive process.

View 2 Replies

Flex :: Change Datagrid Cell's ItemRenderer Dynamically?

Mar 20, 2010

i have a simple datagrid having 2 columns named as image and place. where image column has mx.controls.Image itemRenderer and place is simple. my requirement is to change itemRenderer of image cell when it will be clicked. i means to say when user click on any image from image column than i want to show that image path in editable mode and when user edit that path then the selected cell will start displayed the updated image.

View 3 Replies

Flex :: Change Font Size In Datagrid Dynamically?

Oct 22, 2010

how do i change the datagrid's font size on the click of a button. size will be an input from a text box.

View 1 Replies

Flex :: Animation - Change Speed Of Movieclip Dynamically?

Nov 19, 2010

I have a movieclip created of a wheel that needs to roll on the ground. The speed of lateral movement of the wheel, is provided by the user and the wheel needs to rotate such that, it looks like rolling vs slipping on the ground I essentially need the wheel to rotate faster/ slower based on user input- how can this be achieved.

View 2 Replies

Flex :: Change The Color Of An Mx:PieSeriesItem Slice Dynamically?

Feb 15, 2011

I am creating a program where a change in a value causes the color of a pie slice in an mx:PieChart to change dynamically.the code that is supposed to change the color is similar to this:(pieChart.pieChartSeries.items[i] as PieSeriesItem).fill = new mx.graphics.SolidColor(0,0.2); // black, almost opaquetracing out the results of this appears to apply the color to the particular PieSeriesItem, but the color does not change visually. I checked the AS reference and the fill property is of type iFill and should accept a solidColor instance. (note: I have also tried 0x000000 as a valid color, the first argument of SolidColor takes an uint)edit] Since I posted the question originally, I've added a few changes to clarify the question. am actually using an MXML component that extends < mx:PieChart > . Originally I was trying to set the color as listed above within an event handler in the main application. What I have done since then was invoke a method in my extended PieChart component, like so:

(in main applicaion)
private function someEventHandler(evt:someEvent):void{
pieChart.setPieSliceColor((pieChart.pieChartSeries.items[i] as PieSeriesItem));

[code]......

View 2 Replies

Actionscript 3 :: Flex Change Image Color Dynamically?

Jun 3, 2011

I have a image declared like the following:

[Bindable]
[Embed( source="assets/banana.png" )]
public var iconBANANA : Class;

It is involving into itemRenderer, but I wish to change the color of the image when some event occurs (like clicking above or something). The rest of the objects used the image shall remain unchanged, only the object on which the event has occurred shall change the color of the image. But the biggest question is: How to change the image color mainly - like there is a Blue area on image - to turn it on Green, or Yellow?

View 2 Replies

Flex :: How To Dynamically Change Component In Item Renderer

Jan 16, 2012

How can I dynamically change components text size in item renderer? Here is my CustomItemRenderer.mxml:

<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="[URL]" xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
[Code] .....

When a button is pressed I want to access textArea2 and change font size.

View 1 Replies

Flex :: Dynamically Change Fusion Chart Value With Slider Event

Jun 4, 2010

I am having a set of slider for each bar in the graph. I have bindded all the sliders with their corresponding bars. When i change the value of slider the value in the ArrayCollection changes and i have also used

[Code]...

View 1 Replies

Flex :: Dynamically Change Tree RowCount If A Node Is Expanded?

Dec 27, 2010

The tree should have a minimum row count of 4 and a maximum of 10 (beyond which it should display the scroll bars). So, I have a tree with rowCount="4" and I want rowCount to change up to "10" depending on the currently expanded nodes. In debug I can see two of the tree's properties which I could use[code]...

But these are not accessible from outside so I can't find a way to understand if the tree is expanded or not.

View 1 Replies







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