Hi Vicky,
Thanks it worked!
But another problem is tht when i created 1 movieclip and inside that
movieclip i addchild upload button and i attached movieclip into
uicomponent again button doesn't show in mxml stage.
like example:
localMc.x=0;
localMc.y=0;
localMc.width=360;
localMc.height=450;
_uploadButton.x=0;
_uploadButton.y=0;
_uploadButton.width=100;
_uploadButton.height=100;
_uploadButton.label="Upload";
localMc.addChild(_uploadButton);
var flexui:UIComponent=new UIComponent;
flexui.addChild(localMc);
app.rawChildren.addChild(flexui);
I also used "app.addElement(flexui)".
Again mxml stage jst blank no more _uploadButton:(
On Jun 22, 4:12 am, vicky <[email protected]> wrote:
> 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.