ну как это не надо кастить?
Код AS3:
public static var m:Object = FlexGlobals.topLevelApplication;
является Объектом:
Код:
topLevelApplication:Object - mx.core.FlexGlobals
The first application run in an ApplicationDomain is the top-level application. This property is set to a reference to the top-level application in the top-level application's constructor. Each ApplicationDomain will have its own topLevelApplication.
если делаю так:
Код AS3:
bd = new BitmapData(mst.m.width, mst.m.height);
bd.draw(mst.m);
получаю ошибку:
Код:
1118: Implicit coercion of a value with static type Object to a possibly unrelated type flash.display:IBitmapDrawable.
потому и кастю. с кастом всё работает в любой ситуации.
Добавлено через 4 минуты
посмотрел подробнее:
Код AS3:
public class Application extends SkinnableContainer