# Access root from the loaded swf

**URL:** <https://forum.kirupa.com/t/access-root-from-the-loaded-swf/318209>\
**Category:** flash\
**Created:** [January 13, 2011, 7:02am UTC](https://forum.kirupa.com/t/access-root-from-the-loaded-swf/318209 "2011-01-13T07:02:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harry\_kooner2k](https://avatars.discourse-cdn.com/v4/letter/h/6bbea6/32.png) [@harry\_kooner2k](https://forum.kirupa.com/u/harry_kooner2k)\
**Post date:** [January 13, 2011, 7:02am UTC](https://forum.kirupa.com/t/access-root-from-the-loaded-swf/318209/1 "2011-01-13T07:02:02Z")

</div>

Hi,

I am migrating to AS 3.0 from AS 2.0 and I am unable to access the root of the main swf from the loaded swf.

In AS 2.0 i simply used "\_root.gotoAndPlay( **frame number** );

I have also tried Movieclip(this.root).gotoAndPlay( **frame number** ); but it doesn’t work.

Any help or suggestions please.

Regards,

Harry Kooner.
