# \[CS3\]\[AS2\] Transition Between External SWFs

**URL:** <https://forum.kirupa.com/t/cs3-as2-transition-between-external-swfs/280024>\
**Category:** flash\
**Created:** [January 21, 2009, 7:05pm UTC](https://forum.kirupa.com/t/cs3-as2-transition-between-external-swfs/280024 "2009-01-21T19:05:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdrisco1](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@cdrisco1](https://forum.kirupa.com/u/cdrisco1)\
**Post date:** [January 21, 2009, 7:05pm UTC](https://forum.kirupa.com/t/cs3-as2-transition-between-external-swfs/280024/1 "2009-01-21T19:05:52Z")

</div>

In reference to the question below I used this tutorial to accomplish some of my AS goals:

[http://www.kirupa.com/developer/mx2004/transitions.htm](http://www.kirupa.com/developer/mx2004/transitions.htm)

The question based off of this tutorial is how to correctly target an external movie clip with buttons that are not on the main time line. What would be the approproiate path for the script below for the external swf (work.swf)?

[COLOR=#0000d0]on[/COLOR] COLOR=#0000ff[/COLOR] [COLOR=#0000ff]{[/COLOR] [COLOR=#006610]if[/COLOR] [COLOR=#0000ff]([/COLOR][COLOR=#0000d0]\_root[/COLOR].[COLOR=#000050]currMovie[/COLOR] [COLOR=#0000ff]==[/COLOR] [COLOR=#006610]undefined[/COLOR][COLOR=#0000ff])[/COLOR] [COLOR=#0000ff]{[/COLOR] [COLOR=#0000d0]\_root[/COLOR].[COLOR=#000050]currMovie[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#666666]“work”[/COLOR]; [COLOR=#000050]container[/COLOR].[COLOR=#0000d0]loadMovie[/COLOR]COLOR=#0000ff[/COLOR]; [COLOR=#0000ff]}[/COLOR] [COLOR=#006610]else[/COLOR] [COLOR=#006610]if[/COLOR] [COLOR=#0000ff]([/COLOR][COLOR=#0000d0]\_root[/COLOR].[COLOR=#000050]currMovie[/COLOR] [COLOR=#0000ff]!=[/COLOR] [COLOR=#666666]“work”[/COLOR][COLOR=#0000ff])[/COLOR] [COLOR=#0000ff]{[/COLOR] [COLOR=#006610]if[/COLOR] [COLOR=#0000ff]([/COLOR][COLOR=#000050]container[/COLOR].[COLOR=#0000d0]\_currentframe[/COLOR] [COLOR=#0000ff]\>=[/COLOR] [COLOR=#000050]container[/COLOR].[COLOR=#000050]midframe[/COLOR][COLOR=#0000ff])[/COLOR] [COLOR=#0000ff]{[/COLOR] [COLOR=#0000d0]\_root[/COLOR].[COLOR=#000050]currMovie[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#666666]“work”[/COLOR]; [COLOR=#000050]container[/COLOR].[COLOR=#0000d0]play[/COLOR]COLOR=#0000ff[/COLOR]; [COLOR=#0000ff]}[/COLOR] [COLOR=#0000ff]}[/COLOR] [COLOR=#0000ff]}[/COLOR]
