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.
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. related post: How to refer to object from other keyframe
If using TLF
text in external swf file check out this post .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.