2013-01-15 38 views
1

我最近從CS4升級到Flash CS6。在CS6之前,我沒有收到任何此腳本的錯誤,但現在我收到以下錯誤:升級到Flash CS6後的動作腳本3出錯

符號'wholePlayer,Layer'Layer9'Frame 3行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播放器的腳本。我已經指出了上述錯誤中提到的那一行。任何幫助將不勝感激。謝謝。

索蘭

+0

你是否試過將假的變爲0? –

回答

2

的Flash Player 11版增加了一個名爲的MovieClip屬性IsPlaying模塊。重命名你的變量將解決問題。