# Moving through frames using Document class

**URL:** <https://forum.kirupa.com/t/moving-through-frames-using-document-class/272460>\
**Category:** flash\
**Created:** [October 5, 2008, 4:36pm UTC](https://forum.kirupa.com/t/moving-through-frames-using-document-class/272460 "2008-10-05T16:36:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manojanand](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@manojanand](https://forum.kirupa.com/u/manojanand)\
**Post date:** [October 5, 2008, 4:36pm UTC](https://forum.kirupa.com/t/moving-through-frames-using-document-class/272460/1 "2008-10-05T16:36:00Z")

</div>

Hi guys,

I have a flash file with a couple of frames.

I want to move between them using the Document class.

eg. I have a button on Frame1. When that button is clicked, I want to go to Frame2.

I can do this using the built in ActionScript editor using gotoAndStop (), but if I try to do this using a Document class, I’m unable to do it.

I have searched the Net in vain. Can one of you pros help me?

Thanks!
