I have this class:
package apps.common.asFiles
{
    public class ScreenLabelConstants
    {
        public static const NAMEINFO_LABEL:String = "Name";
    }
}

I have this code in my app:
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" label="Name" xmlns:components="apps.common.components.* ">
    <mx:Script>
        <![CDATA[
            import apps.common.asFiles.ScreenLabelConstants;
        ]]>
    </mx:Script>
    <mx:Spacer height="30"/>
        <components:FreedTextLabel id="nameTextLabel" ls="{ ScreenLabelConstants.NAMEINFO_LABEL}" />
</mx:VBox>

The FreedTextLabel has this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx=" http://www.adobe.com/2006/mxml" creationComplete="initFunc()" borderThickness="1" cornerRadius="0" shadowDistance="0" width="80%">
<mx:Script>
    <![CDATA[
        import apps.common.asFiles.ScreenLabelConstants;
        [Bindable] private var _ls:String;
        [Bindable] public var mainLabelText:String;
       
        public function get ls():String
        {
            return _ls;
        }
       
        public function set ls(newValue:String):void
        {
            _ls = newValue;
            mainLabelText = _ls + ":";
        }
       
        public function initFunc():void
        {
            mainLabelText = ls + ":";
        }
       
    ]]>
</mx:Script>
    <mx:Label id="mainLabel" text="{mainLabelText}"/>
</mx:Panel>


The problem is that it won't work.  No data gets passed to my custom component.  Why is that?  Is it because my app is binding the var to constant value?  Or because I'm using a setter/getter on the var receiving the reference?

Thanks,
Tom2
__._,_.___

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





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to