Показать сообщение отдельно
Старый 08.04.2012, 19:09
tonnon вне форума Посмотреть профиль Отправить личное сообщение для tonnon Найти все сообщения от tonnon
  № 1  
Ответить с цитированием
tonnon
 
Аватар для tonnon

Регистрация: Nov 2005
Сообщений: 70
The bomb! 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.
ПОЧЕМУ?