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

前端 未结 3 1163
南笙
南笙 2020-12-12 05:55

I have had several posts like this but I have not gotten down to the final answer so I put this image together to try and explain what I am trying to do. I AM SO CLOSE. if

相关标签:
3条回答
  • 2020-12-12 06:30

    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;

    0 讨论(0)
  • 2020-12-12 06:35

    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! :)
    
    0 讨论(0)
  • 2020-12-12 06:35

    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.

    0 讨论(0)
提交回复
热议问题