B4J Question Janimation - Finished event.

Gary Miyakawa

Active Member
Licensed User
Longtime User
I can't seem to find a "Finished" event for this library. Am I missing it somewhere ?

thanks,

Gary Miyakawa
 
I think the event is onFinished - you have to supply a handler for it.
 
Upvote 0
Looking through the library it looks like you use
Code: Copy
    ani.setHandlerForPath(TransPath2,"checkpath")
This will be called when the TransPath is completed.
Code: Copy
sub checkPath(o as object)
 .... do what you want here ...
end sub
The object 'o' will contain nothing, it just had to be there for some reason lol.
 
Upvote 0
I've tried the code you suggested but get an error of "Unknown Member" for "setHandlerForPath". I'm using the 1.15 JAnimation library.

I DID see an "OnFinished" in the drop down members of ani. It's asking for a "Java.event.handler".

I don't know how to build it.. (and a search of the site didn't help me).

Thanks for you help !

Gary Miyakawa
 
Upvote 0
I will look through the source of the library and see exactly what you need to do. ( May take a while ).
 
Upvote 0
Back
Top