I am using a textarea component on stage. I am using it for its auto scrolling
feature. The text is dynamic, but not editable by people viewing the content.
As soon as I put the textarea component in the library, all key listeners and
buttons with on(keyPress) quit working.
If I uncheck the "Export for ActionScript" option in its linkage properties,
the listeners work fine, until an instance of a textarea is on the stage. Then
we are back to all keylisteners not getting any input.
I am using Flash CS3 and coding in AS2.
Has anyone else experienced this? Any solutions?
Thanks!
margotdarby - 14 Jul 2008 16:52 GMT
The code in the component is overriding any other script when the component is
on the stage. This would not be a problem if we could get to the component
code...but of course we can't.
You may have to just avoid the textarea component, and build your own text
box. You can add the scrollbar component separately and see if you have the
same problem. If you do, then the problem is with the scrollbar.
What to do now? You can either lose that scrollbar, figure out how to code
your own, or else put the textbox and scrollbar within a nested movie clip that
remains inactive until you turn it on. (Downside to this is that it might be
clumsy--click here to read something important!--but at least it would keep the
component listener turned off till you needed it.)