RE: [BULK] Re: [Flashcoders] Layering, drawing a blank

2008-09-29 Thread Lord, Susan, CTR, DSS
What an awesome reference! Thanks!!

I used:

setChildIndex(aButtons[i], numChildren - 1);

And it worked like a charm.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen
Pike
Sent: Monday, September 29, 2008 3:37 PM
To: Flash Coders List
Subject: Re: [BULK] Re: [Flashcoders] Layering, drawing a blank
Importance: Low

Hi,

It has changed - I think this may help:

http://www.foundation-flash.com/tutorials/changingdepths/

If not, try googling AS3 + depth

Glen

Lord, Susan, CTR, DSS wrote:
> AS3.  
>
> I tried swapDepth() and getDepth, and a fewothers but none worked. Has
> it changed since AS2?
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Matt
S.
> Sent: Monday, September 29, 2008 3:02 PM
> To: Flash Coders List
> Subject: [BULK] Re: [Flashcoders] Layering, drawing a blank
> Importance: Low
>
> AS2 or AS3?
>
> On Mon, Sep 29, 2008 at 2:48 PM, Lord, Susan, CTR, DSS
> <[EMAIL PROTECTED]> wrote:
>   
>> Hi there,
>>
>> I cannot for the life of me remember what the method is to have a
>> 
> layer
>   
>> come to the top of the stacking order when you click it.
>>
>> Any help you can provide is appreciated!
>> Thanks,
>> Susan
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>   

-- 

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [BULK] Re: [Flashcoders] Layering, drawing a blank

2008-09-29 Thread Zeh Fernando

It changed:

myparent.setChildIndex(mychild, myparent.numChildren-1);

Or just:

myparent.addChild(mychild);

Even if it's already a child. It just removes and readds on the top.


Zeh

Lord, Susan, CTR, DSS wrote:
AS3.  


I tried swapDepth() and getDepth, and a fewothers but none worked. Has
it changed since AS2?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt S.
Sent: Monday, September 29, 2008 3:02 PM
To: Flash Coders List
Subject: [BULK] Re: [Flashcoders] Layering, drawing a blank
Importance: Low

AS2 or AS3?

On Mon, Sep 29, 2008 at 2:48 PM, Lord, Susan, CTR, DSS
<[EMAIL PROTECTED]> wrote:

Hi there,

I cannot for the life of me remember what the method is to have a

layer

come to the top of the stacking order when you click it.

Any help you can provide is appreciated!
Thanks,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [BULK] Re: [Flashcoders] Layering, drawing a blank

2008-09-29 Thread Lord, Susan, CTR, DSS
What would my parentDisplayObject be if the objects were drawn directly
onto the stage?  They are now in an object array and I am manipulating
them from there.  I noticed that sometimes they drag behind other
objects though, so wanted to make sure they always be on top.

function startDragging(event:MouseEvent):void {

for (i= 0; i < count; i++) {
if (event.target == aButtons[i] ) {
trace("start dragging");
event.target.startDrag();
}
stage.addEventListener(MouseEvent.MOUSE_UP,
stopDragging);
}
}


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jonathan
howe
Sent: Monday, September 29, 2008 3:34 PM
To: Flash Coders List
Subject: Re: [BULK] Re: [Flashcoders] Layering, drawing a blank
Importance: Low

It absolutely has: the whole display model has changed for the better.

Arguably the most understandable way to do it is a removeChild and
addChild
in succession.

parentDisplayObjectName.removeChild(childYoureMoving);
parentDisplayObjectName.addChild(childYoureMoving);
This works because addChild() puts the new object at the top of the
display
order.

The display object model is definitely worth doing a little reading on,
though.

-jonathan


On Mon, Sep 29, 2008 at 3:06 PM, Lord, Susan, CTR, DSS <
[EMAIL PROTECTED]> wrote:

> AS3.
>
> I tried swapDepth() and getDepth, and a fewothers but none worked. Has
> it changed since AS2?
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Matt
S.
> Sent: Monday, September 29, 2008 3:02 PM
> To: Flash Coders List
> Subject: [BULK] Re: [Flashcoders] Layering, drawing a blank
> Importance: Low
>
> AS2 or AS3?
>
> On Mon, Sep 29, 2008 at 2:48 PM, Lord, Susan, CTR, DSS
> <[EMAIL PROTECTED]> wrote:
> > Hi there,
> >
> > I cannot for the life of me remember what the method is to have a
> layer
> > come to the top of the stacking order when you click it.
> >
> > Any help you can provide is appreciated!
> > Thanks,
> > Susan
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [BULK] Re: [Flashcoders] Layering, drawing a blank

2008-09-29 Thread Glen Pike

Hi,

   It has changed - I think this may help:

   http://www.foundation-flash.com/tutorials/changingdepths/

   If not, try googling AS3 + depth

   Glen

Lord, Susan, CTR, DSS wrote:
AS3.  


I tried swapDepth() and getDepth, and a fewothers but none worked. Has
it changed since AS2?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt S.
Sent: Monday, September 29, 2008 3:02 PM
To: Flash Coders List
Subject: [BULK] Re: [Flashcoders] Layering, drawing a blank
Importance: Low

AS2 or AS3?

On Mon, Sep 29, 2008 at 2:48 PM, Lord, Susan, CTR, DSS
<[EMAIL PROTECTED]> wrote:
  

Hi there,

I cannot for the life of me remember what the method is to have a


layer
  

come to the top of the stacking order when you click it.

Any help you can provide is appreciated!
Thanks,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [BULK] Re: [Flashcoders] Layering, drawing a blank

2008-09-29 Thread eric e. dolecki
Umm... just a little bit. Check out DisplayObject

On Mon, Sep 29, 2008 at 3:06 PM, Lord, Susan, CTR, DSS <
[EMAIL PROTECTED]> wrote:

> AS3.
>
> I tried swapDepth() and getDepth, and a fewothers but none worked. Has
> it changed since AS2?
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Matt S.
> Sent: Monday, September 29, 2008 3:02 PM
> To: Flash Coders List
> Subject: [BULK] Re: [Flashcoders] Layering, drawing a blank
> Importance: Low
>
> AS2 or AS3?
>
> On Mon, Sep 29, 2008 at 2:48 PM, Lord, Susan, CTR, DSS
> <[EMAIL PROTECTED]> wrote:
> > Hi there,
> >
> > I cannot for the life of me remember what the method is to have a
> layer
> > come to the top of the stacking order when you click it.
> >
> > Any help you can provide is appreciated!
> > Thanks,
> > Susan
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [BULK] Re: [Flashcoders] Layering, drawing a blank

2008-09-29 Thread jonathan howe
It absolutely has: the whole display model has changed for the better.

Arguably the most understandable way to do it is a removeChild and addChild
in succession.

parentDisplayObjectName.removeChild(childYoureMoving);
parentDisplayObjectName.addChild(childYoureMoving);
This works because addChild() puts the new object at the top of the display
order.

The display object model is definitely worth doing a little reading on,
though.

-jonathan


On Mon, Sep 29, 2008 at 3:06 PM, Lord, Susan, CTR, DSS <
[EMAIL PROTECTED]> wrote:

> AS3.
>
> I tried swapDepth() and getDepth, and a fewothers but none worked. Has
> it changed since AS2?
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Matt S.
> Sent: Monday, September 29, 2008 3:02 PM
> To: Flash Coders List
> Subject: [BULK] Re: [Flashcoders] Layering, drawing a blank
> Importance: Low
>
> AS2 or AS3?
>
> On Mon, Sep 29, 2008 at 2:48 PM, Lord, Susan, CTR, DSS
> <[EMAIL PROTECTED]> wrote:
> > Hi there,
> >
> > I cannot for the life of me remember what the method is to have a
> layer
> > come to the top of the stacking order when you click it.
> >
> > Any help you can provide is appreciated!
> > Thanks,
> > Susan
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [BULK] Re: [Flashcoders] Layering, drawing a blank

2008-09-29 Thread Lord, Susan, CTR, DSS
AS3.  

I tried swapDepth() and getDepth, and a fewothers but none worked. Has
it changed since AS2?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt S.
Sent: Monday, September 29, 2008 3:02 PM
To: Flash Coders List
Subject: [BULK] Re: [Flashcoders] Layering, drawing a blank
Importance: Low

AS2 or AS3?

On Mon, Sep 29, 2008 at 2:48 PM, Lord, Susan, CTR, DSS
<[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I cannot for the life of me remember what the method is to have a
layer
> come to the top of the stacking order when you click it.
>
> Any help you can provide is appreciated!
> Thanks,
> Susan
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Layering, drawing a blank

2008-09-29 Thread Matt S.
AS2 or AS3?

On Mon, Sep 29, 2008 at 2:48 PM, Lord, Susan, CTR, DSS
<[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I cannot for the life of me remember what the method is to have a layer
> come to the top of the stacking order when you click it.
>
> Any help you can provide is appreciated!
> Thanks,
> Susan
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Layering, drawing a blank

2008-09-29 Thread Lord, Susan, CTR, DSS
Hi there,

I cannot for the life of me remember what the method is to have a layer
come to the top of the stacking order when you click it.  

Any help you can provide is appreciated!
Thanks,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders