RE: [Flashcoders] RE: Resizing

2010-09-21 Thread Lehr, Theodore
Yikes - I figured it out - one of the xml nodes was passing: 24.06,

when it is expecting a number - so the , is throwing it off - and sending this 
particular mc way north as far as the y is concerned thus making the parent 
Sprite way bigger than it should be


THANKS!!!


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter 
[davehunte...@hotmail.com]
Sent: Tuesday, September 21, 2010 9:07 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] RE: Resizing

are you reading the height of the sprite before the image has finished loading 
into it?

> From: ted_l...@federal.dell.com
> To: flashcoders@chattyfig.figleaf.com
> Date: Tue, 21 Sep 2010 08:44:16 -0400
> Subject: [Flashcoders] RE: Resizing
>
> OK - so I have discovered that it has something to do with the images I am 
> overlaying the map... So I have a sprite - that is holding a map I am 
> then overlaying dots on the map via some xml the height of the parent 
> Sprite is getting screwed up in this process
>
>
>
> 
> From: Lehr, Theodore
> Sent: Tuesday, September 21, 2010 8:20 AM
> To: Flash Coders List
> Subject: Resizing
>
> So I have a sprite that is holding a map and some mc's overlaying the map
>
> I am trying to resize the sprite (and thus everthing in it...)
>
> Something weird happens with the height
>
> The sprite is initially resized to, say, 500x500, and that works fine...
>
>
> Then I have a listener set on when it is clicked and I am, in the listener 
> function, initially doing:
>
> trace(e.currentTarget.width);
> trace(e.currentTarget.height);
>
> and I get
>
> 500
> -107374173
>
> So it is not reading the height correctly...
>
> and the if I try:
>
> e.currentTarget.width = e.currentTarget.width+10;
> e.currentTarget.height = e.currentTarget.height+10;
>
> and I trace it and get:
>
> 510
> 107374173
>
> What am I doing wrong?
>
>
>
>
> ___
> 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] RE: Resizing

2010-09-21 Thread David Hunter

are you reading the height of the sprite before the image has finished loading 
into it?

> From: ted_l...@federal.dell.com
> To: flashcoders@chattyfig.figleaf.com
> Date: Tue, 21 Sep 2010 08:44:16 -0400
> Subject: [Flashcoders] RE: Resizing
> 
> OK - so I have discovered that it has something to do with the images I am 
> overlaying the map... So I have a sprite - that is holding a map I am 
> then overlaying dots on the map via some xml the height of the parent 
> Sprite is getting screwed up in this process
> 
> 
> 
> 
> From: Lehr, Theodore
> Sent: Tuesday, September 21, 2010 8:20 AM
> To: Flash Coders List
> Subject: Resizing
> 
> So I have a sprite that is holding a map and some mc's overlaying the map
> 
> I am trying to resize the sprite (and thus everthing in it...)
> 
> Something weird happens with the height
> 
> The sprite is initially resized to, say, 500x500, and that works fine...
> 
> 
> Then I have a listener set on when it is clicked and I am, in the listener 
> function, initially doing:
> 
> trace(e.currentTarget.width);
> trace(e.currentTarget.height);
> 
> and I get
> 
> 500
> -107374173
> 
> So it is not reading the height correctly...
> 
> and the if I try:
> 
> e.currentTarget.width = e.currentTarget.width+10;
> e.currentTarget.height = e.currentTarget.height+10;
> 
> and I trace it and get:
> 
> 510
> 107374173
> 
> What am I doing wrong?
> 
> 
> 
> 
> ___
> 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