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: [email protected] 
[[email protected]] On Behalf Of David Hunter 
[[email protected]]
Sent: Tuesday, September 21, 2010 9:07 AM
To: [email protected]
Subject: RE: [Flashcoders] RE: Resizing

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

> From: [email protected]
> To: [email protected]
> 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
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
                                          
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to