Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript 1.0/2.0 (http://www.flasher.ru/forum/forumdisplay.php?f=93)
-   -   Проблема с UIComponent (http://www.flasher.ru/forum/showthread.php?t=105627)

serunja 19.12.2007 17:27

Проблема с UIComponent
 
есть класс который используется для раскраски ячеек в datagrid
добавляю в грид новые записи в flash studio все работает
когда пытаюсь заполнить из c# ни createChildren ни setValue срабатывают :(

ребята подскажите куда копать

заранее благодарен


Код:

import mx.core.UIComponent;

class ColoredCell extends UIComponent
{
        var coloredLabel: MovieClip;
        var listOwner: MovieClip;
        public var getCellIndex: Function;
        public var        getDataLabel: Function;

        public function ColoredCell() {}
       
        public function createChildren(Void): Void
        {
                coloredLabel = createObject( "Label", "coloredLabel", 1,
                        {styleName:this, owner:this, autoSize:true});
        }

        public function setValue(strValue:String, item:Object, sel:Boolean): Void
        {
                if(item != undefined)
                {
                        coloredLabel.text        = item.text;
                        coloredLabel.color        = item.color;
                }
                else{coloredLabel._visible = false;}
        }
}



Часовой пояс GMT +4, время: 16:33.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.