boxid must be on the displaylist, ie; on the stage after adding this line boxid.addChild(img);
do this boxid.validatenow(); On Wed, Mar 4, 2009 at 4:26 PM, Saravanan <[email protected]> wrote: > > Check whether u added to the display list.. > > On Mar 4, 2:15 pm, akshay <[email protected]> wrote: > > Hey hi!! > > I am doing same but i am getting the problem that image is > > not displaying .. > > what is the problem ?? > > Thanks > > Regards, > > Akshay > > > > On Mar 4, 12:07 pm, Sankar <[email protected]> wrote: > > > > > u can add images to box dynamically as follows. > > > > > 1.create object for image and set the source like > > > var img:Image = new Image(); > > > img.source = "image location" > > > 2.Now add it to box, > > > > > boxid.addChild(img); > > > > > On Mar 4, 11:55 am, abhishek <[email protected]> wrote: > > > > > > u can add images runtime same like boxes comes. > > > > I did the same , first tell me how ur images is comming, from xml? > > > > > > On Mar 4, 11:18 am, akshay <[email protected]> wrote: > > > > > > > Hi all, > > > > > I am adding boxes at run time in my application, where i > want > > > > > to add image in selected boxes where the box is also selected by > > > > > user.. Now the problem is that how can i embed the image in the > > > > > selected box dynamically.. > > > > > Pl help me .. > > > > > Thanks in advance, > > > > > Regards, > > > > > Akshay > > > > > > > -- ----------------------------- Regards, HISSAM, ------------------------------ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

