First create an instance of your GreetingsApp class and do the following:
private var greetingsApp:GreetingsApp = new GreetingsApp();
var uiComp:UIComponent = new UIComponent();
Hope this works for you...
If this post answers your question or helps, please kindly mark it as such.
I'm really sorry but i don't catch it.
It would be great if you could explain it in more detail
.First create an instance of your GreetingsApp class and do the following:
With that you mean that i should put the code in the MXML-File ?
Or create a new Actionscript-Class ?
I'm really sorry for bothering you!
I don't see calls to endFill().
Try extending Group or SpriteVisualElement instead of Sprite
No need of creating another mxml file or an Actionscript file...
Write the actionscript code which I gave you with in your mxml file in one function ....in a script block and call that function in any event say creationComplete() or applicationComplete() as you wish or your application needs..
Also Please include the below line of code in your ActionScript class that you wrote at the end..
Thanks & Regards,