获取文档索引 和其引用

时间:2020-12-04 11:47:01   收藏:0   阅读:29
//获取索引
var originalDocID = fl.getDocumentDOM().id;

/**
 * 根据flash的名称带后缀名查找其所在的众多打开flash文件中的索引,如:test.fla
 * 在关闭首个打开的文档后,其他已打开文档的索引将递减
 * 
 * 返回
 * 一个整数数组,这些整数表示 fl.documents 数组中文档 name  的位置。
 * 
 * @param	name  要为其找出索引的文档的名称。该文档必须是打开的(str)。
 */
function stage_GegFlashIndex (name) {
	return fl.findDocumentIndex(name);
}


/**
 * 根据flash的索引 获取fla的引用  返回 指定的flash的引用
 * @param	Index   flash的索引(num)
 */
function stage_QuoteFlashByIndex(Index) {
	return fl.documents[Number(Index)];
}

  

原文:https://www.cnblogs.com/dt1991/p/14084120.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!