I think you can use the ChangeWatcher class..
-Scott
On 2/2/07, Seth Caldwell <[EMAIL PROTECTED]> wrote:
So something I've been doing is binding properties I don't care about
to functions that take a bindable parameter, so that essentially, I have a
function call occuring whenever the bindable variable changes.
There's probably a quick way to do this that's more legit (and less
feature-obsurity-inherent).
for example
[Bindable] public var s:String;
public function doAlert(somestring:String):uint
{
mx.controls.Alert.show(somestring);
return 0;
}
<Canvas margin="{doAlert(s)}"/>
Will give me an alert if s is ever changed. Is there a line of
actionscript I can use to quickly just establish the doAlert as an
eventlistener on s?
Thanks,
Seth
--
: : ) Scott