monktus
Registered
Hi guys, I posted this on flashkit but it seems there are more questions than answers on there, if anyone could give me a hand I'd appreciate it:
I've been using Director for quite a bit but I'm new to Flash and I'm having some problems with actionscript. I'm trying to create a streaming mp3 player using the list and button components. I've got 3 song titles in the list whose values are the URLs for the tracks. The button has a play streaming MP3 behaviour on it and I want to replace the URL in the button script with the selected value of the list. However I can't seem to get the value out of the list, the output keeps getting back with 'undefined'.
I've tried tracing "songList.getSelectedItem().data;" as well as selectedItem and value. I've also tried putting these into variables first but still no luck. I've made sure the name of the list instance is correct. Is there anything I'm missing?
Also, in a seperate movie, I'm trying to move to a specific frame when the cursor rolls over a symbol. I've managed it with a click but not a rollover so far.
Btw, I'm using Flash MX 2004 Pro on Mac OSX 10.3.
Cheers,
Craig
I've been using Director for quite a bit but I'm new to Flash and I'm having some problems with actionscript. I'm trying to create a streaming mp3 player using the list and button components. I've got 3 song titles in the list whose values are the URLs for the tracks. The button has a play streaming MP3 behaviour on it and I want to replace the URL in the button script with the selected value of the list. However I can't seem to get the value out of the list, the output keeps getting back with 'undefined'.
I've tried tracing "songList.getSelectedItem().data;" as well as selectedItem and value. I've also tried putting these into variables first but still no luck. I've made sure the name of the list instance is correct. Is there anything I'm missing?
Also, in a seperate movie, I'm trying to move to a specific frame when the cursor rolls over a symbol. I've managed it with a click but not a rollover so far.
Btw, I'm using Flash MX 2004 Pro on Mac OSX 10.3.
Cheers,
Craig