Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

keypress and textareas

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ChrisMay@MSM - 14 Jul 2008 15:38 GMT
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.)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.