I dont know how to reference if a object is hit inside the frames update script
anyone know how?
i meant if it was clicked with the mouse
do you want to put a check, inside frame update, if a clip is clicked ?
can you describe more in detail what you want achieve?
Use this to know if a clip is clicked:
project.clip.isClickTarget
This will return either “true
” or “false
” depending on if the clip object was clicked.
Use this for more specific clicks:
project.clip._mouseState
This will return the following values:
-
"out"
= Mouse is outside the clip -
"over"
= Mouse is hovering over the clip -
"down"
= Mouse is pressed down on the clip
I hope this is what you needed
Not related to the topic: Wow - my last post was 7 days ago - I just came back to check on the forums, but I won't be able to read all the new posts.
1 Like