I'm making a quiz game, and I'm using this code to import a sound to repeat in one frame:
var mysound:Sound = new Effect(); //Name of the sound
var your_sc:SoundChannel = new SoundChannel;
It's working perfectly, but after using the same code almost 6 times (only adding a number to the vars) it says "The Method cannot be used as a constructor".
What is happening?
click file>publish settings>swf and tick 'permit debugging' so you can see exactly which line of code is causing the problem.
using the trace function is also indispensable to debugging in flash.
i don't any reason for the soundchannel code in the snippet you showed. it's doing nothing.