flash-v3-components

Datagrid selected row at a certain column as3

自古美人都是妖i 提交于 2019-12-25 01:29:42
问题 I need to get the value of a certain column in the selected row via AS3, how can I do this? It keeps returning null when I try grid.SelectedItem.text ... Thanks for the help! I need to be able to reference the column by name, in this case "ID". EDIT: Does this require an event or something? Shouldn't there be a method for this built in? You'd think so... 回答1: Can you be a bit more specific ? You can get get all the data you need from the DataGrid using the selectedItem.yourProperty. Can you

ActionScript - Access List/DataProvider From Custom CellRenderer

我与影子孤独终老i 提交于 2019-12-11 06:52:40
问题 the code below sets up a List object in the main controller class that uses a custom cell renderer (CustomListCell class). the CustomListCell class creates a Button object for the cell that will be used to delete itself from the List's DataProvider. how can i properly access the parent List object from its custom cell renderer? //Controller Class private function createList():void { provider = new DataProvider(data); list = new List(); list.width = 200; list.height = 400; list.rowHeight = 50;

AS3 create component using Flash CS4

最后都变了- 提交于 2019-12-08 12:45:54
问题 I would like to create a basic component consisting of a textbox and a label next to it (in other words an InputText and a StaticText). I only need to set and get the text in the Input textbox, the static text will stay as is. Any help would be highly appreciated! Jasco 回答1: This sounds a bit vague. You could have two TextFields inside a Sprite, something like: package { import flash.display.*; import flash.text.*; /** * @author georgeprofenza */ public class FormItem extends Sprite { private

How to handle Unhandled #2044 errors from Flash tilelist when changing dataprovider?

孤街浪徒 提交于 2019-12-08 12:45:33
问题 I have a tilelist component using a custom ImageCell based item renderer. I know that at times some of the images it is trying to retrieve will not be found and I am able to handle this via an IEOrror listener on the custom ImageCell loader. However, if I set the data provider, then it is changed before all images have completed their loading or error process, the flash debug player throws up an unhandled #2044 error in firefox stating that an image could not be found. In opera with the debug

how to create a custom cell renderer for a tile list in flash

感情迁移 提交于 2019-12-02 17:09:15
问题 I need to implement a custom cell renderer in a project of mine, I have done some search on google but couldn't find what I need. I need each cell in the tile list to display 2 icons with couple of labels . I need a good example to start it. If possible I need a way to design the template as a MovieClip and pass it to the tilelist for rendering the cells. 回答1: To build a custom cell renderer you need extend a class of choice from the available listClasses. ImageCell looks like a good start

how to create a custom cell renderer for a tile list in flash

丶灬走出姿态 提交于 2019-12-02 13:44:39
I need to implement a custom cell renderer in a project of mine, I have done some search on google but couldn't find what I need. I need each cell in the tile list to display 2 icons with couple of labels . I need a good example to start it. If possible I need a way to design the template as a MovieClip and pass it to the tilelist for rendering the cells. To build a custom cell renderer you need extend a class of choice from the available listClasses . ImageCell looks like a good start for your project. You would: Extend the list class add your own bits in(labels/TextField, etc.) override