我有一小段AS3代码,它不能工作:(
var snd:Sound = new Sound(new URLRequest("Hit1.wav"));
var channel:SoundChannel = new SoundChannel();
channel= snd.play();我得到的只是
type was not found or was not a compile-time constant: Sound
type was not found or was not a compile-time constant: SoundChannel我该如何解决这个问题呢?
画布
发布于 2013-01-10 01:27:55
您必须导入类:
import flash.media.Sound;
import flash.media.SoundChannel;或者只是:
import flash.media.*;https://stackoverflow.com/questions/14242861
复制相似问题