Application Migration Error
hi all
going migrate code form flex 3 flex 4. uses mx.core.itextinput in code getting follwing errors:
- 1061: call possibly undefined method setselection through reference static type mx.core:itextinput.
- 1119: access of possibly undefined property selectionbeginindex through reference static type mx.core:itextinput.
my code sinplet
textinput.setselection(textinput.text.length, textinput.text.length); textinput.selectionbeginindex; sorry forgeeten imp thing class autocompletemodified extends combobox and from // copyright (c) 2003-2006 adobe macromedia software llc , licensors. // rights reserved. following source code , subject all // restrictions on such code contained in end user license agreement // accompanying product. // // modified jens krause [www.websector.de] avoid issues using flex 3 // // class demonstration purposes only. // use solution extend original autocomplete.as described @ blog entry mentioned above, please. // any hieghly appriceated . regards gaurav kumar pandey
try "selectrange" set selection, and selectionanchorposition , selectionactiveposition, current selection range.
- robin
More discussions in Text Layout Framework
adobe
Comments
Post a Comment