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
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
...@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
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.
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
: 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
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
@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
: [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
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
] 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
: 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
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
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
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
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.
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
17 matches
Mail list logo