안녕하세요 내가 플렉스에 SWFLoader으로 문제가, 내가 easly 기본 응용 프로그램문제를 내가 클릭 방식의 코드를 다음 닫을 때
<mx:VBox id="content" width="100%" height="100%" ></mx:VBox>
public function doIT():void
{
var swfLoader1:SWFLoader = new SWFLoader;
swfLoader1.source = "DayProfileElement.swf";
swfLoader1.percentHeight = 100;
swfLoader1.percentWidth = 100;
swfLoader1.name = "a";
swfLoader1.id = "b";
var panel1:Panel = new Panel;
panel1.percentHeight = 100;
panel1.percentWidth = 100/4;
panel1.name ="c";
panel1.id = "d";
panel1.addChild(swfLoader1);
content.addChild(panel1);
}
많은 SWF를 추가 할 수 있습니다초당 한 번씩 버튼을 누르면 작동하지만 매우 빠르게 할 때 다음 오류가 발생합니다 :
TypeError: Error #1034: Type Coercion failed: cannot convert mx.core::[email protected] to mx.core.IFactory.
at mx.charts.series::AreaSeries/get legendData()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\AreaSeries.as:327]
at mx.charts.chartClasses::ChartBase/get legendData()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\ChartBase.as:1161]
at mx.charts::Legend/populateFromArray()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\Legend.as:666]
at mx.charts::Legend/commitProperties()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\Legend.as:449]
at mx.core::UIComponent/validateProperties()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5807]
at mx.managers::LayoutManager/validateProperties()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:539]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:659]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
루프에서 해당 swfs를 닫을 때 같은 오류가 발생합니다. 자식 응용 프로그램이 다른 자식 응용 프로그램에서 인스턴스화 한 특정 객체에 액세스 할 수없는 것처럼 보입니다. 어떻게 할 수 있습니까?