B4J Question Janimation - Finished event.

Discussion in 'B4J Questions' started by Gary Miyakawa, May 25, 2015.

  1. Gary Miyakawa

    Gary Miyakawa Active Member Licensed User

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

    thanks,

    Gary Miyakawa
     
  2. Daestrum

    Daestrum Well-Known Member Licensed User

    I think the event is onFinished - you have to supply a handler for it.
     
  3. Gary Miyakawa

    Gary Miyakawa Active Member Licensed User

    Thank you for the reply but how would you implement it ?

    Thanks,

    Gary Miyakawa
     
  4. Daestrum

    Daestrum Well-Known Member Licensed User

    Looking through the library it looks like you use
    Code:
    ani.setHandlerForPath(TransPath2,"checkpath")
    This will be called when the TransPath is completed.
    Code:
    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.
     
  5. Gary Miyakawa

    Gary Miyakawa Active Member Licensed User

    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
     
  6. Daestrum

    Daestrum Well-Known Member Licensed User

    I will look through the source of the library and see exactly what you need to do. ( May take a while ).
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice