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