Hi there!
How could I buil an efficient TextField Listener?
I unsuccessfully tried different solutions based on onScroller and onChanged…
Flash Help is not very newbie friendly…
onScroller seems to be the best solution because it can be triggered by AS but the Listener I built isn’t working.
Many thanks in advance for your help.
Best regards,
Gerry
var instructions = new Object();
instructions.onScroller = function(instructFld:TextField) {
if (instructFld.textHeight > instructFld._height) {
//show scrollbar
_root.scrollFull._visible = true;
}
if (instructFld.textHeight < instructFld._height) {
//hide scrollbar
_root.scrollFull._visible = false;
}
};
var instruct:Object = new Object();
instruct.onScroller = function(instructFld:TextField) {
if (instructFld.textHeight > instructFld._height) {
_root.scrollFull._visible = true;
}
if (instructFld.textHeight < instructFld._height) {
_root.scrollFull._visible = false;
}
};
instructions.addListener(instruct);