views:

90

answers:

1

Even though I specify different widths and heights for each.

vid = new Video(600, 800);
this.addChild(vid);
trace(vid.width); //600
trace(vid.height); //800

vid2 = new Video(1000, 1200);
this.addChild(vid2);
trace(vid2.width); //600
trace(vid2.height); //800

What is going on here? Is this a flash bug?

A: 

I just tried your sample code in Flash CS4 on the Mac and I didn't see this problem (I had to add var before the variable names). What version and platform are you using? It might be a bug.

Mims H. Wright