Posted By

lzyy on 09/18/08


Tagged

bitmapData


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

THEPWN3R


get BitmapData's height & width


 / Published in: ActionScript 3
 

如果在库里做了图片的链接,那么实例化后,可以给任意的宽和高参数,都会得到图片原始的宽和高

  1. var img = new Logo(0,0);
  2. trace(img.height);//40;
  3. trace(img.width);//100

Report this snippet  

You need to login to post a comment.