I have tried e.target.width.....

and it seems to work - but it, obviously, is just affecting the map and not the 
object overlaying them... I need a affect the Sprite....






________________________________
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

Reply via email to