# A problem with mochiads

**URL:** <https://forum.kirupa.com/t/a-problem-with-mochiads/251332>\
**Category:** flash\
**Created:** [February 7, 2008, 2:36pm UTC](https://forum.kirupa.com/t/a-problem-with-mochiads/251332 "2008-02-07T14:36:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kellogg](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@kellogg](https://forum.kirupa.com/u/kellogg)\
**Post date:** [February 7, 2008, 2:36pm UTC](https://forum.kirupa.com/t/a-problem-with-mochiads/251332/1 "2008-02-07T14:36:52Z")

</div>

I need your help (problem with mochiads)

I keep getting this error

TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at MochiAd$/\_parseOptions()  
at MochiAd$/showPreGameAd()  
at MochiAd$/showPreloaderAd()

when i did debug, it seems like that in the function parseoptions  
optcopy.clip.loaderInfo is NULL  
and therefore i get this exception…

the code that calls the mochi ads is:

```
        var moch:MochiadMovieClip=new MochiadMovieClip();
        
        MochiAd.showPreloaderAd({clip:moch, id:"my_id", res:"560x455"});

```

where MochiadMovieClip is just a dynamic movie clip

have any ideas what can cause it?

Thanks
