# Trying to gotoAndStop as soon as file loads

**URL:** <https://forum.kirupa.com/t/trying-to-gotoandstop-as-soon-as-file-loads/318313>\
**Category:** flash\
**Created:** [January 16, 2011, 7:04pm UTC](https://forum.kirupa.com/t/trying-to-gotoandstop-as-soon-as-file-loads/318313 "2011-01-16T19:04:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibberous](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Post date:** [January 16, 2011, 7:04pm UTC](https://forum.kirupa.com/t/trying-to-gotoandstop-as-soon-as-file-loads/318313/1 "2011-01-16T19:04:10Z")

</div>

For some reason, gotoAndStop isn’t working when I call it from either the main timeline of my main classes constructor. I’m guessing I need to call it once everything has loaded - but I don’t what what event to fire it off on, besides a timer, which just seems bad.

Could someone help me out? I wrote this back when I still used the timeline and am trying not to have to rewrite it - it works, it’s just hard to work on.
