as3 externally loaded swf from network to control externally loaded swf from network

最后都变了- 提交于 2019-11-28 14:42:12
Papa De Beau

Ok I found it!

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! :)

Is see hard style of programming :]

to Your loaders add this , it should help:

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

Second thing :

You should try access to content if You make sure that its loaded . So put start loading of second SWF to loading complete function of first SWF and You should trace(TWO.content) and see is there anything already loaded.

MovieClip(parent.parent).function(); vise versa reference the movieclip.OtherChildmoviename.function();

this structure you can call a function from where ever or anymovie for better explanation check actionscript 2 as it uses the _root, this may make the above clearer

let us no how you go;

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!