Flash help needed!

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
 
To answer your second question, I simply use the Actions panel and set the button to this:

on (rollOver) {
gotoAndStop( {frame number} );
}

I'm using Flash MX 2004 Pro, and I've noticed that setting Actions for clips/buttons/symbols is a bit different than in MX 2003 or Flash 5. The verbage and location of the actions is a bit different.

I've attached a .swf and a .fla for you to look at. Specifically, look at the Actions for the first frame. Also, Flash MX 2004, I noticed, has an option to load an MP3 for streaming -- perhaps that would help.

Hope this helps!
 

Attachments

  • rollovertest.zip
    6.2 KB · Views: 3
Back
Top