Skip to content
Permalink
Browse files
FLEX-34501 add support for 3rd party components
  • Loading branch information
justinmclean committed Oct 12, 2014
1 parent 3d905a5 commit 44a07f5488f546d19c2efc3f20b023be10152d2e
Showing 1 changed file with 18 additions and 1 deletion.
@@ -42,8 +42,25 @@
compLibTree.dataProvider = explorerTree;
noExamples = (explorerTree..node.(hasOwnProperty("@app") && @app.length() > 0)).length();
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest("3rdparty.xml");
loader.addEventListener(Event.COMPLETE, load3rdParty);
loader.load(request);
}
protected function load3rdParty(event:Event):void
{
var loader:URLLoader = URLLoader(event.target);
var newNode:XML = new XML(loader.data);
if (newNode..node.length() > 0) {
explorerTree.appendChild(newNode.node);
compLibTree.dataProvider = explorerTree;
noExamples += (newNode..node.(hasOwnProperty("@app") && @app.length() > 0)).length();
}
}
protected function checkParameters():void
{
var parameters:Object = FlexGlobals.topLevelApplication.parameters;

0 comments on commit 44a07f5

Please sign in to comment.