You can't. localid is internal, and you should need it (unless others say the opposite). to get the instance in an event you have "event.target"
El jue., 15 oct. 2020 a las 22:03, wkoch (<[email protected]>) escribió: > I'm sure this is simple but without a debugger I can't figure it out and I > can't find it in the docs > > I've got a simple check box and handler > > <b:CheckBox localId="Check" text="check1" change="DisplayChange(event)" > selected="true"/> > > private function DisplayChange(event:Event):void{ > var item:String; > item = event.currentTarget.localId; > } > > I was hoping the string item would equal "Check" but I get back null. How > can I determine the localId of the element that fired the Event? Is there > a > listing somewhere of the Event properties? Am I using the wrong Event > type? > > > > -- > Sent from: http://apache-royale-users.20374.n8.nabble.com/ > -- Carlos Rovira Apache Member & Apache Royale PMC *Apache Software Foundation* http://about.me/carlosrovira
