Flex :: Image - ComboBox Items Go Out Of Alignment

Mar 29, 2010

I have a combobox that uses a custom itemrenderer to display an image. when scrolling up and down the list the images randomly go out of alignment. How do I stop this?

public class PinRenderer extends UIComponent implements IDataRenderer, IListItemRenderer {
private var currentPin:DisplayObject;
private var _data:Object;
public function get data():Object {
return _data;
} public function set data( value:Object ):void {
[Code] .....

View 1 Replies


Similar Posts:


Flex :: Image - ComboBox Items Go Out Of Alignment?

Aug 18, 2008

I have a combobox that uses a custom itemrenderer to display an image. when scrolling up and down the list the images randomly go out of alignment. How do I stop this?

public class PinRenderer extends UIComponent implements IDataRenderer, IListItemRenderer
{
private var currentPin:DisplayObject;

[code].....

View 1 Replies

Flex :: Setting A Custom ItemRenderer In A ComboBox On Specific List Items After Combobox Creation?

Nov 8, 2010

I'm trying to set a specific list item in a mx combobox to have a custom item renderer, the problem is that I cannot do this via mxml, it needs to be done via actionscript at a later stage, eg: combobox gets created, combobox gets populated, user does other tasks, combobox needs to set one or more items in the combobox to have icons (via item renderer)..

I can do this via the onChange event, but it only applies the icon when the combobox is opened and there is a slight delay so you can see the icon being added.

View 1 Replies

Flex :: Number Of Items In A Combobox?

Apr 15, 2010

How do i retreive the total number of items (count) of a combo box in Flex?

View 4 Replies

Actionscript 3.0 :: Remove The Items In The Combobox Later (without Removing Items In The Dataprovider)?

Feb 6, 2009

im having some dificulties in the combobox of Flex 3, after defining the dataProvider and filling the combobox, how can i remove the items in the combobox later (without removing items in the dataprovider)? if i set the provider to "" or null, the items in the combobox are still there

View 1 Replies

ActionScript 2.0 :: Stage Alignment - Thumbs And Menu Items Stay At The Bottom & Top ?

Apr 2, 2009

what i'm referring to is the way in which the thumbs and menu items stay at the bottom & top no matter what size the window is resized to.. and the its only the big images that are resized...

View 1 Replies

ActionScript 3.0 :: Alignment Of Image In UILoader

Apr 21, 2009

Is it possible to control the alignment of images loaded into a UILoader ?  My images are loaded in via XML. Most are are the size of the UILoader dimensions 960 x 482, but there are a handful which are portrait format and these are being aligned to the top left of the UILoader. I would like to center these instead.

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

ActionScript 2.0 :: Zoom And Pan Image Viewer - Alignment In MC?

Dec 1, 2009

I am recently making a website in flash cs3 using flash actionscript 2. I have currently put a zoom&pan image viewer into one of the website pages to use as a map viewer. However once pasted into a empty movie clip it seems to be displaying a whole lot of white space once fully zoomed out and the image being only around a 1/4 of the assigned area. I am thinking its something to do with the alignment. I have also attached the swf file, for quick view. The image can be found if you enter corporate in the first window then venue in the side menu.
Link > [URL]
The movieclip is labelled "map".

View 1 Replies

ActionScript 3.0 :: Text Alignment - Adding An Image In The TLF

Apr 9, 2011

I have a problem with the TLF text alignment issue. The problem comes when am adding an image in the TLF text and some text in the text box after the image tag and setting the format tag to leftMargin.<TEXTFORMAT LEFTMARGIN = "20">Some text goes here< /TEXTFORMAT>. what am expecting is if i insert a image tag means it needs to come in the first column and text in the second column just like the normal textfield. For normal text the  TEXTFORMAT tag is working perfectly for TLF its not working is there any chance to rectify the problem.

Below is the text what i have given in the Tlf textbox please check it with the normal text also tlf_txt.htmlText = '<img src = "[URL]" width = "10" height = "10" align = "texttop"/><TEXTFORMAT LEFTMARGIN = "20">Fonts should be embedded for any text that may be edited at runtime, other than text with the Use Device Fonts setting. Use the Text Font Embedding command to embed fonts.</TEXTFORMAT>'

View 4 Replies

IDE :: Image Alignment - Won't Center Until Resize The Stage

Feb 19, 2009

im creating an xml image gallery and its going well, but for some reason when i add the loaded image to the stage even though i've specified it to go to the center of the stage it doesn't, and won't center until I resize the stage

View 2 Replies

Web Development :: Why ComboBox 3 Take So Much Space To Show All Its Items

Dec 8, 2010

[code]It's taking up 300px ,but actually only the upside 150px is in use.How to show all its items while keeping the page UI normal?

View 1 Replies

ActionScript 2.0 :: Remove Items To/from Component - ComboBox?

Mar 4, 2004

How can I simply add or remove Items to/from component - ComboBox?

View 6 Replies

ActionScript 2.0 :: Populate Array From Combobox Items?

Sep 14, 2006

I'm currently working on a project where I have a user defined list of urls which is saved in a local SO. When the movie is loaded the ComboBox is populated with the values from the SO (Stored as array inside SO).I want to give users the option to remove items from this list. So far I have managed to remove the selected item from the combo box, clear out the SO and loop the remaining ComboBox items, but, when I try and load these item into an array to parse back to the SO, the array is created and creates the correct amount of elements, but, each element is populated with only the data from the 0 index item of the ComboBox.My code so far: (This sits inside a button component and is invoked onClick)

_root.ComboBox.removeItemAt(_root.ComboBox.selecte dIndex);
_root.ComboBox.selectedIndex = 0;
_root.local_data.clear(); [code].......

View 1 Replies

ActionScript 2.0 :: Hyperlinks (URLs) To Items In ComboBox?

May 10, 2004

I'd like to assign a hyperlink (URL) to the items in the combobox.

View 1 Replies

ActionScript 3.0 :: Add Custom Symbols To ComboBox Component Items?

Nov 15, 2007

I want to add a key to my ComboBox, so each item contains a little picture + text, is there any easy way to do it?

View 2 Replies

ActionScript 3.0 :: Using Selected Items In ComboBox To Populate TextField

Apr 13, 2009

Im trying to use the selected item in a combo box (aCB) to populate a text field (taLabel) the trace statement shows the correct item but i'm missing something simple to make it work. This is the error I get:
ReferenceError: Error #1069: Property null not found on fl.controls.ComboBox and there is no default value.

var cPriorities:Array = new Array(
{label:"Image Conscious",data:"Image Conscious"},
{label:"Durable", data:"Durable"},
{label:"Dependable", data:"Dependable"},);
[Code] .....

View 3 Replies

ActionScript 2.0 :: Simply Add / Remove Items To / From Component / ComboBox?

Mar 4, 2004

How can I simply add or remove Items to/from component - ComboBox?

View 6 Replies

ActionScript 3.0 :: Custom Font On Individual Row Items In A ComboBox Component

Mar 30, 2009

I am trying to create a combobox where the items listed in the combobox are font names and each item will display using the font of the item label. For instance, one item label in the list is "New Times Roman" and I want that particular row in the combobox to have the text AND font of "New Times Roman". For some reason, inside of my custom CellRenderer class, I cannot seem to find a way to get the item label that corresponds to the CellRenderer and the CellRenderer.data item always appears to be null!

This is the code I am currently using:

//From the main class, I am creating an instance of the
CustomizableComboBox and adding in the font names I am interested
in.
var comboFont:CustomizableComboBox=new

[Code]....

View 5 Replies

ActionScript 3.0 :: Accessibility - Traverse The Combobox None Of The Items Are Mentioned By The Screenreader

Sep 22, 2008

I need to add accessibility to a flash program which I have created. I can make the screen reader state all of the different buttons and at the top level of a combobox. However if I traverse the combobox none of the items are mentioned by the screenreader. I've tried various things down to trying to set the accessibility properties of the combobox items as though they were an array
cb[0].accessibilityProperties = accessProps0; but nothing seems to work.

View 1 Replies

Validate Combobox In Flex Before Save Has To Select Some Item In A Combobox?

Mar 16, 2011

How can I validate there's a selected item in a ComboBox before saving? If there's no selected item, how can I set focus on the ComboBox?

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

ActionScript 1/2 :: ComboBox As "input" And Add / Remove Items'

Nov 12, 2009

3-rd day goes to waste. And soon I'll be mad. I cannot correctly do it despite the Adobe's topics (e.g. [URL]). But I need:

1) the user can enter the word (first sign - the Letter);

2) the entered item is added to the List of CheckBox;

3) that List can be correctly sorted;

4) WHAT I CANNOT MAKE: to be able to correctly remove the selected item. All indices after removing must properly changed:

so, if I removed the item with index '4', the next indices would be descended (5=>4 etc.). How can I achieve it? You may have a quiet laugh over my desperation,

[Code]...

View 3 Replies

Flex :: Get Updated Image In Flex Image Control After Changing Source Not Name Of File (image)?

Jan 25, 2012

I am changing image through flex every time i change it saved into server directory with same name(which i am referring to show). So when i refresh my page my browser didn't send new request to server since it's already in request.so didn't getting new image.Tip:- when i clear browser history it will come with new image

View 2 Replies

Actionscript :: Flex - Dynamically Populate The Options In A Combobox Inside Of A Grid Based On Another Row In Flex?

Sep 8, 2009

I'm trying to setup a DataGrid that contains a column of combo boxes. The values of the combo boxes are defined by data specific to that row. I cannot get this to work though, I'm asking for a solution to this, either fixing what I have below or a recommendation on a different way.One of the columns of my DataGrid has an object derived from a ComboBox for an ItemEditor. The itemEditor is set like this:

<mx:DataGridColumn editorDataField="selectedItem" dataField="type" editable="true" >
<mx:itemEditor>
<mx:Component>

[code].....

View 1 Replies

Flex :: Include ComboBox In Flex Datagrid Header?

Dec 22, 2009

I want the comboBox to be placed in one of the columns of the datagrid header.The datagrid should be filtered according to the value selected in the comboBox.e.

View 1 Replies

Flex :: Detect TextInput Changes On An Editable ComboBox In Flex?

Jan 26, 2010

If my ComboBox is editable how can I tell if a change event comes from a change to the TextInput or a change in the selectedIndex of the drop down?

Is there a way to check for this in the event object?

View 1 Replies

AS2 :: Create A Custom ComboBox - Test Movie - Combobox Has Become An Unclickable White Rectangle With No Label?

Aug 7, 2009

I'm using Flash CS3 and want to create a custom ComboBox. I've followed the steps outlined in "Editing component skins in a new document" (http:/[url]...), but every time I get to the step where I drag the ComboBox Assets folder from the HaloTheme.fla library into my library, if I test movie at that point my combobox has become an unclickable white rectangle with no label, button or anything.

View 2 Replies







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