Hi Buzz,
Ive got things working almost right but im stuck on how to get the tags of
the subsequent track and put it into the gSong2List. i though what i needed
to do was in the prepare movie handler, as the movie loads i need all the
tags from all the files before the user sees the GUI.
so far it looks like this:
global mp3Files, gSong1List,dummyStreamer,platChar
on prepareMovie
--creats a list from the contents of folder audio (track names)--
fx = new(xtra "fileXtra3")
platChar = the last char of the moviePath
mp3Files = fx.fx_folderToList(the moviePath & "audio" & platChar)
-- put mp3Files
fx = VOID
--create empty lists--
gSong1List = []
gSong2List = []
gSong3List = []
gSong4List = []
gSong5List = []
dummyStreamer = new(#swa) -- create new swa file--
dummyStreamer.URL = member("Song1").filename --tells dummy to look at
song 1 file name--
dummyStreamer.preLoadBuffer() -- preloads song1 to get at tags--
-- BELOW IS WHERE IM TRING TO CHANGE THE FILE NAME SO IT CAN READ THE NEXT
TRACKS TAGS--
--BUT BECAUSE I CAN ONLY PUT THE TAGS INTO THE LIST IN A FRAME SCRIPT I CAN
ONLY CARRY OUT THE DUMMY STREAMER COMMAND ONCE IN THE PREPAREMOVIE SCRIPT
OTHERWISE IT WILL ONLY RETUN THE LAST TRACKS TAGS AND NOT ALL OF THE TRACKS
TAGS?--
set member ("Song1").filename = \
the moviePath & "audio" & platChar & getat(mp3Files ,2)-- get the
next track file name--
dummyStreamer = new(#swa)
dummyStreamer.URL = member("Song1").filename
dummyStreamer.preLoadBuffer()
end
I had to put this in a frame script to work.
global dummyStreamer, gSong1List
on prepareFrame me
put dummyStreamer.id3tags into gSong1List --- puts tags into list--
dummyStreamer.erase() --- deleats dummy once tags are in list--
end
Im hoping there's a way round this? i am very great full for all of your
help.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]