/ Published in: ActionScript 3
如果在库里做了图片的链接,那么实例化后,可以给任意的宽和高参数,都会得到图片原始的宽和高
Expand |
Embed | Plain Text
var img = new Logo(0,0); trace(img.height);//40; trace(img.width);//100
You need to login to post a comment.
lzyy on 09/18/08
1 person have marked this snippet as a favorite
如果在库里做了图片的链接,那么实例化后,可以给任意的宽和高参数,都会得到图片原始的宽和高
var img = new Logo(0,0); trace(img.height);//40; trace(img.width);//100
You need to login to post a comment.