How do I call an objects function?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
tor
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How do I call an objects function?

tor
I have the code:

local foo = Foo()
foo::onEnterFrame(){
  foo.setX(i)
  i++
}

I'm using C++ with luna to bind C++ objects. How do I call onEnterFrame() from C++?
I know how to do it with:

onEnterFrame(foo){
}

But not with an objects function. How would I call the function?
Loading...