Application Migration Error


hi all

  going migrate code form flex 3 flex 4. uses mx.core.itextinput in code getting follwing errors:

  1.   1061: call possibly undefined method setselection through reference static type mx.core:itextinput.
  2. 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

// @see: http://www.websector.de/blog/2008/04/30/quick-tip-avoid-issues-using-adobes-autocomplete-i nput-component-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

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO