Недавно я обновился до Flash CS6 с CS4. Я не получал никаких ошибок с этим скриптом до CS6, но теперь я получаю следующую ошибку:
Symbol 'wholePlayer,Layer,'Layer9'Frame 3 Line 12 - 1152 Существует конфликт с унаследованным определением flash.display:movieclip.isPlaying в общедоступном пространстве имен.
Вот мой сценарий:
import flash.net.URLRequest;
stop();
// Create the sound object
var snd:Sound = new Sound();
// Assign a var name for the sound channel
var channel:SoundChannel;
// Initialize the pause position
var pausePosition:int = 0;
// Boolean value for button functions, to switch in the conditionals
var isPlaying:Boolean = false; ******HERE'S THE LINE REFERENCED IN THE ERROR*******
// Set the play buffer to 5 seconds, you can adjust this
var context:SoundLoaderContext = new SoundLoaderContext(5000,true);
// Load the requested URL sound into the snd var, along with context
snd.load(req, context);
// Create the play channel using snd
channel = snd.play();// Start playing
// --- Stop sound from autoplaying --- \\
if(firstTime == true)
{
stopSound(null);
}
Это скрипт для .MP3 плеера. Я указал строку, которая упоминается в ошибке выше. Любая помощь будет принята с благодарностью. Спасибо.
Солан