embedding a sound into my .swf..
[Embed(source='/audio/files/sp_worm.mp3')]
private var sf_warp_finish:Class;
the reading it here:
var sndClass:Class;
if (soundId == "sf_warp_finish") sndClass = new sf_warp_finish();
and am receiving this error:
Type Coercion failed: cannot convert GameSoundManager_sf_warp_finish@a94eb31 to Class.
Not sure why this isn't working- any ideas?