Remove/King Buttons

0 views
Skip to first unread message

Maria Rodriguez

unread,
Apr 5, 2010, 11:17:49 PM4/5/10
to 68...@googlegroups.com
In order to enable the buttons, I have [Bindable] var madeSelection:Boolean = false; inside Checkerboard, however in Main when I set enabled I am getting the error "attempted access of inaccessible property madeSelection through a reference with a static type ui:Checkerboard". I set enabled="{Checkerboard(tabs.selectedChild.getChildByName('checkerboard')).madeSelection}" Does anybody know how to fix this?

--
Maria I. Rodriguez
Massachusetts Institute of Technology
Electrical Engineering & Computer Science
Class of 2011

Sam Prentice

unread,
Apr 5, 2010, 11:28:35 PM4/5/10
to 68...@googlegroups.com
yeah, i tried that initially and then tried another form of binding to
no avail: "Binding to functions in response to a data-binding event"
in http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_4.html,
not sure if anyone got that approach working. this is probably close
to the elegant solution.

but you can dispatch a madeSelection event from your checkerboard
model that is handled in main which updates the button state directly
or updates a local bindable variable.

Reply all
Reply to author
Forward
0 new messages