Flex :: Access (reference) Custom ItemRenderer In TileList?

May 31, 2011

I have a TileList cp with 10 item. How can i call a function in 4. item (for example) from outside, where i created a TileList cp?

View 1 Replies


Similar Posts:


Flex :: Access TileList Item Index In A Custom Item Renderer?

Mar 4, 2011

<mx:itemRenderer>
<mx:Component>
<mx:Canvas>

[code]......

View 2 Replies

Flex :: Itemrenderer - Image Switching Place In Tilelist?

Oct 26, 2009

I'm running into an odd issue with itemRenderers inside a TileList.Here is a working example without an itemRenderer: 152.org/flex/

Here is the broken version with an itemRenderer: 152.org/brokenExample/. (I don't have the rep to make both of these a link)Both examples have "View Source" enabled.To see the problem use the broken example, select an album and scroll down one row. Scroll back up and the images will be switched.If you try this on the working example it's fine.This seems to be a widely known bug, but I can't find a solution for it.

UPDATE: I started playing with this example again and found out something else. Turns out you don't have to override the data setter. You can create a new method in the itemRenderer that is set whenever the tile wants to refresh. So the trick is to not rely on the initialize or creationComplete methods.This is what I have for the itemRenderer in the Application.

<itemRenderers:ImageTile img="{data}"/>

This is the code I have in the itemRenderer.

public function set img(value:String) : void {
trace("setting source: " + value);
this.source = value;[code]....

I updated my example to reflex this change.

View 2 Replies

Actionscript 3 :: Custom TileList Component FLASH CS5 - Built A Skin For A TileList

Sep 17, 2011

has anyone made a Custom Skin for a TileList component in Flash CS5. I want to change the scrollbar of the TileList, i want the track bar as just a thin white line and the thumb a orange circle, this for a Touch Interface.

View 1 Replies

Flex - PopUpButton With TileList And Custom Renderer?

Jul 25, 2010

I have prepared a simple test case for a PopUpButton opening a TileList with black and red entries and it mostly works, but has 2 annoyances. I've searched a lot, tried several variants (added [Bindable] members in my renderer; added color member to the bids array; created my public override set data() method; ...) and has been getting some answers too, but they are way too general.

1) Scrolling "tl2" right-left doesn't work well: the entries are displayed in a mix of red and black. I know the TileList reuses itemRenderer, but how do I fix the problem?

2) In debug-mode I get numerous warnings: warning: unable to bind to property 'label' on class 'Object' (class is not an IEventDispatcher)

[Code]...

View 1 Replies

Flex :: Custom ItemRenderer And Editor?

Feb 15, 2010

I've created a custom ItemRenderer extending UIComponent and implementing IListItemRenderer. This renderer contains a Text-Object to display the value.

For editing I'm using the standard ItemEditor (TextInput).

Now, when I want to edit a value, I click on a cell and the editor is created. But instead of displaying the value which was displayed in the renderer, "[object Object]" is displayed.

View 1 Replies

Flex :: Custom ItemRenderer Does Not Use Styles Specified

Mar 18, 2010

I have a custom item renderer which I use for my DataGrid. The DataGrid has specified selectionColor, rollOverColor and themeColor. The Problem is that the custom item renderer, does ignore those colors, and doesn't give any Feedback...

I tried to add the lines:
setStyle("selectionColor", 0xEDF1F7);
setStyle("rollOverColor", 0xE1F5DE);
setStyle("themeColor", 0x3569B0);
But with no effect...

View 1 Replies

Flex :: Selecting A Custom Itemrenderer In A Datagrid

Mar 15, 2010

I have posted two problems with a custom itemRenderer see this post. My primary Problem is, that it always selects a wrong line (one under the one I select). I now realized that this happens, when I save back the content of the itemRenderer to the dataProvider. If I code this part out, the dataGrid works as expected...

View 2 Replies

Flex :: RadioButton In Custom DataGridColumn ItemRenderer In AS3

Apr 30, 2010

I have a datagrid that I want to add a column of radio button using AS3 (instead of mxml). I was able to do this with a custom itemRenderer.
var dgc:DataGridColumn = new DataGridColumn();
dgc.itemRenderer = new ClassFactory(com.mypackage.RadioBtnColumnItemRenderer);

In my RadioBtnColumnItemRenderer.mxml, I have a box with a radioButton... like so:
<?xml version="1.0" encoding="utf-8"?>
<mx:Box xmlns:mx="[URL]" horizontalAlign="center" verticalAlign="middle">
<mx:RadioButton id="btnRadio" groupName="btnRadioSelect"/>
</mx:Box>

When I run the application, the radio button shows up in the column as it should. However, I cannot select just ONE of the radio buttons. I am able to select all of them, but I don't want this... I want the ability to select one and then if I select another one, then the first one is unselected and the current one becomes selected (just like you would expect radio buttons to work).

View 2 Replies

Flex :: Custom Combo Box Itemrenderer In Datagrid

Oct 26, 2010

A combo box as an item renderer for a data cell in a Flex Datagrid has been demostrated at various blogs. What if that combo box has to have an external dataprovider that has to be set at the time of converting the renderer class to a ClassFactory.

View 1 Replies

Flex :: Dispatching Custom Event From ItemRenderer?

Feb 15, 2012

I'm trying to dispatch a custom event from a custom ItemRenderer. This is my custom event
package events {
import customClass.Product;
import flash.events.Event;
public class CopyProductEvent extends Event {
public static const COPY_PRODUCT:String = "COPY_PRODUCT";
public var picked:Prodotti;
[Code] .....
The event from the function is dispatched correctly... I can't intercept it..

View 1 Replies

Flex :: Flex Drag And Drop Between AdvancedDataGrid With Custom ItemRenderer

Feb 26, 2011

I have implemented drag and drop between 2 AdvancedDataGrid, but the default behaviour from Flex displays the row data during the drag using the grid item renderer showing all 5 columns.

Instead, I would like to display an icon / image or my own custom item renderer during the drag and drop.

View 2 Replies

Flex :: Limit Width Of Custom List Itemrenderer

Jul 23, 2009

I'm using a custom itemrenderer to display a list of photos and need to know how to control the width. At the moment it does this: Which, as I'm sure you'll agree, is eye-bleedingly ugly. The list is created like this:

[Code]...

View 3 Replies

Flex :: Linking DataProvider With Custom ItemRenderer In A DataGrid?

Mar 11, 2010

Im working at a DataGrid which has a custom itemRenderer with a checkbox and a Label inside. Im struggling adding the the values from a xml to the wright label dynamically... how can I make the connection from the datagrid's dataProvider (a xml doc) to the label and the checkbox? My itemRenderer loks a following:

<mx:Component id="ChoiceRenderer">
<mx:HBox width="100%" height="100%" horizontalAlign="center" verticalAlign="middle" horizontalScrollPolicy="off">
<mx:CheckBox/>[code].....

View 1 Replies

Flex :: Add A Spark Component To A Mx Extended Custom Itemrenderer?

Nov 14, 2010

have been working on an air app for quite some time and in one of my mx:lists i have a custom renderer written in pure AS (no mxml). it extends the listitemrenderer mx componenet. in it i have overrode the createChildren() function to add some children of my own.

now, fort right-to-left text i want in this itemrenderer, i would like to add a spark:TextArea component in this createChildren() function

is there a way to do so?

this is the itemRenderer:
import flash.text.TextField;
import mx.controls.listClasses.ListItemRenderer;

[Code].....

View 2 Replies

Flex :: Get A Custom ItemRenderer To Scroll The DataGrid Rather Than Its Cell?

Jun 2, 2009

I'm having an issue with a custom ItemRenderer I've written for a DataGrid. With this ItemRenderer, it's possible that the contents could exceed the width and height of the DataGrid cell - and when this happens, scroll bars appear, letting me scroll the individual cell.What I would like, however, is that when the contents of the cell are too large, the entire DataGrid scrolls, rather than the individual cells.

Now, when I set the custom ItemRenderer's horizontal and vertical scroll bar policies to "off", I get the vertical scrolling on the DataGrid that I want (the individual cells stretch to accommodate the full height of the contents) but I don't get any horizontal scrolling. Instead, any content too wide for the cell is clipped. Incidentally, setting the DataGrid's horizontal scroll bar policy to "on" has no effect, the scroll bar gutter is drawn, but nothing scrolls Is there a way to force the DataGrid to scroll horizontally when my custom ItemRenderer's contents are too wide for the cell?

View 1 Replies

Flex - Access The DataGridColumn From It's ItemRenderer?

Mar 3, 2010

I am using a custom componenet based off of text as an itemRenderer for a dataGrid that is displaying an XMLList. I want to be able to re-use this itemRenderer for multiple columns, how do I access the dataGridColumn so I know which field to assign to the text value?

super.data gives me the whole XML item, super.parentDocument gives me the whole DataGrid

View 1 Replies

Flex :: Hero Spark Component - Changing View From Within Custom Itemrenderer?

Mar 22, 2011

I've made a custom list itemRenderer with 2 buttons and a label. One button deletes the list entry (and thats not the problem) the second button would change the actual view.how I can change actual view within the itemrenderer ?

View 1 Replies

Flex :: Access ItemRenderer Of A Selected Item?

Feb 3, 2010

I have a TileList with thumbnail images. Under each thumbnail images I display the name of the image. I want to build rename functionality. So under the TileList is a "Rename selected image" button.

When this button is clicked, I would like to change the state of the itemRenderer component. The label underneath the image will change into a TextInput so that the user can type a new name. This is much like the Windows rename file functionality.

How can I access the itemRenderer of the selected image? How can I make it happen that it listens to the click event of the Rename button?[code]...

View 3 Replies

Flex :: Cannot Access Constant Through ItemRenderer Using ParentDocument?

Jan 18, 2011

I have an itemRenderer inside a dataGrid, and I am able to access variables on the mxml file (in a *.as script file referenced from the mxml) using parentDocument. However, I am unable to access a constant in the same script file. If I change the constant to a regular var, I can access it. I created a getter function for the constant and it works, but why can't the constant be accessed directly?

View 1 Replies

Flex :: Differentiate Between A Data Provider Update And A Itemrender Being Recycled When Using A Custom Itemrenderer In A DataGroup?

Oct 18, 2010

How do I differentiate between a data provider update and a itemrender being recycled when using a custom itemrenderer in a DataGroup?I have overridden the set data function of the custom item renderer, but I have found that on making a change to the ArrayCollection used as the DataProvider some of the item renderers are not assigned the same object they had before the update. This has made it almost impossible for me to distinguish between a data update and an itemrender being recycled. Also, the data never seems to get set to a value = null, so that seems to be out as well.

View 2 Replies

ActionScript 3.0 :: Custom Function - Error #1009: Cannot Access A Property Or Method Of A Null Object Reference?

Jun 4, 2009

I have a custom function that doesn't function correctly the first time the function executes it removes a textFiled from the display list without a problem but the second time that it executes it won't remove a diffrent textfield and I don't know why here is the code from the time the textField is added to the diplay list to where its deleted.Btw the function in question is being executed by a custom event listener.....the errors i receive are TypeError: Error #1009: Cannot access a property or method of a null object reference...Also note that i can remove the textField in question from any function other thatn the one the custom event executes.

PHP Code:

sendBtn.addEventListener(MouseEvent.CLICK, sendMsg0,false,0,true);
msgOut.addEventListener(KeyboardEvent.KEY_DOWN, sendMsg1,false,0,true);
comboBox.addEventListener(Event.CHANGE,chFontSize,false,0,true);[code]..........

View 2 Replies

Flex :: Access A Custom Property In A Custom Class?

Jan 25, 2010

I couldn't work it out yet...

package components {
public class templateSelection extends VBox {
static public var tempSelectionBag:Dictionary;

[Code]....

I want to have a custom class tempSelection with a Dictionary as a public accessable property of that class. If I use this code, the compiler tells me:

1046: Typ wurde nicht gefunden oder war keine Kompilierungszeit- onstante:Dictionary

Which translates to:

Type was not found or was not a compile-time constant: Dictionary

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

ActionScript 3.0 :: Custom Scroll In Tilelist Component

Feb 13, 2011

i've a tilelist component on my screen which has many entries (more than 10).it displays only 3 items. i've created two buttons for scrolling. right button and left button.if right button is clicked, tilelist component will scroll to next 3 items.likewise if left button is clicked, tilelist component will scroll to previous 3 items.i know it can be done with tileList.scrollToIndex() command.but the problem is, it directly switches to specified number while i want to scroll (tween)..

View 1 Replies

Actionscript 3 :: TileList Custom ImageCell, Buttons/sprites On Each Image?

Dec 19, 2010

im trying to add some buttons or sprites on each of TileList items, i even made my own ImageCell class and inject some code that adds sprite on each image but it is not clickable - all clicks are reffering to "object MyImageCell" not that specific sprite

View 1 Replies

ActionScript 3.0 :: Access Movieclip Inside Tilelist?

Feb 21, 2012

I searched the forum but could not find solution to my particular problem.Here is the scenario,I have a movieclip with two textfields in library.There is a tilelist component on stage to which data provider is assigned at runtime.After that movieclip inside each tile will get updated with related texts.But the thing is i'm not able to access movieclips inside tiles.

View 4 Replies

ActionScript 3.0 :: Access Image Size In TileList Cell?

Nov 29, 2009

I am using the default TileList component in AS3/CS4, where a user can upload their images and it is displayed in the TileList by using the URL of the upload as the source parameter.The final piece of the puzzle is knowing the dimensions of the image that was uploaded, but bugger me if I can find how to access each image that is displayed in each cell of the tilelist. I can of course get the dimensions of the cell itself (which of course is always the same for each one), but I want the content of the scaled image within the cell ..

View 5 Replies

ActionScript 3.0 :: Access To Class Instance Inside TileList And DataProvider?

Aug 29, 2009

I have a TileList that is fed by a DataProvider.  The DataProvider places a source Class (and corresponding MovieClip) into the TileList as visual and interactive objects. [code]...

View 7 Replies

Flex :: Cannot Access A Property Or Method Of A Null Object Reference

Sep 4, 2010

I try to do preloder in Flex for my project written in Flash. I make this with the help of this site link text My Flash project have next source in main class called Game

stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUp);
private function keyDown(event:KeyboardEvent) {

[Code]....

Flex application work but Flash application does not react to button presses

how I can make preloader and work buttons together

View 2 Replies







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