You need to give some height and width to the button. Try the
following code, it should work, haven't tried it so cannot be sure --
public function test ( )
>
> {
> _uploadButton.x=250;
> _uploadButton.y=189;
_uploadButton.width = 200;
_uploadButton.height = 200;
> _uploadButton.label="Upload";
> addChild(_uploadButton);
> Alert.show("_container:: "+_uploadButton)
>
> }
Convert the base class to UIComponent. If you want to use MovieClip I
think you will have to add child to the application using --
this.rawChildren.addChild(uiContainer);
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.