I had several posts like this, but I did not get to the final answer, so I put this image together to try to explain what I'm trying to do. I am SO CLOSING. if you can help me THANKS UNION. Days worked on this.
HOW DO I CONTROL CHILDREN INSIDE EXTERNAL DOWNLOADED SWF FROM CODE IN OTHER EXTERNAL DOWNLOADED SWF?
EDIT: Below is the THEE code located in "ONE.swf" that I need help with. Only one or two lines that I know, but I just DO NOT WANT to get it.
function FunctionInOne()
{
var parentObj:Object = this.parent.parent as Object;
var TheStage:Object = this.parent.parent.parent as Object;
trace(TheStage.stage.stageWidth);
trace(parentObj);
trace(parentObj.ONE);
trace(parentObj.TWO);
parentObj.alpha = .3;
var ControlTWO:Loader = parentObj.TWO;
ControlTWO.alpha = .3;
BUT HOW DO I GET ACCESS TO CONTROL THE CHILDREN IN "TWO.swf" from "ONE.swf"
var TWOchildren:MovieClip = MovieClip(TWO.content);
TWOchildren.ChildInTWO.alpha = .3;
var TWOchildren = TWO.content as MovieClip;
TWOchildren.ChildInTWO.alpha = .3;
TWOchidren.FunctionInTWO();
}
EDIT: March 16, 2012
I can access swf TWO.swf from ONE.swf and manage it alpha with this line:
trace(MovieClip(parent.parent).ONE);
, , , :
MovieClip(parent.parent).ONE.TheChild.alpha = .3;
END EDIT ---------------
, : http://mycontactcorner.com/sandbox/testing/ChildTwo.jpg