LoaderContext проблема
Код AS3:
...
var lc:LoaderContext = new LoaderContext();
lc.parameters = {"foo":"bar"};
var s:Sprite = new Sprite();
addChild(s);
lc.requestedContentParent = s;
var l:Loader = new Loader();
var link:String = "http://mysite.ru/toLoadIn.swf";
var req:URLRequest = new URLRequest(link);
try{
l.load(req, lc);
}catch(e:Error){
texF.text = e.name+"\n"+e.message;
}
...
на что я имею
1119: Access of possibly undefined property parameters through a reference with static type flash.system:LoaderContext.
1119: Access of possibly undefined property requestedContentParent through a reference with static type flash.system:LoaderContext.
ПОЧЕМУ?
|