ActionScript 3 Bind Variables

I am trying to bind one binding variable to another. Basically, I want to create an alias. I'd give up, but it sounds like it would be good to know.

essentially I want the changes to model.configView to be reflected in the view so that view related things ... behave the same as Model.configView related things ... in this example

[Bindable]
var view = model.configView;

... <mx: Label text = "{view.lblThisLabel.name}" / ">

at the moment this is not the case and I am getting errors that say "cannot bind lblThisLabel property" to class "Object" (class is not IEventDispatcher) "

0


source to share


2 answers


Not quite enough code to really tell what's going on, however you've created a view

bindable and that doesn't automatically mean that all children view

are bindable. You will need to go in view

and pin lblThisLabel

.



It is also difficult for all of us to know how it works in your head. Perhaps you should describe this too.

+2


source


Also, I think that even if changes should be detected with your actual code view

, view

will not update if the assigned property model.configView

cannot be bound too ...



0


source







All Articles