# Calling different class instances

**URL:** <https://forum.kirupa.com/t/calling-different-class-instances/36352>\
**Category:** Uncategorized\
**Created:** [November 25, 2003, 6:50pm UTC](https://forum.kirupa.com/t/calling-different-class-instances/36352 "2003-11-25T18:50:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojoNYC](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@mojoNYC](https://forum.kirupa.com/u/mojoNYC)\
**Post date:** [November 25, 2003, 6:50pm UTC](https://forum.kirupa.com/t/calling-different-class-instances/36352/1 "2003-11-25T18:50:43Z")

</div>

what’s the best way for an outside object (say, a button) to call a prototype method inside another class instance? i can do it by calling it directly, like this:

```auto

_level0.shape.loadShape(objectNum); 

```

however, i think theres’ gotta be a better way to call it–what do you think?

-mojo
