Hi All, I posted the question on another forum but got no answer i am hoping for better luck on here!
In Flash i was building a TextArea and TextInput.
When i pressed control and enter i received this large message in the output:
Attempting to launch and connect to Player using URL C:\Users/
[SWF] C:\UsersUntitled-2.swf - 45485 bytes after decompression
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.controls::TextArea/drawLayout()
at fl.controls::TextArea/draw()
at fl.core::UIComponent/callLaterDispatcher()
Cannot display source code at this location.
Debug session terminated.
To be honest i dont fully understand what all this means. My code appears to be fine its pretty basic has you can see from below:
Any thoughts what caused all this or any suggestion how i can fix it?
Thanks in advance
import fl.controls.TextInput;
import flash.text.TextFormat;
import fl.controls.TextArea;
var tf:TextFormat = new TextFormat();
tf.size = 14;
tf.font = "Arial";
tf.color = 0x00ffff;
var ti:TextInput = new TextInput();
ti.setSize(429, 50);
ti.move(96, 286);
ti.editable = true;
ti.enabled = true;
ti.setStyle("textFormat", tf);
addChild(ti);
var ta:TextArea = new TextArea();
ta.editable = false;
ta.enabled = true;
ta.setSize(246, 20);
ta.move(96, 286);
ta.setStyle("textFormat", tf);
addChild(ta);