Change a movie clip properties inside a loaded SWF

Hello,

I’ve created a swf named (Mapa_Centros_v2.swf) and I load it inside another flash file (teste_loadswf.fla) using the Loader method.

Everything works correctly, but now I want to be able to change the color property of some movie clips inside the “Mapa_Centros_v2.swf” but so far got no luck and even after searching around, I couldn’t find a solution to my problem.

Here is my code to load the Mapa_Centros_v2.swf


// Declare Vars
    // URLs
    var swfURL:URLRequest = new URLRequest("Mapa_Centros_v2.swf");
    
    //
    var loadMap:Loader = new Loader(); 
        loadMap.name = "MapaPortugal";
    var mapInfo:LoaderInfo = new LoaderInfo();
    var objMap:Object = new Object();

// Declare Events
    loadMap.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
        loadMap.load(swfURL);
    btnTest.addEventListener(MouseEvent.CLICK, activateMap);
        
// Declare Functions
    function loadComplete(e:Event):void {
        mapInfo = e.target as LoaderInfo;
        objMap = mapInfo.content;
        mcMapaPortugal.addChild(loadMap);
    }

    function activateMap(e:MouseEvent):void {
        //
    }

I load the swf using the Loader and place the Loader Information inside mapInfo, making a new object (objMap) using it’s content, then I place the swf inside a movie clip.

Using the objMap object I can call any element inside the swf, but so far I haven’t been able to change the properties of those elements., so was hoping someone could have more information about this.

Regards