2013-01-15 3 views
1

J'ai récemment effectué une mise à niveau vers Flash CS6 à partir de CS4. Je n'ai reçu aucune erreur avec ce script jusqu'à CS6 mais maintenant je reçois l'erreur suivante:Action Script 3 Erreur après la mise à niveau vers Flash CS6

Symbole 'wholePlayer, Layer,' Layer9'Frame 3 Line 12 - 1152 Un conflit existe avec la définition héritée flash.display : movieclip.isPlaying dans l'espace de noms public.

Voici mon script:

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); 
} 

Il est script pour un lecteur .MP3. J'ai indiqué la ligne mentionnée dans l'erreur ci-dessus. Toute aide serait grandement appréciée. Merci.

Solan

+0

avez-vous essayé de changer le faux à un 0? –

Répondre

2

version 11 de Flash Player a ajouté une propriété MovieClip nommé isPlaying. Renommer votre variable résoudra le problème.

Questions connexes