I'm not in a big hurry on this one, but if you've used it, let me know....
I'm trying to use the selection object to grab the text selected in a input text box and set a dynamic text box with the selected text when a button is clicked.
the setup is really simple...
1 input text box, with random text, variable named "TextField1"
1 dynamic text box, variable named "TextField2"
1 button with the following action script:
on(release) {
var objSel = Selection.getFocus()
trace(objSel) ;
var begin = Selection.getBeginIndex() ;
trace(begin) ;
var end = Selection.getEndIndex() ;
trace (end) ;
TextField2 = objSel.slice( begin, end ) ;
}
trace reports : null, -1 -1
I know I've got to be using this wrong... anyone played with the selection object before and gotten it to work? The Jhereg
=~=~=~=~=~=~=~=~=~=~
I never lie.
I'm building a reputation for honesty so I can blow it when something big comes along... This ain't it.
I'm trying to use the selection object to grab the text selected in a input text box and set a dynamic text box with the selected text when a button is clicked.
the setup is really simple...
1 input text box, with random text, variable named "TextField1"
1 dynamic text box, variable named "TextField2"
1 button with the following action script:
on(release) {
var objSel = Selection.getFocus()
trace(objSel) ;
var begin = Selection.getBeginIndex() ;
trace(begin) ;
var end = Selection.getEndIndex() ;
trace (end) ;
TextField2 = objSel.slice( begin, end ) ;
}
trace reports : null, -1 -1
I know I've got to be using this wrong... anyone played with the selection object before and gotten it to work? The Jhereg
=~=~=~=~=~=~=~=~=~=~
I never lie.
I'm building a reputation for honesty so I can blow it when something big comes along... This ain't it.