Hi Bjorn, are you using the extended version of Observe? http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s. cfm#more Best, Alex
Alex Uhlmann
Consultant (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg,
South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6969
m: +44 (0) 7917 428 951
[EMAIL PROTECTED]
http://weblogs.macromedia.com/auhlmann
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: 12 January 2007 05:09
To: [email protected]
Subject: [flexcoders] AC Observe Tag
More or less this post is a question.
With regards to the use of Adobe Consulting's Observe utility i'm not
getting the expected result.
I've got some simple code where i wish to execute a function when a
value gets set via binding.
When i create my Observe instance the value has not yet been set.
The unexpected result is that,
1. The callbackHandler gets fired immediately after i set
observe.handler, even though the value i have set to observe.source is
== null
2. The callbackHandler is not getting called when the value does get
set.
Here's my code anyway.
private function init():void
{
var ac:Observe = new Observe();
ac.source = distribMap_model.templateSwfAsset;
ac.handler = playTemplatePreview;
}
private function playTemplatePreview(e:*):void
{
trace('playTemplatePreview');
}
private var model:AMModelLocator = AMModelLocator.getInstance();
[Bindable]
private var distribMap_model:DistribMappingModel =
model.tc_model.distribMap_model;
adobe_logo.gif
Description: adobe_logo.gif

