# Preloader Tutorial Question

**URL:** <https://forum.kirupa.com/t/preloader-tutorial-question/282901>\
**Category:** flash\
**Created:** [February 27, 2009, 4:14pm UTC](https://forum.kirupa.com/t/preloader-tutorial-question/282901 "2009-02-27T16:14:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kraftomatic](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@kraftomatic](https://forum.kirupa.com/u/kraftomatic)\
**Post date:** [February 27, 2009, 4:14pm UTC](https://forum.kirupa.com/t/preloader-tutorial-question/282901/1 "2009-02-27T16:14:03Z")

</div>

Hey Guys,

Based on this tutorial:

[http://www.kirupa.com/developer/flashcs3/preloader\_as3\_pg1.htm](http://www.kirupa.com/developer/flashcs3/preloader_as3_pg1.htm)

I’m trying to incorporate this into an older Flash piece, where the preloader works by starting on frame 1, then advancing to frame 2 once preloaded and complete. Given the above tutorial, what’s the best way to do this?

Simply adding a “gotoAndPlay(2)” in the imageLoaded function once all is said and done is throwing an error:

"  
TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at loadimage\_preloader\_fla::MainTimeline/imageLoading()  
"

Any suggestions would be appreciated.

Thanks.
