Creating and send data via dynamically created names (e.g. [send] $1)

Aug 21, 2013 at 1:56pm

Creating and send data via dynamically created names (e.g. [send] $1)

I am looking to create a dynamic way of changing images via passing the hover state name. I will have several buttons in the patcher and trying to find a effiecient (and dynamic) way to load images to achieve different states of a button. This is what I currently have:

– Pasted Max Patch, click to expand. –

I have tried forward, pattrforward, and send objects but to no avail.

Is there any way of replicating this functionality? Can you use js event listeners or even js to send the message to the appropriate [receive] object.

#259587
Aug 21, 2013 at 3:11pm

I fixed my problem with Javascript. In my Javascript, I used the messnamed() function to send the dynamically-created message to the appropriate image to load that image.

#259591
Aug 21, 2013 at 6:11pm
#259600

You must be logged in to reply to this topic.