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) "
source to share
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.
source to share