This content has been marked as final. Show 3 replies
You can't bind a property in AS with the same syntax as you would in MXML. You would use BindUtils.bindProperty(). See the docs.
OK, I replaced the bad "binding" in the .as code with this:
BindingUtils.bindProperty(thisGeoGrp, "scaleX", Rooms, "scaleX" );
It seems that there is new way to use a number var in this method so I used an <mx> style object that is bound to the ZoomScale var. But there's a problem... This works to set the initial value but does not change as the var is updated (value vs. reference). Is it even possible to do this?
ZoomScale (roomX, roomY, etc.) should be declared as bindable. Is that how you have it?
Then you should try this:
BindingUtils.bindProperty(thisGeoGrp, "scaleX", this, "ZoomScale" );
Assuming that the scope of ZoomScale is within the current app.