LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
bidgeeman
- Posts: 495
- Joined: Wed Feb 21, 2007 7:58 am
Post
by bidgeeman » Fri Jul 03, 2009 2:02 am
Hello.
I have a player object and I want to check the player to see if there has been any changes to it's data and then just perform a "Play" command "else" process the code in the button
on MouseUp
---check Player for changes
if ---data has not changed
start player "Player1"
else
---process data
end MouseUp
Any help would be greatly appreciated
Thank you
Chers
Bidge
-
Klaus
- Posts: 14198
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Fri Jul 03, 2009 8:24 am
Hi Bidge,
what do you mean by "if the data of a player have changed"?????
Clueless regards
Klaus

-
bidgeeman
- Posts: 495
- Joined: Wed Feb 21, 2007 7:58 am
Post
by bidgeeman » Fri Jul 03, 2009 9:06 am
Hi Klause.
Sorry...I'm trying to modify a stack that Bernd made for me. It loads several .wav files via checkboxes and then combines them using QT External into a player object ready for playback. I wanted to see if it is was possible to use the same "Combine" button to just playback audio if no changes have been made.
Say you have combined a selection of loops with the "Combine" button and then press the "Combine" button again without making any changes, it will just playback the audio without re-combining the same combination.
Hope I explained it well enough.
Cheers
Bidge
-
Klaus
- Posts: 14198
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Fri Jul 03, 2009 9:25 am
Hi Bidge,
yes, well explained, but I do not have any clue
Can't you simply use a (global) variable that you set according to "combine" or "not combine" and act accordingly?
Best
Klaus
P.S.
Klaus without an E, PLEASE!

-
bidgeeman
- Posts: 495
- Joined: Wed Feb 21, 2007 7:58 am
Post
by bidgeeman » Fri Jul 03, 2009 9:27 am
I will give that a try.
Thanks Klaus
Cheers
Bidge
-
bn
- VIP Livecode Opensource Backer

- Posts: 4172
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Fri Jul 03, 2009 10:35 am
Bidge,
I dont know at what version you are, I guess you changed quite a bit.
So to add this one would have to know what the code of the button looks like. If you want me to have a look at it you might want to make a download available.
On the other hand: is it not confusing for the user when the same button has 2 differing functions, depending on whether a choice was made or not.
regards
Bernd
-
bidgeeman
- Posts: 495
- Joined: Wed Feb 21, 2007 7:58 am
Post
by bidgeeman » Fri Jul 03, 2009 10:43 am
Yes. you're right bernd....on second thoughts it's a bit silly. 2 buttons are fine. I have a play button and a compile button. I think I'll leave it as is.
Cheers
Bidge