[11 Jun 2010] Sample interrupting

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
matthias

[11 Jun 2010] Sample interrupting

Post by matthias »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 11 Jun 2010 22:10:50 -0000

Hi, in Designer i added a Sample to a button. The sample plays fine when i press the button until end of sample. That's my problem. I like when i press the button sencond time that the sample stop immediately and start playing from beginning. How i have to code in Hollywood? Thanks Matthias
Bugala
Posts: 1181
Joined: Sun Feb 14, 2010 7:11 pm

[12 Jun 2010] Re: Sample interrupting

Post by Bugala »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 12 Jun 2010 02:31:38 +0300 (EEST)

Without actually looking for the right commands (you have to check them for yourself from manual), i would say its about this way:

Click on that button, then choose "On Click" - option. Then in there choose the "Custom Code" option.

to there you write:

Code: Select all

temp = samplestillplaying(1)

if temp = TRUE then StopSample(1)
if temp = FALSE then PlaySample(1)
matthias

[12 Jun 2010] Re: Sample interrupting

Post by matthias »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 12 Jun 2010 08:09:55 -0000

Thanks i'll try it :-)
Locked