Amn
08-17-2005, 09:27 AM
I dont know if this is old news but i wanted to post a thing I made.
TextField.prototype.onSetFocus = function()
{
TextField.prototype.ivl1 = setInterval(updateAfterEvent, 0);
};
TextField.prototype.onKillFocus = function()
{
clearInterval(TextField.prototype.ivl1);
};
It makes the textfields refresh the cursor as fast as they can, bring the experience more close to that of native operating system typing. Because typing display response in Flash is slow. This will work even for movies that have 1fps specified in the Document properties. The downside is that the CPU usage will go up dramatically when a lot of movieclips animate beside the textfield in focus. However when it loses focus everything goes back to normal. You only need to execute the above once for a single player instance.
Comments ? :)
TextField.prototype.onSetFocus = function()
{
TextField.prototype.ivl1 = setInterval(updateAfterEvent, 0);
};
TextField.prototype.onKillFocus = function()
{
clearInterval(TextField.prototype.ivl1);
};
It makes the textfields refresh the cursor as fast as they can, bring the experience more close to that of native operating system typing. Because typing display response in Flash is slow. This will work even for movies that have 1fps specified in the Document properties. The downside is that the CPU usage will go up dramatically when a lot of movieclips animate beside the textfield in focus. However when it loses focus everything goes back to normal. You only need to execute the above once for a single player instance.
Comments ? :)