Flash not setting width of DisplayObjects?
Hi all you flash gurus,
I've got another interesting Flash issue, and I was wondering if there was some weird case I had to account for. Here's the code:
var c:DisplayObject;
var t:Rectangle;
c.width = t.width;
trace(c.width, t.width);
This results in output of:
0 13
I'm expecting '13 13' as the output... Any ideas what would cause this to happen? It's sporadic, sometimes it'll happen, sometimes it doesn't. Is there some weird race condition I should double check for?
Thanks!