Try this,

canvas_name.setChildIndex(your_object_name, (canvas_name.numChildren-1));

The numChildren property has the total number of objects inside any
container (in this case the canvas). So using the setChildIndex function of
the Canvas, you can set the index of any child instance inside a container.

http://livedocs.adobe.com/flex/2/langref/mx/core/IChildList.html

-- Jeethu Karthik J
  http://jeethukarthik.com

Stephen Leacock  - "I detest life-insurance agents: they always argue that I
shall some day die, which is not so."

On Sun, Dec 14, 2008 at 3:54 PM, ck <cnpitr...@gmail.com> wrote:

>
> Hi  i am creating multiple controls on canvas.
>
> I have one fixed text box. I want that it must remain on top of all
> objects that i have created.
>
> Can you help me?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to