Hi!

I have a simple 'MySpecBox' with a string property 'stuff'. If this
component is in an mx:HBox then it gets the value of the binding. But
when I put it my simple 'MyHBox' component the binding fails. Can
anyone tell me why?

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="vertical" xmlns:local="*">
        <mx:String id="coke">Coca</mx:String>
        
        <mx:HBox>
                <local:MySpecBox stuff="{coke}"/><!-- correct -->
                <mx:Text text="{coke}"/><!-- correct -->
        </mx:HBox>
        <mx:HRule width="50%"/>
        <local:MyHBox>
                <local:MySpecBox stuff="{coke}"/><!-- fails -->
                <mx:Text text="{coke}"/><!-- correct -->
        </local:MyHBox>
</mx:Application>

---------------- MySpecBox:

<?xml version="1.0" encoding="utf-8"?>
<mx:Box xmlns:mx="http://www.adobe.com/2006/mxml";>
        <mx:Script>
                <![CDATA[
                        [Bindable]
                        public var stuff: String;
                ]]>
        </mx:Script>
        <mx:Text text="{stuff}"/>
</mx:Box>

---------------- MyHBox:

<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml";>
        
</mx:HBox>


Thanks,

-- 
 Norbert Csík


--
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/

<*> 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