/ Published in: ActionScript 3

如果在库里åšäº†å›¾ç‰‡çš„链接,那么实例化åŽï¼Œå¯ä»¥ç»™ä»»æ„的宽和高å‚数,都会得到图片原始的宽和高
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var img = new Logo(0,0); trace(img.height);//40; trace(img.width);//100
Comments
