List Component: Changing Column Width?

May 27, 2011

How is it possible to change the width and height of the cells in a List Component in AS3? I've tried experimenting with the cells and different methods but none seem to work.For example, let's say I want to make each list button cell very narrow.

View 1 Replies


Similar Posts:


Flex :: Flash - DataGrid Column Width: One Column To Rule Them All?

Nov 16, 2010

I have a Flex 4, mx:DataGrid with the following (pertinent) properties set:

width="100%"horizontalScrollPolicy="off"

I have the minWidth set on all of the DataGridColumns and the width set on one of them. If I simply maximize/minimize the display (in browser or stand-alone flash player) of the application, the columns scale up and down nicely. But if you grab the edge of the application and drag it to make it bigger, only one column grows really big. When you drag the size down again, the one column remains big, but all of the other columns get squished way down.

View 3 Replies

ActionScript 3.0 :: List Component / Changing Font Color

Jun 20, 2009

I have a list component in my flash movie, and I managed to change the look of it by going into it and physically changing the assets, but I don't know how to change the font size/color/family.I've seen lots of documentation, but nothing complete, and definitely nothing that I can paste into my document.

View 2 Replies

List Component - Populate A List Box Component Located Within A Separate Mc In Swf With An Array?

Jun 29, 2009

how to populate a list box component located within a seperate mc in my swf with an array... the array comes from a response from a webservice call. I am not currently on the computer with my source code available so lets just use the following....

listdata[i] = the array i want to populate the list box with..... (listdata1, listdata2, listdata3, listdata4, etc. etc.)
movieclip1 = the MC within my fla containing the list box component
mylist = the actual list component

... just not all that familiar with the format of actionscript when working with objects... using CS3 and as2 btw,

View 3 Replies

Flex :: DataGrid Column Width?

Aug 17, 2009

In my flex app I store the widths and visiblility of columns in an xml file. When the app loads it reads from the xml file and sets he columns values as applicable:

for(i = 0; i < columnsOrder.length; i++){
newOrder[i] = myDG.columns[Number(columnsOrder[i]) - 1];
newOrder[i].visible = (Number(columnsVisiblity[i]) == 1);

[code]....

View 3 Replies

Flex :: Set The Same Column Width In A Datagrid At Runtime?

Mar 15, 2010

In flex, I have a datagrid with 22 columns. I initially display all the columns. The width of each column right is uniform. Now when i change the visiblity of a few columns, the width of each column varies. How do i maintain a uniform column width for each column whether or not there are any invisible columns? how do i get the count of number of visible columns. the ColumnCount property returns total number of columns and not the number of visible ones.

View 3 Replies

Flex :: DataGrid Column Width Is Not Set Properly?

Jan 4, 2011

In the below example I has called the OptimizeDataGrid method on Button Click event to resize the Column according to the data. whereas on the First Time of the Button Click event It called the function whereas the Datagrdi Column width alone is not set properly.whereas on second time it is working properly.For Eg : In the below statement the text value is coming as 55 and widthPadding is comes as 25. but the sum of these two value is not in the dg.columns[col].width.

dg.columns[col].width = text + widthPadding;

But the same is working on the second time of the Button click event.

<mx:Script>
<![CDATA[
import mx.utils.ObjectUtil;[code].....

View 1 Replies

Flex :: Get Width Of The Clipped Displayed Column

Jan 13, 2011

I have a DataGrid in my project. It doesn't fit's the width of the form, so the scrollBar appears. The DataGrid, on it's initial state, displays a few columns and a part of the next column (which would appear after scrolling). Is there any way, I can get the width of this, displaying part?

View 2 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

Actionscript 3 :: Change Column Width In Flex Grid

Jun 23, 2009

I'm using a mx.containers.Grid to layout some data, and the last column is a set of checkboxes. MXML Code snippet:[code]Basically, I want the labels & text values to align however the Grid component sees fit. However, I'd like the checkboxes to be right-aligned. I've tried setting the width of the textValues to 100% and it does nothing. I don't want to use hard-coded pixel values/canvases/etc because it is important that this is easy to change/update.

View 2 Replies

Actionscript 3 :: Unable To Change Column Width Dynamically In Flex Datagrid

May 17, 2011

I am using a singleton class (popup, which means it doesn't forget the last used variables) which contains a datagrid. I am making various columns visible/invisible, setting the widths and headers in accordance to data received from a database call. Everything works fine except that when I put the breakpoints before and after the point where I change width of columns, I do not see the change in width of datagrid at all! Instead I see some values totally out of sync as widths of datagrid column! However, since it is a singleton class, the next time I call this popup, I see widths which I did set up in last call.

I must be messing up in calling the setWidth() function (which is my custom function which changes the width of datagrid in action script). What should be the point where I should call this function? I tried in creationComplete, show and in the setter of dataprovider.

View 2 Replies

Flex :: ColumnChart: Dynamically Changing The Column Colors?

May 29, 2010

When using a ColumnChart created in Flex 3, how can I to change the fill color of columns that meet a certain criteria?

Example: I have 8 columns representing agreement percentages between groups of people and want to change the fill color (or otherwise highlight) of all the columns that have over 80% agreement.

View 1 Replies

ActionScript 2.0 :: Dynamic Column - Drag Item Out Of List?

Feb 21, 2004

I basically want to be able to drag any item out of that list, and when doing so, have it that item automatically go to the bottom, and have the remaining items scroll up. I can handle the drag and drop part of it, but I'm confused on how I could get the remaining column of items to dynamically move up depending on which item is taken out. I'm thinking maybe along the lines of an array? And I also suppose each item will have to be loaded in.

View 5 Replies

Flash :: List Component - Change Pointer Icon To Hand For List Items?

Nov 9, 2010

I am working on an older Flash project created in CS3 ActionScript 2.0 How can I make the pointer cursor change to the hand when hover over a list item?_root.slidePanel.myList'myList' is the list. I have traced out the contents of the List MC and it has a child MC called 'content_mc'. I assumed this was the object containing all of my list items but the only members of this MC I can see (when tracing them out) are 'setRGB' and 'searchKey'.

View 1 Replies

ActionScript 2.0 :: Combobox & List - Each Selection Triggers The Specific Xml File To Load Into The List Component?

May 10, 2007

I have a combobox and list component on the stage. The combobox has 3 selections. How do I get it so that each selection triggers the specific xml file to load into the list component? I can't get them to communicate to each other.

View 1 Replies

Actionscript 3 :: Get A Navigation Through The List Items In A List Component Of Flash?

Mar 23, 2012

Why I have to press 2 times the arrow key down to get a navigation through the list items in a list component of Flash?

Theres any workaround for this? I have a listener for keyboard event that checks if keyCode is equal to 40 if it is then I use 'stage.focus = list', but I have to press 2 times key arrow down to start navigating through list items.

View 1 Replies

Flex :: Make A Custom Component Or Extend The List Component For A 2D Top Down View MAP ?

Nov 11, 2010

I'm building a top view 2D map, that it's objects are stored on the server.The kind of objects are 10 and might be a photo, label, button, lists, mix of them or labels with tooltips.The component must request the "areas" that are missing on screen.An area is 1000x1000 px and is cached in flex.To move in the map, will be like in google maps (drag-and-drop).I should be able to have another list and move objects from one to another using drag-an-drop on objects. Ex.: I grab an objects from a list and I move it on this map, I release the mouse button and the item is placed there.Now the problem is: I build a custom component for this trying to emulate the item renderer for performance and recyclage, implement drag-and-drop on objects and request the areas that are missing?

or

I extend the List component from spark and I add some features as multiple kind of itemrenderers and use recycle on them. Of course it must be able to request the missing areas on the screen and cache it's data.Maybe create a custom layout is needed too.What I need is something that must be really fluid, so the lighter this component is, the better.

UPDATE: *There will be not any object over another.

*I will not use hitTest on bitmaps because all bitmaps are wrapped in another component,as they,for now are itemrenderers.

Anyway I already begin to do this using a class that extends the SkinnableDataContainer and a custom layout. As the layout is not like a grid, is sparse, random items at diferent points(x, y).How to get the localX and localY, relative to item renderer and not to the Spark List, from a DragEvent in Flex 4?

View 1 Replies

ActionScript 3.0 :: Possible For Tilelist Component To Show 2 Images In 1 Row And Column?

Oct 3, 2010

Is that possible for the tilelist component to show two images in one row and column?

View 1 Replies

ActionScript 2.0 :: DataGrid Component Column Header Tooltips?

Aug 2, 2008

I am looking for a solution to complete within AS2 that allows a user to hover over a column header within a datagrid and a tooltip would pop-up.I'm completeing a sports statistics sheet within Flash and I am obviously putting numbers in each column, else I would use the full column header but its just a number so I don't want to increase the width of the columns just for that.If anyone knows of a way to make each individual column header able to pop up a tooltip plz post or recommend something. To give an example if it isnt obvious of what I'm trying to doLets say my Table looks like soGP | G | A | +/- | %

View 2 Replies

ActionScript 2.0 :: XML From Xml - Load The Second List On The Other List Component?

Apr 13, 2006

I have two Lists (components) on stage. The first one (mainList populates from an XML called topics.xml

[Code]...

on event handler change, I want to load the second list on the other list component, called subList..It's not loading.. I believe it's because when it reads the data from my topics list, it reads topic1.xml instead of "topic1.xml" ( reads without the quotes). If I unquote line v.list.load("subtopic.xml"), it works, but I need it to be loaded from the XML..

[Code]...

View 1 Replies

Flex :: Override The Column Item Renderers For The Datagrid Component Dynamically

Feb 24, 2011

I have a view component called viewBase where I defined a advanced datagrid with few item renderers for datagrid columns. Now I have a requirement where I need to use the same view viewBase component, but not required to use any item renderers.

how to override the itemrenderers which are declared in a view component?

View 1 Replies

AS3 :: IDE - Changing .swf Width And Height

Dec 13, 2009

Is there any possibility to change screen width and height not in Flash ( in Properties ), but in Code [ any AS3 line? ].

View 1 Replies

ActionScript 3.0 :: X Value Changing When Width Changed

Aug 3, 2011

I'm working with a rectangle I used code to generate

hpBar.graphics.beginFill(0xFF0000);
hpBar.graphics.drawRect(40, 40, 90, 22);
hpBar.graphics.endFill();
addChild(hpBar);

The rectangle itself works fine without any problems, but when I try to change the width of the rectangle, it's x value decreases slightly, but I'm not sure why it does this. (90 is the original width, hpPerc is another value that will for my uses always be between 0 and 1).
hpBar.width = 90* hpPerc;
Unfortunately, as I stated, changing this shape's width seems to change the x value as well, which really doesn't work at all.

View 8 Replies

ActionScript 3.0 :: Mysteriously Changing Width Of Items?

Oct 4, 2009

I am working on this website and I decided to add some flash to the front page in the form  of a little image gallery with a nifty slide effect. The problem is this. For some reason its squishing my  images. When you look in the scripting you will see that I've set the image  width to the full width of the stage, but when you test the movie they are  getting squished to about 3/4th's the width of the stage (ive double checked the image size as well).

View 5 Replies

ActionScript 3.0 :: Resize A Line Without Changing Width?

Jan 15, 2010

I have created a line (on the stage) where the height is 10px and the width is 2px. To resize it, I have converted it into a symbol (MovieClip) and given it an instance (let's say li ).

However, when I enter...li.height = 200; or resize the MovieClip with the mouse, the line is 200px tall, but it has also grown considerably thicker! However, if I go into the MovieClip, click on the Drawing and resize it there, I the line stays nice and thin.

View 4 Replies

ActionScript 2.0 :: Dynamically Changing Height And Width

Aug 11, 2005

I want to change the height and width of an object (specifically doubling it) after an interval of 2 seconds until the height and width of the object reach over 100. I've made two different scripts to try to make this possible.

[Code]...

View 4 Replies

ActionScript 3.0 :: Changing The Height Of A 1px Line Changes The Width Too?

Apr 13, 2009

I have a movieclip that has a 1px wide line by 10px high. Im trying to resize that line with tweenlite, however when i change the height it makes it wider too... How can i do this and keep the line 1px?

View 2 Replies

ActionScript 3.0 :: Keep Stroke Weight While Changing Width?

Mar 16, 2010

I have a movieclip 'cursor' with in it two rectangles. One of them is dark and one is light, so the cursor is blinking. Now, when I want to change the width of this cursor to 150 (where it was 30 before), I do:

Code:
cursor.width = 150;

This not only changes the width of this movieclip, but also the weigth of the (whole) stroke of the two recangles. How can I prevent this strokechange from happening?

View 1 Replies

Flex :: Get The Itemrenderers To Divide The List Width Between Them?

Mar 22, 2011

I have a List class with an itemrenderer. How can I get the itemrenderers to divide the List width between them? Normally, I would think this would be a easy as giving the renderers a percent width but that no worky.

Application:

<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"[code]..............

View 1 Replies

ActionScript 3.0 :: Changing Width Of Sprite Seems To Change Height Too?

Feb 5, 2009

Here is some code I have.

[code]
_buttonUnderline = new Sprite();
with(_buttonUnderline.graphics) {
[/code].....

When the Tween takes place though it not only changes the width, it changes the height as if it were scaling it up in both directions. Why does this behavior take place? And how can I get it so that only the width changes? I have also tried using scaleX as the property but it does the same thing.

View 1 Replies







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