> Thanks for the reply, however the Lingo dictionary is where I found
> the commands, it just seems Director doesn't recognize them... I'm
> trying to put some looping background music in a game (loop1 3x,
> loop2, repeat) but I'm not having much luck.
>
> Any other thoughts?
> - Joe
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
> email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo. Thanks!]
>
I apologize, I missed the part in your last message about you looking in the
Dictionary already. I just gave it a shot in D8 on a mac. I used the
following to loop two sound clips, 5 times a piece, and then stop.
on startmovie
sound(2).queue([#member: member("oriental"), #loopCount: 5])
sound(2).queue([#member: member("roller"), #loopCount: 5])
sound(2).play()
end
To make a repeating section of loops I used the following on a frame script:
on enterframe
if getPlayList(sound(4)) = [] then
sound(4).setPlaylist([[#member: member("oriental"), #loopCount:
2],[#member: member("roller"), #loopCount: 2]])
sound(4).play()
end if
end
on exitFrame me
go to the frame
end
This played through the list and as soon as it turns up empty (which would
be when the last song in the list starts) the list is regenerated. I was
looking in the D8 Demystified book, and they have a good hint in their
lexicon. It reads as follows:
"The playlist is a list of property lists. When you define a playlist the
syntax requires double [] characters. This is not obvious from the director
documentation."
Hope this solves it for you.
Brad
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]