# Call to a possibly undefined method

**URL:** <https://forum.kirupa.com/t/call-to-a-possibly-undefined-method/243561>\
**Category:** flash\
**Created:** [November 8, 2007, 12:32pm UTC](https://forum.kirupa.com/t/call-to-a-possibly-undefined-method/243561 "2007-11-08T12:32:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lunetics](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@lunetics](https://forum.kirupa.com/u/lunetics)\
**Post date:** [November 8, 2007, 12:32pm UTC](https://forum.kirupa.com/t/call-to-a-possibly-undefined-method/243561/1 "2007-11-08T12:32:45Z")

</div>

I´ve a main application, Recorder.fla, that has a class defination that points to a Init-class. In the Init-class I´ve put a simple preloader but I got this compiler error: 1180: Call to a possibly undefined method gotoAndStop. Why?

_When the preloader har finished I want to bring the playhead to frame 2 - gotoAndStop(2) - and then do some other stuff_
