Programmatic equivalent of: {foo(boundProperty)} ?
Is there a programmatic equivalent of the following:

When using mxml, I can bind a property to a function, so that if the property changes, the bound function will be invoked (with the bound property as parameter.

For example:

    <fx:Script>
        <![CDATA[

            [Bindable]
            var type:String;
            private function getText(t:String):String{
            }

        ]]>
    </fx:Script>


    <s:Label text="{getText(type)}" />

Is there a programmatic equivalent?
Thanks in advance!
Programmatic equivalent of: {foo(boundProperty)} ?
===

Is there a programmatic equivalent of the following:

When using mxml, I can bind a property to a function, so that if the property changes, the bound function will be invoked (with the bound property as parameter.

For example:

    <fx:Script>
        <![CDATA[

            [Bindable]
            var type:String;
            private function getText(t:String):String{
            }

        ]]>
    </fx:Script>


    <s:Label text="{getText(type)}" />

Is there a programmatic equivalent?
Thanks in advance!