Re: [Flashcoders] finding x of sprite

2010-02-25 Thread Henrik Andersson
Lehr, Theodore wrote: given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace("mSprite.x = "+mSprite.x); I would think that I should be tracing "mSprite.x

RE: [Flashcoders] finding x of sprite

2010-02-25 Thread Lehr, Theodore
oders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, > Theodore > Sent: donderdag 25 februari 2010 14:27 > To: Flash Coders List > Subject: RE: [Flashcoders] finding x of sprite > > yeah - but the goofy thing is that when I trace the height

Re: [Flashcoders] finding x of sprite

2010-02-25 Thread tom rhodes
oders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, > Theodore > Sent: donderdag 25 februari 2010 14:27 > To: Flash Coders List > Subject: RE: [Flashcoders] finding x of sprite > > yeah - but the goofy thing is that when I trace the height an

RE: [Flashcoders] finding x of sprite

2010-02-25 Thread Cor
Subject: RE: [Flashcoders] finding x of sprite yeah - but the goofy thing is that when I trace the height and width I get the height and width of the rectangle IN the sprite... my assumption would be that I would basically get back the dimensions of the stage if that is how big the sprite is

RE: [Flashcoders] finding x of sprite

2010-02-25 Thread Lehr, Theodore
From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Ross (N-SGIS) [ross.l...@lmco.com] Sent: Thursday, February 25, 2010 8:12 AM To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite In the code example below it looks like you

RE: [Flashcoders] finding x of sprite

2010-02-25 Thread Lehr, Ross (N-SGIS)
-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: Thursday, February 25, 2010 7:58 AM To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite wow - this is something I am ging to have to wrapped my head around I set the x,y of the sprite at creation to: 15, 337 (with a

Re: [Flashcoders] finding x of sprite

2010-02-25 Thread Paul Andrews
-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor [c...@chello.nl] Sent: Thursday, February 25, 2010 7:38 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] finding x of sprite Your sprite position is 0 and IN there, there is the rectangle a

RE: [Flashcoders] finding x of sprite

2010-02-25 Thread Cor
To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite wow - this is something I am ging to have to wrapped my head around I set the x,y of the sprite at creation to: 15, 337 (with a w,h of 646,207) BUT the x/y traces as 0,0 if I do: spret.x = 15; it moves it 15 as related to

RE: [Flashcoders] finding x of sprite

2010-02-25 Thread Cor
: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:58 To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite wow - this is something I am ging to have to wrapped my head around I set

RE: [Flashcoders] finding x of sprite

2010-02-25 Thread Lehr, Theodore
...@chattyfig.figleaf.com] On Behalf Of Cor [c...@chello.nl] Sent: Thursday, February 25, 2010 7:38 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] finding x of sprite Your sprite position is 0 and IN there, there is the rectangle at 15 px. trace(mSprite.width); // //set mSprite's x

Re: [Flashcoders] finding x of sprite

2010-02-25 Thread Geografiek
No, mSprite.x = 0 refers to the x-position of mSprite in the coordinate space of mSprite's parent (which is (0,0) by default if you never set it). The expected x=15 is the position of the newly drawn rectangle in the coordinate space of mSprite. localToGlobal does not refer to Points per se

RE: [Flashcoders] finding x of sprite

2010-02-25 Thread Cor
Sent: donderdag 25 februari 2010 13:29 To: Flash Coders List Subject: [Flashcoders] finding x of sprite given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite);

[Flashcoders] finding x of sprite

2010-02-25 Thread Lehr, Theodore
given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace("mSprite.x = "+mSprite.x); I would think that I should be tracing "mSprite.x = 15" instead I get "mSp