Hi,
I have been battling with this. I have a TextArea instance named input_txt
I add an event listener to it. and a function readInput().
Flash shows Access to undefined property input_txt 2 times.
This is by doing the OOP way. When writing in the timeline no problems are found.
I think its the problem to find the package to import.
Any idea what’s causing this?
I have imported:
fl.controls.TextArea;
fl.events.*;
flash.events.*;
flash.display.*;
flash.text.*;
private function readInput(event:Event)
{
input = input_txt.text;
trace(input);
}
input_txt.addEventListener(ComponentEvent.ENTER, readInput);
Writing code using packages is really consuming a lot more time… ah!