Building an app user interface layout

First of all Im new to Flex so please be patient with me :slight_smile:

So im using FlashDevelop and im trying to build an user interface. Im trying to do it using VBox and HBox components but i guess im missing something because everytime i add a component (TextField or Label) to a Box ti reports an error on build (cannot convert flash.text::TextField@ee7c161 to mx.core.IUIComponent.).

What am i missing here? Any other advice?