1

最近、CS4 から Flash CS6 にアップグレードしました。CS6 まではこのスクリプトでエラーは発生しませんでしたが、現在は次のエラーが発生しています。

シンボル 'wholePlayer,Layer,'Layer9' フレーム 3 12 行目 - 1152

これが私のスクリプトです:

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 プレーヤーのスクリプトです。上記のエラーで言及されている行を示しました。どんな助けでも大歓迎です。ありがとう。

ソラン

4

1 に答える 1

3

Flash Player のバージョン 11 では、isPlayingという名前の MovieClip プロパティが追加されました。変数の名前を変更すると、問題が解決します。

于 2013-01-15T08:12:44.307 に答える