控制其它时间轴

若要指定时间轴的路径,请结合使用斜杠语法 (/) 和点 (..) 来生成路径引用。也可以通过 Flash 5 记号 _levelN_root_parent 来分别引用特定的影片级别、应用程序的根时间轴或父时间轴。

例如,假设您的 SWF 文件的主时间轴上有一个名为 box 的影片剪辑实例,而该 box 实例包含另一个名为 cards 的影片剪辑实例。以下示例以主时间轴中的影片剪辑 cards 作为目标:

tellTarget("/box/cards")
tellTarget("_level0/box/cards")

以下示例以影片剪辑 cards 中的主时间轴作为目标:

tellTarget("../../cards")
tellTarget("_root")

以下示例以父影片剪辑 cards 作为目标:

tellTarget("../cards")
tellTarget("_parent/cards")