Latency in playing short sounds in Flash 9, Actionscript 3

前端 未结 6 1755
不思量自难忘°
不思量自难忘° 2020-12-15 13:44

I\'ve got a few very short audio clips (less than a second long) to be played on various events (button hover, click, etc). However, there is usually a significant lag betw

6条回答
  •  温柔的废话
    2020-12-15 14:15

    Well, my first-blush answer is that when I've done things like this, normally I find that sound files have a certain amount of lead time built in. You could check in a sound editor, but What I've done in the past is to import the sound into the Flash IDE, make an empty movie clip, and put the sound on frame 1 of the clip. Then, but editing the frame sound you get a nice little interface to drag the start/end points of the sound playback. Then I used to either attach/remove the clip to play the sound, or leave it somewhere and use frame commands.

    If you're already sure that the lead time is in flash and not the audio then I have no tips or tricks, beyond reasonably obvious things like playing click sounds on key down instead of up...

提交回复
热议问题