Using audio files as flash objects
July 15, 2005 12:00 AM
I think there are a couple of ways to do this. The first that I can think of is to use a controller clip with your volume control. This would set some global variables in Lectora. Then have those same global variables control the play state and volume of your audio clip. Your audio clip would be another Flash movie (set to stop by default) that is controlled through the LocalConnect object to trigger play and set volume by the settings passed in by the global control variables. The same localConnection could be fed back from the audio (or Flash video) to drive a two way playbar indicator. This could also be done in one swf (setting your play and volume states from the global variables without using LocalConnect - as I'm not sure that it is supported on all platforms). Done right, you could custo code javascript to drive what audio loads into the clip (since you can use the same play controller on every page and hide it if you need to) and use loadMovie to bring in the audio (even MP3's at runtime). Be aware that using this configureation, you will need to have any Flash movies / JPG's / XML / MP3's that are loaded via loadMovie in the base directory of your HMTL published title.Edited By: sflowers on 38549.8338888889
Discussions have been disabled for this post