I have a .png imported to library with linkage name ‘Header’ and then loaded whole .swf to another’s applicationDomain.
Is there a possiblibility to create new bitmap using original width and height?
var b:Bitmap = new Bitmap(new (ApplicationDomain.currentDomain.getDefinition("Header") as Class)(w,h));
//I "don't know" what w and h values are in original BitmapData, since It is from external library
I could check in that external library width and height which are 1013x47 and hardcode it, but when I decide to change image with another dimensions I then have to change that hardcoded value. Can this be dynamic?