# Issue loading external swf on main file with as3 --HELP!

**URL:** <https://forum.kirupa.com/t/issue-loading-external-swf-on-main-file-with-as3-help/331374>\
**Category:** flash\
**Created:** [July 18, 2013, 5:12am UTC](https://forum.kirupa.com/t/issue-loading-external-swf-on-main-file-with-as3-help/331374 "2013-07-18T05:12:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pao312](https://avatars.discourse-cdn.com/v4/letter/p/c2a13f/32.png) [@pao312](https://forum.kirupa.com/u/pao312)\
**Post date:** [July 18, 2013, 5:12am UTC](https://forum.kirupa.com/t/issue-loading-external-swf-on-main-file-with-as3-help/331374/1 "2013-07-18T05:12:43Z")

</div>

Hi I’m very new to flash cs6 and and as3 and i’ve been stuck on this ipad/android restaurant menu i’ve been doing. i’m trying to load an external swf on my main swf but have been getting this error:

TypeError: Error #1009: Cannot access a property or method of a null object reference. at cuisine/init()[C:\Users\PAO\Desktop\OZ\SWIPE\cuisine.as:32] at cuisine()[C:\Users\PAO\Desktop\OZ\SWIPE\cuisine.as:22]

i got the code of the swipes from a tutorial i found online. in the different sections fo the menu i was planning to load different swfs because i couldn’t get a single code to work for all the sections at the same time.

like i said, im new to as3 and i really don’t understand all the coding so i’m really stuck at a dead end.

hoping a kind soul could help me get out of this rut. the files can be found here:

[www.ce-studios.com/files/SWIPE.rar](http://www.ce-studios.com/files/SWIPE.rar)
