Thanks. Is this different from the ObserveValue tag? I generally do not use any parameters in my ObserveValue handlers and get by without any errors?

I'll test this some more.  Thanks for the advice.

- kevin


On Mar 29, 2007, at 2:32 PM, Tim Hoff wrote:


Hi Kevin,

The Observe tag automatically sends the object that you are observing to the handler function:

private function observeHandlerFunction( myProperty : myPropertyType ) : void
{
    // do something
}

<utils:Observe source="{ model.myProperty }" handler="{ observeHandlerFunction }"/>

-TH
__________________________________

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office: 866-CYNERGY

--- In [email protected], Kevin <[EMAIL PROTECTED]> wrote:
>
> has anyone had problems using Paul's Observe tag? I am able to use
> ObserveValue fine, but when I try to use just the Observe tag I get
> an error saying that my handler function was expecting 0 arguments
> and got 1??? Is Observe sending arguments to the handler function
> that ObserveValue doesn't send? How should we set up the handler
> function to use the Observe tag.
>
> Here is the version I am using:
> http://weblogs.macromedia.com/auhlmann/archives/ObserveUtility.zip
>
> Thanks for the help.
>
> - Kevin
>




Reply via email to