Hello,

inside a repeating component i try to draw some rectancles via a
custom component.

*************
main.mxml
*************
...
<mx:Repeater id="ER" dataProvider="{parentDocument.dbData}">
        <myComp:ShowEvent datestarty="99"/>
</mx:Repeater>
...

*************
ShowEvent.as
*************
package myComponents
{
        import flash.display.*;
        import flash.text.*;
        import mx.core.UIComponent;
        
    public class ShowEvent extends UIComponent{

            public var datestarty:Number = 0;
            
                public function ShowEvent():void{

                        super();
                        
                        var mySprite:Sprite = new Sprite();
                        mySprite.graphics.beginFill(0xcccc00);
                        mySprite.graphics.drawRect(0,0,20,20);

                        var label:TextField = new TextField();
                        label.text = datestarty.toString();
                        mySprite.addChild(label);

                        addChild(mySprite);
                }
    }
}


I have the problem to set the datestarty variable. It is always set to
the initial value, regardless of which value was given from the
repeating component. What i'am doing wrong?

Thanks in advance,
Frank






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to