As3 externally loaded swf from the network to control externally loaded swf from the network

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; //// GIVES ACCESS TO "Content.swf"
var TheStage:Object = this.parent.parent.parent as Object; //// GIVES ACCESS TO STAGE
trace(TheStage.stage.stageWidth);
trace(parentObj);  ///    [object MainTimeline]
trace(parentObj.ONE); /// [object Loader]
trace(parentObj.TWO); ///  [object Loader]

parentObj.alpha = .3; /// NOW I CONTROL THE ALPHA OF "Content.swf" from ONE.swf
var ControlTWO:Loader = parentObj.TWO; // GIVES ACCES TO LOADER TWO

ControlTWO.alpha = .3; // NOW I CONTROL THE ALPHA OF TWO.swf from ONE.swf


BUT HOW DO I GET ACCESS TO CONTROL THE CHILDREN IN "TWO.swf" from "ONE.swf"


var TWOchildren:MovieClip = MovieClip(TWO.content); // DOES NOT WORK
TWOchildren.ChildInTWO.alpha = .3;


var TWOchildren = TWO.content as MovieClip; // DOES NOT WORK
TWOchildren.ChildInTWO.alpha = .3;  // DOES NOT WORK

TWOchidren.FunctionInTWO(); /// DOES NOT WORK

}

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 ---------------

I PUT THIS GRAPHIC TOGETHER TO HELP SHOW WHAT I AM TRYING TO DO. , : http://mycontactcorner.com/sandbox/testing/ChildTwo.jpg

0
3

, ! JESUS ​​ STACK OVER FLOWING !

var InsideConent:Object = this.parent.parent as Object; //// GIVES ACCESS TO "Content.swf"
var ItWorksNow:Sprite = MovieClip(InsideConent.TWO.content).ChildInTWO;  /// 

ItWorksNow.x = 333;  /// I can control property x
ItWorksNow.alpha = .3;  /// I can control the ALPHA! :)

WOO HOOOOOO!:)

!:)

+2

:]

, :

import flash.system.ApplicationDomain;
import flash.system.LoaderContext;
var loader:Loader = new Loader ( urlRequest , new LoaderContext(false, ApplicationDomain.currentDomain));

:

, , . SWF SWF, (TWO.content) , - .

0

(parent.parent).function(); vise versa movieclip.OtherChildmoviename.function();

- anymovie check actionscript 2, _root,

, ;

0

All Articles