Play a Sound from a variable? How can I make this code work?

I would like to play a sound from a list. Here is a snippet of my code of what I am trying to do.

example

I am using (Drag and Drop) system btw, big thanks in advance!

1 Like

You are using the variable Soundtrack as a list of just one item. Are you doin this purposely?

This should do what you want
image

However, you will need to add the .mp3 file as an asset to the project first.

3 Likes

Thank you for the reply! This works, though I do need it in a list since I will be playing multiple different tracks.

2 Likes

Sure,
Check this sample app that I created for a similar request
https://x.thunkable.com/projectPage/60250d9ec0d1251227b520dc

2 Likes

Thank you, this help me figure out what I wanted. I appreciate your help!

2 Likes