Hi,
package
{
public class MyThingy extends UIComponent
{
public function drawThingy():void
{
var myThingy: UIComponent = new UIComponent();
// define thingy....
addChild(myThingy);
}
public function updateText():void
{
// I want to access and addChild to myCanvas
// but this does not work
myCanvas.addChild(myTextField);
}
}
}
Im attaching this in the creationComplete event
addChild(new MyThingy);
my app has a canvas with the id of "myCanvas" and I want to access it
from within the updateText() metheod, how can I do that?