Players and Sounds - stuff you might want to know
harrison at all-auctions.com
Thu Dec 19 15:05:00 EST 2013
Ooo, I really like the substack play sound approach with the
substack being invisible. That should be a big help!
On Dec 19, 2013, at 10:00 AM, Graham Samuel <livfoss at mac.com> wrote:
> 4. When you start a sound playing with a player, it will continue until it stops naturally (i.e. at the end of the file, unless it loops) **provided** you don't switch cards. If you do, playing immediately stops. If you want to have a sound playing while cards change, then put your player on a card in a substack which is remains open at the card containing the player (the stack doesn't have to be visible).
> 5. If you adopt the method in (4) above, you must make sure that your substack containing players is actually open at the right card before you start trying to run a player. Just writing into a player in the substack (for example by setting the 'filename' property of a player in it) doesn't open it. If you try to play from an unopened card, the attempt to play will silently fail. If you try the same thing in the IDE, you won't get the failure, presumably because the IDE opens all the substacks in your project without an explicit 'go' from you. Like all "works in the IDE, doesn't work in the standalone" issues, I find it very confusing.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode