PDA

View Full Version : First frame of an mp3


kbriggs
07-14-2009, 11:03 AM
When calling view.play(f) to play an mp3 loaded in a view, is the first frame 0 or 1? I've seen several posts of people using play(0) but I thought frames in flash were all 1-based.


Also, I'm using setSource('http:myfile.mp3') to preload the view with a file from my server but I don't want it to play right away. Setting the play attribute to false has no effect but calling this.stop() right after this.SetSource() seems to work. Is that the correct way to load a remote mp3 without playing it?

senshi
07-14-2009, 12:38 PM
When calling view.play(f) to play an mp3 loaded in a view, is the first frame 0 or 1? I've seen several posts of people using play(0) but I thought frames in flash were all 1-based.

Frames for audio resources are 0-based in OpenLaszlo.

kbriggs
07-14-2009, 12:47 PM
Frames for audio resources are 0-based in OpenLaszlo.

Ok, thanks. Do you happen to know the answer to my second question on preventing setSource from playing the mp3?