[Flashcoders] arranging

2010-04-28 Thread Lehr, Theodore
If I have mcs that are put on the same layer in the ide - how can I change their order (i.e. send to back, bring forward) in as3? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] arranging

2010-04-28 Thread Nathan Mynarcik
addChild(mc) normally brings them to the top. --Original Message-- From: Henrik Andersson Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: Re: [Flashcoders] arranging Sent: Apr 28, 2010 12:13 PM Lehr, Theodore wrote: If I have

RE: [Flashcoders] arranging

2010-04-28 Thread Lehr, Theodore
...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik [nat...@mynarcik.com] Sent: Wednesday, April 28, 2010 1:33 PM To: Flash Coders List Subject: Re: [Flashcoders] arranging addChild(mc) normally brings them to the top. --Original Message-- From: Henrik

Re: [Flashcoders] arranging

2010-04-28 Thread Henrik Andersson
Lehr, Theodore wrote: the issue is that these are mcs that are NOT put there in as but in the IDE I tried getChildIndex and it says that this is for display objects - not static objects... any way to change order with static objects? If it is visible, it is on the displaylist.

Re: [Flashcoders] arranging

2010-04-28 Thread Nathan Mynarcik
Will getChildIndex and setChildIndex not work either for static objects? -Original Message- From: Lehr, Theodore ted_l...@federal.dell.com Date: Wed, 28 Apr 2010 13:38:39 To: Flash Coders Listflashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] arranging the issue

Re: [Flashcoders] arranging

2010-04-28 Thread Nathan Mynarcik
: Wed, 28 Apr 2010 13:38:39 To: Flash Coders Listflashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] arranging the issue is that these are mcs that are NOT put there in as but in the IDE I tried getChildIndex and it says that this is for display objects - not static objects... any

RE: [Flashcoders] arranging

2010-04-28 Thread Lehr, Theodore
Mynarcik [nat...@mynarcik.com] Sent: Wednesday, April 28, 2010 1:51 PM To: Flash Coders List Subject: Re: [Flashcoders] arranging Will getChildIndex and setChildIndex not work either for static objects? -Original Message- From: Lehr, Theodore ted_l...@federal.dell.com Date: Wed, 28 Apr

Re: [Flashcoders] arranging

2010-04-28 Thread Nathan Mynarcik
@chattyfig.figleaf.com Subject: RE: [Flashcoders] arranging ok - so I am trying this: var curChild=getChildByName(e.currentTarget.name); var curIndex:int=getChildIndex(curChild); trace(curIndex); and it seems as though it is counting from the back up... so if I have 12 mcs, then the one no top

RE: [Flashcoders] arranging

2010-04-28 Thread Lehr, Theodore
: [Flashcoders] arranging This worked with three circles on the stage in the timeline. All have the same eventlistener to them. Does error if the object is already at the top. Have fun! function getIndex(e:MouseEvent):void { var mc:MovieClip = MovieClip(getChildByName(e.currentTarget.name

Re: [Flashcoders] arranging

2010-04-28 Thread Juan Pablo Califano
From: flashcoders-boun...@chattyfig.figleaf.com [ flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik [ nat...@mynarcik.com] Sent: Wednesday, April 28, 2010 1:51 PM To: Flash Coders List Subject: Re: [Flashcoders] arranging Will getChildIndex and setChildIndex not work

Re: [Flashcoders] arranging

2010-04-28 Thread Hans Wichman
] On Behalf Of Nathan Mynarcik [ nat...@mynarcik.com] Sent: Wednesday, April 28, 2010 1:51 PM To: Flash Coders List Subject: Re: [Flashcoders] arranging Will getChildIndex and setChildIndex not work either for static objects? -Original Message- From: Lehr, Theodore ted_l

RE: [Flashcoders] arranging

2010-04-28 Thread Lehr, Theodore
: Wednesday, April 28, 2010 2:17 PM To: Flash Coders List Subject: Re: [Flashcoders] arranging The display list is managed as a stack. New items go on top when you add them by default. So the first item you added will have index 0. If you addChild() again, the new child will be at index 1. If you want

Re: [Flashcoders] arranging

2010-04-28 Thread Henrik Andersson
Lehr, Theodore wrote: ok - but what would container be for stuff just placed on the stage in the IDE?? The main timeline instance of course. It even has the class name MainTimeline unless you set an explicit document class. ___ Flashcoders

Re: [Flashcoders] arranging

2010-04-28 Thread Nathan Mynarcik
stage -Original Message- From: Lehr, Theodore ted_l...@federal.dell.com Date: Wed, 28 Apr 2010 15:28:38 To: Flash Coders Listflashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] arranging ok - but what would container be for stuff just placed on the stage in the IDE

Re: [Flashcoders] arranging

2010-04-28 Thread Henrik Andersson
Nathan Mynarcik wrote: stage stage!=root as I always say. The stage has only one object by default, the main timeline. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] arranging

2010-04-28 Thread jonathan howe
This is also the part of the program where we discourage explicit references to root, as it will break if the swf is ever loaded by another swf, etc. etc. On Wed, Apr 28, 2010 at 3:52 PM, Henrik Andersson he...@henke37.cjb.netwrote: Nathan Mynarcik wrote: stage stage!=root as I always say.

Re: [Flashcoders] arranging

2010-04-28 Thread Henrik Andersson
jonathan howe wrote: This is also the part of the program where we discourage explicit references to root, as it will break if the swf is ever loaded by another swf, etc. etc. Except that it wont. Root is always the main timeline of the swf file the code comes from. It is not always the