ok... so i think this is fairly straight forward, however i am still new to actionscripting and am just figuring out much of the syntax.
so i have built an mp3 player with an external file loader. everything works great except now i am trying to add a script at the end of each song file swf that loads the next song in the sequence in it's place (thereby unloading itself), but also increasing a variable called "songnum" which is declared in a movie clip called 'buttons' in the root movie that holds the back/forward track buttons, which keeps track of which file is currently playing so the forward and back buttons will still go to the correct track.
so here's what i've got:
controller.swf (main shell) contains an empty movie space called 'soundspace' which initially loads song1.swf. that file has the streaming mp3 and a scrolling title. frame 1 of the buttons clip declares "songnum" with an initial value of 1. forward and back buttons are properly set up so forward loads the next file, song"+songnum+".swf. that part works.
now i've changed the initial declaration of songnum to be _global.songnum = 1 so that i can address it from the nested movie.
so in the last frame of the song1.swf, after the song ends, there is:
songnum = 2;
which, so far works to load song2.swf in place of song1.swf. but while it's playing, if i hit the forward button, it loads song2.swf again. i want songnum to be set at 2 automatically, so the forward button will load song3.swf while song2.swf is playing. since it's loading song2.swf again, obviously the new value for songnum is not getting passed on properly.
what am i missing?
hope this is enough info.
thanks in advance!