![](/img/trans.png)
[英]AS3 Loading external swf from AN externally loaded swf - Accessing Children?
[英]AS3 - accessing and editing loaded swf movieclip from main movie
import com.hydrotik.queueloader.*;
.................
public class Main extends MovieClip
{
private var _ql:QueueLoader;
private function _loadSTRATIntro()
{
QLog.log("_loadSTRATIntro()");
this._ql.addItem("res/swf/STRATIntro.swf", this.introduction_mc);
this._ql.addItem("res/swf/STRATTransitions.swf", this.transitions_mc);
this._ql.addItem("res/swf/STRATDisOrDat.swf", this.STRATdod_mc);
this._ql.addItem("res/swf/STRATMultipleChoice.swf", this.STRATMultiChoice_mc);
this._ql.addItem("res/swf/STRATAttack.swf", this.stratattack_mc);
this._ql.addEventListener(QueueLoaderEvent.QUEUE_COMPLETE, this._onQueueComplete);
this._ql.addEventListener(QueueLoaderEvent.QUEUE_PROGRESS, this._onQueueProgress);
this._ql.addEventListener(QueueLoaderEvent.QUEUE_START, this._onQueueStarted);
this._ql.addEventListener(QueueLoaderEvent.ITEM_COMPLETE, this._onQueueItemComplete);
this._ql.execute();
return;
}// end function
我需要访问主要电影中已加载的STRATTransitions.swf并从中删除一些文本。 swf没有可用的源代码。 有可能实现吗? 预先感谢您提供任何提示。
如果它们都是AS3电影,那么我看不到为什么您无法访问相应的文本字段。 如果文本在动态文本字段中,则可以在加载影片后直接访问它。 如果文本是静态的,则可以使用TextSnapshot类进行更改
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextSnapshot.html
祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.