简体   繁体   English

如何访问/设置Flash AS3中外部swf文件中不同关键帧中的动态文本框?

[英]How to access/set dynamic text box which is in defferent keyframe in external swf file in flash AS3?

I have a external swf file which has a dynamic text field in key-frame 70 how can i set that field's text from another fla project. 我有一个外部swf文件,该文件在关键帧70中有一个动态文本字段,如何设置另一个fla项目中该字段的文本。

I tried like 我试过像

ldr = new Loader();
rq = new URLRequest("extarnal.swf");
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, ExLoaded); 
ldr.load(rq);

function ExLoaded(e:Event):void 

{                   
    var externalSWF:MovieClip= MovieClip(e.currentTarget.content);
    externalSWF.ThatDynamicText.text="this is a test";  // got error here 
    addChild(externalSWF);

}

You can add a layer for the dynamic text field and expand the layer 70 frames. 您可以为动态文本字段添加一个图层,并将该图层扩展70帧。 related post: How to refer to object from other keyframe 相关文章: 如何从其他关键帧引用对象

If using TLF text in external swf file check out this post . 如果在外部swf文件中使用TLF文本,请查看此帖子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM